tiktok.analytics.202509.shop_videos.video_id.performance
GET/analytics/202509/shop_videos/{video_id}/performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_videos/{video_id}/performance
Description
Hiệu quả của MỘT video bán hàng theo ngày (hoặc gộp kỳ): lượt xem, tương tác, GMV / GPM / số bán / nhấp tổng và theo từng sản phẩm gắn, cùng chân dung người xem và người theo dõi mới (giới tính, tuổi, quốc gia).
- Gọi qua /v1/tiktok/analytics/202509/shop_videos/{video_id}/performance với Authorization: Bearer <key>; dùng platform_shop_id khi có nhiều shop. 360 tự gắn app_key, shop_cipher, sign và access_token.
- API chỉ đọc; code = 0 mới là thành công.
end_date_ltkhông tính ngày đó — muốn gồm ngày X thì gửi X + 1.- Số liệu trễ ~1 ngày: xem
latest_available_date. - Tiền dạng
{amount, currency}, amount là chuỗi số. - Khoảng ngày TỐI ĐA 60 ngày.
- Giá trị
genderthực tế trả chữ thường (female/male). - API này dễ dính giới hạn tần suất dùng chung của app: HTTP 429 code 36009002 "Too many requests…" — chờ vài chục giây rồi thử lại, giãn cách khi lặp nhiều video.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_videos/{video_id}/performance
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 | 100001 | Gian hàng (lấy ở GET /v1/platforms → shops[].platform_shop_id). BẮT BUỘC khi brand có > 1 gian hàng trên nền tảng; 360 bỏ tham số này trước khi chuyển tiếp. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| video_id | path | string | Yes | 7671911935184571668 | Mã video (videos[].id của danh sách video). |
| start_date_ge | query | string | Yes | 2026-10-15 | Từ ngày (YYYY-MM-DD, theo múi giờ gian hàng, tính cả ngày này). |
| end_date_lt | query | string | Yes | 2026-10-22 | Đến TRƯỚC ngày (YYYY-MM-DD, không tính ngày này). |
| granularity | query | string | No | 1D | ALL (mặc định) = gộp · 1D = từng ngày. |
| currency | query | string | No | LOCAL | Phản hồi hiện luôn là tiền gian hàng. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_videos/7671911935184571668/performance?platform_shop_id=7494000000000000000&start_date_ge=2026-10-20&end_date_lt=2026-10-23&granularity=1D" \ -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/analytics/202509/shop_videos/7671911935184571668/performance",
params={
"platform_shop_id": "7494000000000000000",
"start_date_ge": "2026-10-20",
"end_date_lt": "2026-10-23",
"granularity": "1D"
},
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/analytics/202509/shop_videos/7671911935184571668/performance');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000","start_date_ge":"2026-10-20","end_date_lt":"2026-10-23","granularity":"1D"})) 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/analytics/202509/shop_videos/7671911935184571668/performance' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000', 'start_date_ge' => '2026-10-20', 'end_date_lt' => '2026-10-23', 'granularity' => '1D']); $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 Shop)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | int | 0 | 0 = thành công; khác 0 xem message (105001–105003 = token, 360 đã tự làm mới một lần). |
| message | string | Success | Thông điệp của TikTok. |
| request_id | string | DEMO_REQUEST_A_01 | Mã request TikTok. |
| data | object | Dữ liệu. | |
| latest_available_date | string | Minh họa | Latest khả dụng ngày. |
| performance | object | Hiệu quả. | |
| intervals | object[] | Intervals. | |
| start_date | string | Minh họa | Bắt đầu ngày. |
| end_date | string | Minh họa | Kết thúc ngày. |
| traffic | object | {views, likes, comments, shares, new_followers}. | |
| comments | number | 1 | Comments. |
| likes | number | 1 | Likes. |
| new_followers | number | 1 | New followers. |
| shares | number | 1 | Shares. |
| views | number | 1 | Lượt xem. |
| sales | object | Doanh số. | |
| overall | object | Tổng: gmv, gpm, customers, items_sold, product_impressions, product_clicks, ctr. | |
| ctr | string | 0.1 | Ctr. |
| customers | number | 1 | Khách hàng. |
| gmv | object | Gmv. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| gpm | object | Gpm. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| items_sold | number | 1 | Items sold. |
| product_clicks | number | 1 | Sản phẩm lượt nhấp. |
| product_impressions | number | 1 | Sản phẩm lượt hiển thị. |
| breakdowns | object[] | Theo từng sản phẩm gắn: cùng các chỉ số + `product_id`. | |
| ctr | string | 0.1 | Ctr. |
| customers | string | Minh họa | Khách hàng. |
| gmv | string | Minh họa | Gmv. |
| gpm | string | Minh họa | Gpm. |
| items_sold | string | Minh họa | Items sold. |
| product_clicks | string | Minh họa | Sản phẩm lượt nhấp. |
| product_id | string | 100000000000000001 | Sản phẩm mã. |
| product_impressions | string | Minh họa | Sản phẩm lượt hiển thị. |
| viewer_profile | object[] | [{}] | Chân dung theo `type` `VIEWERS` (người xem) · `NEW_FOLLOWER` (người theo dõi mới): gender_distribution[{gender, percentage}], age_distribution[{age `18-24`…`55+`, percentage}], country_distribution[{country_code, percentage}] — percentage là chuỗi 0–1. Mảng rỗng khi chưa đủ dữ liệu. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"latest_available_date": "Minh họa",
"performance": {
"intervals": [
{
"start_date": "Minh họa",
"end_date": "Minh họa",
"traffic": {
"comments": 1,
"likes": 1,
"new_followers": 1,
"shares": 1,
"views": 1
},
"sales": {
"overall": {
"ctr": "0.1",
"customers": 1,
"gmv": {
"amount": "10000",
"currency": "VND"
},
"gpm": {
"amount": "10000",
"currency": "VND"
},
"items_sold": 1,
"product_clicks": 1,
"product_impressions": 1
},
"breakdowns": [
{
"ctr": "0.1",
"customers": "Minh họa",
"gmv": "Minh họa",
"gpm": "Minh họa",
"items_sold": "Minh họa",
"product_clicks": "Minh họa",
"product_id": "100000000000000001",
"product_impressions": "Minh họa"
}
]
}
}
],
"viewer_profile": [
{}
]
}
}
}
Get started
- Sign up for Partner
- Enable a data type of the Video group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above