tiktok.analytics.202509.shop_skus.sku_id.performance
GET/analytics/202509/shop_skus/{sku_id}/performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_skus/{sku_id}/performance
Description
Hiệu quả của MỘT SKU (biến thể màu / size) trong khoảng ngày: GMV, số bán, đơn SKU — tách theo nguồn LIVE / VIDEO / thẻ sản phẩm. Dùng khi cần biết size / màu nào bán qua kênh nội dung nào.
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ố. product_idtrả dạng SỐ nguyên 64 bit (không phải chuỗi) — đọc bằng bộ phân tích JSON giữ số lớn, phân tích JSON thông thường làm sai các chữ số cuối.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_skus/{sku_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 |
|---|---|---|---|---|---|
| sku_id | path | string | Yes | 9000000000000000088 | Mã SKU TikTok (skus[].id của sản phẩm). |
| 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 | ALL | ALL (mặc định) · 1D. |
| currency | query | string | No | LOCAL | LOCAL (mặc định) · USD. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/analytics/202509/shop_skus/9000000000000000088/performance?platform_shop_id=7494000000000000000&start_date_ge=2026-10-20&end_date_lt=2026-10-27¤cy=LOCAL" \ -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_skus/9000000000000000088/performance",
params={
"platform_shop_id": "7494000000000000000",
"start_date_ge": "2026-10-20",
"end_date_lt": "2026-10-27",
"currency": "LOCAL"
},
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_skus/9000000000000000088/performance');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000","start_date_ge":"2026-10-20","end_date_lt":"2026-10-27","currency":"LOCAL"})) 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_skus/9000000000000000088/performance' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000', 'start_date_ge' => '2026-10-20', 'end_date_lt' => '2026-10-27', 'currency' => 'LOCAL']); $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 | YEU_CAU_MINH_HOA | Mã request TikTok. |
| data | object | Dữ liệu. | |
| latest_available_date | string | 2026-11-01 | Ngày mới nhất đã có dữ liệu. |
| performance | object | Hiệu quả. | |
| sku_id | string | 900000000000000001 | Mã SKU (chuỗi). |
| product_id | int | 1000001 | Mã sản phẩm — trả dạng SỐ 64 bit, xem lưu ý. |
| intervals | object[] | Các khoảng thời gian. | |
| start_date | string | 2026-11-01 | Ngày bắt đầu. |
| end_date | string | 2026-11-01 | Ngày kết thúc. |
| gmv | object | {amount, currency}. | |
| amount | string | 150000 | Số tiền. |
| currency | string | VND | Mã tiền tệ. |
| items_sold | int | 1 | Số sản phẩm đã bán. |
| sku_orders | int | 1 | Số đơn theo SKU. |
| gmv_breakdown | object[] | [{type `LIVE`|`VIDEO`|`PRODUCT_CARD`, amount, currency}]. | |
| amount | string | 150000 | Số tiền. |
| currency | string | VND | Mã tiền tệ. |
| type | string | Minh họa | Loại. |
| items_sold_breakdown | object[] | [{type, amount (SỐ lượng — tên trường là amount)}]. | |
| amount | number | 1 | Số tiền. |
| type | string | Minh họa | Loại. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "YEU_CAU_MINH_HOA",
"data": {
"latest_available_date": "2026-11-01",
"performance": {
"sku_id": "900000000000000001",
"product_id": 1000001,
"intervals": [
{
"start_date": "2026-11-01",
"end_date": "2026-11-01",
"gmv": {
"amount": "150000",
"currency": "VND"
},
"items_sold": 1,
"sku_orders": 1,
"gmv_breakdown": [
{
"amount": "150000",
"currency": "VND",
"type": "Minh họa"
}
],
"items_sold_breakdown": [
{
"amount": 1,
"type": "Minh họa"
}
]
}
]
}
}
}
Get started
- Sign up for Partner
- Enable a data type of the Sản phẩm group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above