Creative basic reports
GET/creative/report/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/creative/report/get/
Description
Run a creative basic report
Use this endpoint to run a basic report on creative assets.
> Note
> The creative basic reports include data on both undeleted and deleted creative assets.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/creative/report/get/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| material_type | query | string | Yes | Material type. Enum values: VIDEO, IMAGE, INSTANT_PAGE. | |
| lifetime | query | boolean | No | Whether to query all data.
If this field is set to true, you do not need to specify start_date and end_date.
Supported values: true, false.
Default value: false. | |
| start_date | query | string | No | Required when lifetime is set to false.
Start time, closed interval. Format such as: 2020-01-01 (advertiser time zone). | |
| end_date | query | string | No | Required when lifetime is set to false.
End time, closed interval. Format such as: 2020-01-01 (advertiser time zone). | |
| info_fields | query | string[] | No | Information you want to get about creatives. The default value is [material_id, video_id, image_id, page_id]. Allowed values: All data fields that are shown under info in the response. | |
| metrics_fields | query | string[] | No | The metrics or dimension data that you need. The default value is: [impressions , spend]. Value range: all fields under metrics in the response. | |
| filtering | query | object | No | Filtering criteria | |
| sort_field | query | string | No | Field to sort by. Support sorting according to the creation time of the material and all the index data. Not sorted by default. | |
| sort_type | query | string | No | Sorting order. Enum values: ASC, DESC. Default value: DESC. | |
| page | query | number | No | Current number of pages. Default value: 1, range: ≥ 1 | |
| page_size | query | number | No | Page size. Default value: 10, range: 1-1000 |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/creative/report/get/?material_type=" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok_business/creative/report/get/",
params={
"material_type": ""
},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/creative/report/get/');
for (const [k, v] of Object.entries({"material_type":""})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok_business/creative/report/get/' . '?' . http_build_query(['material_type' => '']); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | number | Response code. For the complete list of response codes and descriptions, see Appendix - Return Codes. | |
| message | string | Response message. For details, see Appendix - Return Codes. | |
| data | object | Returned data. | |
| list | object[] | Report information | |
| info | object | Material information | |
| material_id | string | Material ID | |
| video_id | string | Video ID | |
| image_id | string | Image ID | |
| source | string | Source of material. For enum values, see Enumeration - Material Source. | |
| country_code | string[] | Country or location code. For enum values, see Appendix - Location code | |
| placement | string[] | Placement. For enum values, see Enumeration - Placement | |
| num_ads | number | The number of ads. | |
| total_active_days | number | The total active days. An active day is a day that has spending (`spend` > 0). This field only supports `VIDEO` type of material. Note: - This metric is supported only when `lifetime` is set to `false` in the request. - When `lifetime` is set to `true` in the request, the value of this field will be 0. | |
| related_ad_ids | string[] | The IDs of the related ads. This field only supports `VIDEO` type of material. | |
| adgroup_number | number | The number of related ad groups. This field only supports `VIDEO` type of material. | |
| related_adgroup_ids | string[] | The IDs of the related ad groups. This field only supports `VIDEO` type of material. | |
| page_id | string | Instant page ID | |
| page_status | string | Instant page status. Enum values: `DRAFT`, `READY` | |
| page_biz_type | string[] | Instant page business type. Enum values: `CUSTOM`, `APP_PROFILE`, `INSTANT_FORM` | |
| page_template_type | string[] | Instant page template types. When `page_biz_type` includes `CUSTOM`, the allowed values are - `CUSTOMIZED` - `INTRODUCTION` - `BRAND_STORY` - `SALES_PRODUCT` - `MOVIE_TRAILER`When `page_biz_type` includes `INSTANT_FORM`, the allowed values are `NORMAL_FORM` and `ADVANCED_FORM`. | |
| page_thumbnail | string | Link to the page thumbnail | |
| app_profile_country | string[] | Codes of the countries or locations that the instant page is deployed to. Valid when `instant_page_biz_type` includes `APP_PROFILE`. | |
| app_profile_external_app_id | string[] | ID of the app that the instant page directs to. Valid when `instant_page_biz_type` includes `APP_PROFILE` | |
| app_profile_icon | string | App icon | |
| customized_page_external_action | string[] | Conversion events that are specific to customized instant pages | |
| metrics | object | Metrics data. Please see the Metrics table for details. | |
| page_info | object | Paging information | |
| page | number | current page number | |
| page_size | number | Paging Size | |
| total_number | number | Total | |
| total_page | number | Total number | |
| request_id | string | The log id of a request, which uniquely identifies the request. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"list": [
{
"metrics": {
"clicks": "0",
"impressions": "0",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"clicks": "17",
"impressions": "30",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"clicks": "0",
"impressions": "0",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"spend": "0",
"clicks": "0",
"impressions": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"spend": "0",
"clicks": "3",
"impressions": "3"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"clicks": "0",
"impressions": "0",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"clicks": "0",
"impressions": "0",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"clicks": "0",
"impressions": "0",
"spend": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"impressions": "11",
"spend": "0",
"clicks": "1"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
},
{
"metrics": {
"spend": "0",
"clicks": "0",
"impressions": "0"
},
"info": {
"page_id": null,
"image_id": null,
"video_id": "{{video_id}}",
"material_id": "{{material_id}}"
}
}
],
"page_info": {
"total_number": 560,
"total_page": 56,
"page_size": 10,
"page": 1
}
}
}
(/code);
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above