tiktok.analytics.202512.shop.live_id.products_performance
GET/analytics/202512/shop/{live_id}/products_performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/analytics/202512/shop/{live_id}/products_performance
Description
Hiệu quả từng sản phẩm trong MỘT phiên LIVE: GMV trực tiếp, số bán, đơn, khách, tỉ lệ thanh toán, hiển thị / nhấp / thêm giỏ, tỉ lệ nhấp → đơn — dùng để biết sản phẩm nào chốt được trong live và sản phẩm nào chỉ được xem.
- Gọi qua /v1/tiktok/analytics/202512/shop/{live_id}/products_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.
- Đường dẫn là
/analytics/202512/shop/{live_id}/…(KHÔNG cóshop_lives). - Không phân trang — trả hết sản phẩm của phiên. Chỉ phiên của tài khoản chính thức / marketing của shop.
- Trường nhấp tên
produt_clicks(thiếu chữ c) — nhưngsort_fieldvẫn dùngproduct_clicks. - Tỉ lệ là chuỗi thập phân (0.04 = 4%). GMV amount có 2 chữ số lẻ kể cả VND.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/analytics/202512/shop/{live_id}/products_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 |
|---|---|---|---|---|---|
| live_id | path | string | Yes | 7693000000000000001 | Mã phiên LIVE (live_stream_sessions[].id). |
| sort_field | query | string | No | gmv | gmv (mặc định) · items_sold · customers · created_sku_orders · sku_orders · main_orders · product_impressions · product_clicks. |
| sort_order | query | string | No | DESC | ASC · DESC (mặc định). |
| currency | query | string | No | LOCAL | LOCAL · USD. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/analytics/202512/shop/7693000000000000001/products_performance?platform_shop_id=7494000000000000000&sort_field=gmv&sort_order=DESC¤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/202512/shop/7693000000000000001/products_performance",
params={
"platform_shop_id": "7494000000000000000",
"sort_field": "gmv",
"sort_order": "DESC",
"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/202512/shop/7693000000000000001/products_performance');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000","sort_field":"gmv","sort_order":"DESC","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/202512/shop/7693000000000000001/products_performance' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000', 'sort_field' => 'gmv', 'sort_order' => 'DESC', '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 | DEMO_REQUEST_A_01 | Mã request TikTok. |
| data | object | Dữ liệu. | |
| products | object[] | Mọi sản phẩm được gắn trong phiên (kể cả không bán được). | |
| id | string | 100000000000000001 | Mã sản phẩm. |
| name | string | Minh họa | Tên sản phẩm. |
| sales | object | Doanh số. | |
| direct_gmv | object | GMV đơn đặt trực tiếp từ LIVE (gồm cả đơn sau đó hoàn) {amount, currency}. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| items_sold | number | 1 | Items sold. |
| customers | number | 1 | Khách hàng. |
| created_sku_orders | number | 1 | Đơn SKU tạo. |
| sku_orders | number | 1 | Đơn SKU đã thanh toán. |
| main_orders | number | 1 | Main orders. |
| avg_price | object | GMV / đơn. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| payment_rate | string | 0.1 | Đơn đã thanh toán / đơn tạo. |
| traffic | object | Lưu lượng. | |
| product_impressions | number | 1 | Sản phẩm lượt hiển thị. |
| produt_clicks | number | 1 | Lượt nhấp (tên trường viết sai `produt_clicks`). |
| ctr | string | 0.1 | Nhấp / hiển thị (0–1). |
| add_to_cart_count | number | 1 | Lượt thêm giỏ. |
| click_to_order_rate | object | {sku_order_ctor, main_order_ctor}. | |
| main_order_ctor | string | Minh họa | Main đơn hàng ctor. |
| sku_order_ctor | string | Minh họa | Sku đơn hàng ctor. |
| gpm | object | {watch_gpm} — GMV / 1.000 lượt xem. | |
| watch_gpm | string | Minh họa | Xem gpm. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"products": [
{
"id": "100000000000000001",
"name": "Minh họa",
"sales": {
"direct_gmv": {
"amount": "10000",
"currency": "VND"
},
"items_sold": 1,
"customers": 1,
"created_sku_orders": 1,
"sku_orders": 1,
"main_orders": 1,
"avg_price": {
"amount": "10000",
"currency": "VND"
},
"payment_rate": "0.1"
},
"traffic": {
"product_impressions": 1,
"produt_clicks": 1,
"ctr": "0.1",
"add_to_cart_count": 1,
"click_to_order_rate": {
"main_order_ctor": "Minh họa",
"sku_order_ctor": "Minh họa"
},
"gpm": {
"watch_gpm": "Minh họa"
}
}
}
]
}
}
Get started
- Sign up for Partner
- Enable a data type of the Livestream group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above