tiktok.analytics.202605.shop_videos.performance
GET/analytics/202605/shop_videos/performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/analytics/202605/shop_videos/performance
Description
Danh sách video bán hàng có gắn sản phẩm của gian hàng (của shop, tài khoản marketing và creator affiliate) kèm hiệu quả trong kỳ: GMV, GPM, lượt xem, tỉ lệ xem hết, nhấp / đơn, tương tác, creator đăng và sản phẩm gắn — bản 202605 có thêm thông tin creator, GMV gián tiếp, tỉ lệ xem hết.
- Gọi qua /v1/tiktok/analytics/202605/shop_videos/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 (vượt → code 28001022 "date range cannot exceed 60 days").
- Chỉ video có phát sinh trong kỳ; video cũ (đăng nhiều tháng trước) vẫn xuất hiện nếu còn lượt xem / đơn.
- Tỉ lệ là chuỗi thập phân 0–1.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/analytics/202605/shop_videos/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 |
|---|---|---|---|---|---|
| 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). |
| page_size | query | int | No | 30 | 1–100, mặc định 10. |
| page_token | query | string | No | Trang kế. | |
| sort_field | query | string | No | gmv | gmv (mặc định) · gpm · avg_customers · sku_orders · items_sold · views · click_through_rate. |
| sort_order | query | string | No | DESC | ASC · DESC (mặc định). |
| account_type | query | string | No | ALL | ALL (mặc định) · OFFICIAL_ACCOUNTS · MARKETING_ACCOUNTS · AFFILIATE_ACCOUNTS (creator). |
| currency | query | string | No | LOCAL | Phản hồi hiện luôn là tiền gian hàng. |
Pagination
Lặp khi data.next_page_token khác rỗng.
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/analytics/202605/shop_videos/performance?platform_shop_id=7494000000000000000&start_date_ge=2026-10-15&end_date_lt=2026-10-27&page_size=30&sort_field=gmv&sort_order=DESC&account_type=ALL¤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/202605/shop_videos/performance",
params={
"platform_shop_id": "7494000000000000000",
"start_date_ge": "2026-10-15",
"end_date_lt": "2026-10-27",
"page_size": 30,
"sort_field": "gmv",
"sort_order": "DESC",
"account_type": "ALL",
"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/202605/shop_videos/performance');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000","start_date_ge":"2026-10-15","end_date_lt":"2026-10-27","page_size":30,"sort_field":"gmv","sort_order":"DESC","account_type":"ALL","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/202605/shop_videos/performance' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000', 'start_date_ge' => '2026-10-15', 'end_date_lt' => '2026-10-27', 'page_size' => 30, 'sort_field' => 'gmv', 'sort_order' => 'DESC', 'account_type' => 'ALL', '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. | |
| latest_available_date | string | Minh họa | Latest khả dụng ngày. |
| total_count | number | 1 | Tổng số lượng. |
| next_page_token | string | Tiếp theo trang con trỏ. | |
| videos | object[] | Videos. | |
| id | string | 100000000000000001 | Mã video TikTok — dùng cho API chi tiết video. |
| title | string | Minh họa | Chú thích video. |
| username | string | Minh họa | Tài khoản đăng. |
| creator | object | {author_type `OFFICIAL_ACCOUNTS`|`MARKETING_ACCOUNTS`|`AFFILIATE_ACCOUNTS`, user_name, nick_name, open_id, creator_id, creator_country}. | |
| author_type | string | Minh họa | Tác giả loại. |
| creator_country | string | Minh họa | Creator quốc gia. |
| creator_id | string | 100000000000000001 | Creator mã. |
| nick_name | string | Minh họa | Nick tên. |
| open_id | string | 100000000000000001 | Open mã. |
| user_name | string | Minh họa | Người dùng tên. |
| video_post_time | string | Minh họa | Thời điểm đăng (giờ gian hàng). |
| duration | number | 1 | Giây. |
| hash_tags | string[] | ['Minh họa'] | Hash tags. |
| advertisable | bool | False | Có thể dùng chạy quảng cáo. |
| views | number | 1 | Lượt xem trong kỳ. |
| video_finish_rate | string | 0.1 | Tỉ lệ xem hết (0–1). |
| likes | number | 1 | Likes. |
| comments | number | 1 | Comments. |
| shares | number | 1 | Shares. |
| new_followers | number | 1 | New followers. |
| gmv | object | {amount, currency}. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| attributed_gmv | object | GMV quy cho video. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| indirect_gmv | object | GMV gián tiếp. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| gpm | object | GMV / 1.000 lượt xem. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Tiền tệ. |
| sku_orders | number | 1 | Sku orders. |
| items_sold | number | 1 | Items sold. |
| avg_customers | number | 1 | Trung bình khách hàng. |
| product_impressions | number | 1 | Sản phẩm lượt hiển thị. |
| product_clicks | number | 1 | Sản phẩm lượt nhấp. |
| click_through_rate | string | 0.1 | Click through tỷ giá. |
| ctor | string | 0.1 | Nhấp → đơn. |
| v_to_l_clicks | number | 1 | Nhấp từ video sang LIVE. |
| v_to_l_rate | string | 0.1 | V to l tỷ giá. |
| products | object[] | Sản phẩm gắn: [{id, name}]. | |
| id | string | 100000000000000001 | Mã. |
| name | string | Minh họa | Tên. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"latest_available_date": "Minh họa",
"total_count": 1,
"next_page_token": "",
"videos": [
{
"id": "100000000000000001",
"title": "Minh họa",
"username": "Minh họa",
"creator": {
"author_type": "Minh họa",
"creator_country": "Minh họa",
"creator_id": "100000000000000001",
"nick_name": "Minh họa",
"open_id": "100000000000000001",
"user_name": "Minh họa"
},
"video_post_time": "Minh họa",
"duration": 1,
"hash_tags": [
"Minh họa"
],
"advertisable": false,
"views": 1,
"video_finish_rate": "0.1",
"likes": 1,
"comments": 1,
"shares": 1,
"new_followers": 1,
"gmv": {
"amount": "10000",
"currency": "VND"
},
"attributed_gmv": {
"amount": "10000",
"currency": "VND"
},
"indirect_gmv": {
"amount": "10000",
"currency": "VND"
},
"gpm": {
"amount": "10000",
"currency": "VND"
},
"sku_orders": 1,
"items_sold": 1,
"avg_customers": 1,
"product_impressions": 1,
"product_clicks": 1,
"click_through_rate": "0.1",
"ctor": "0.1",
"v_to_l_clicks": 1,
"v_to_l_rate": "0.1",
"products": [
{
"id": "100000000000000001",
"name": "Minh họa"
}
]
}
]
}
}
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