tiktok.analytics.202609.shop_videos.batch_performance
GET/analytics/202609/shop_videos/batch_performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/analytics/202609/shop_videos/batch_performance
Description
Lấy chi tiết hiệu quả theo danh sách video và khoảng ngày; định dạng video_ids qua 360 chưa xác định.
- Gọi qua /v1/tiktok/analytics/202609/shop_videos/batch_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.
- video_ids trả lỗi kiểu mảng; chưa xác định định dạng hợp lệ qua 360. Mẫu chỉ minh họa cấu trúc, chưa xác nhận gọi được.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/analytics/202609/shop_videos/batch_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_ids | query | []int | Yes | [1] | Danh sách mã video; qua 360 trả lỗi kiểu mảng, chưa xác định định dạng hợp lệ. |
| start_date_ge | query | string | Yes | 2026-11-01 | Ngày bắt đầu YYYY-MM-DD theo múi giờ gian hàng, tính cả mốc. Khoảng ngày tối đa 60 ngày. |
| end_date_lt | query | string | Yes | 2026-11-02 | Ngày kết thúc YYYY-MM-DD theo múi giờ gian hàng, không tính mốc. Khoảng ngày tối đa 60 ngày. |
| granularity | query | string | No | ALL | ALL: gộp cả kỳ; 1D: theo ngày. Mặc định ALL. |
| currency | query | string | No | VND | USD: đô la Mỹ; LOCAL: tiền địa phương, mặc định LOCAL. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/analytics/202609/shop_videos/batch_performance?video_ids=%5B1%5D&start_date_ge=2026-11-01&end_date_lt=2026-11-02&granularity=ALL¤cy=VND" \ -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/202609/shop_videos/batch_performance",
params={
"video_ids": [
1
],
"start_date_ge": "2026-11-01",
"end_date_lt": "2026-11-02",
"granularity": "ALL",
"currency": "VND"
},
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/202609/shop_videos/batch_performance');
for (const [k, v] of Object.entries({"video_ids":[1],"start_date_ge":"2026-11-01","end_date_lt":"2026-11-02","granularity":"ALL","currency":"VND"})) 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/202609/shop_videos/batch_performance' . '?' . http_build_query(['video_ids' => '[1]', 'start_date_ge' => '2026-11-01', 'end_date_lt' => '2026-11-02', 'granularity' => 'ALL', 'currency' => 'VND']); $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 | Mã. Giá trị: API. |
| message | string | Success | Tin nhắn. Giá trị: API. |
| request_id | string | DEMO_REQUEST_A_01 | Yêu cầu mã. |
| data | object | Dữ liệu. | |
| latest_available_date | string | Minh họa | Latest khả dụng ngày. Giá trị: ISO. |
| videos | []object | Videos. | |
| error | object | Lỗi. | |
| code | string | 0 | Mã. |
| message | string | Success | Tin nhắn. |
| performance | object | Hiệu quả. | |
| intervals | []object | Intervals. | |
| end_date | string | Minh họa | Kết thúc ngày. |
| sales | object | Doanh số. | |
| overall | object | Overall. | |
| ctr | string | 0.1 | Ctr. |
| customers | int | 1 | Khách hàng. |
| gmv | object | Gmv. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Mã tiền tệ ISO 4217. |
| gpm | object | Gpm. Giá trị: GMV. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Mã tiền tệ ISO 4217. |
| items_sold | int | 1 | Items sold. |
| product_clicks | int | 1 | Sản phẩm lượt nhấp. |
| product_impressions | int | 1 | Sản phẩm lượt hiển thị. |
| start_date | string | Minh họa | Bắt đầu ngày. |
| traffic | object | Lưu lượng. | |
| comments | int | 1 | Comments. |
| likes | int | 1 | Likes. |
| new_followers | int | 1 | New followers. |
| shares | int | 1 | Shares. |
| views | int | 1 | Lượt xem. |
| viewer_profile | []object | Viewer profile. | |
| age_distribution | []object | Tuổi phân bố. | |
| age | string | Minh họa | Tuổi. |
| percentage | string | 0.1 | Phần trăm. |
| country_distribution | []object | Quốc gia phân bố. | |
| country_code | string | Minh họa | Quốc gia mã. |
| percentage | string | 0.1 | Phần trăm. |
| gender_distribution | []object | Giới tính phân bố. | |
| gender | string | Minh họa | Giới tính. Giá trị: MALE, FEMALE. |
| percentage | string | 0.1 | Phần trăm. |
| type | string | NEW_FOLLOWER | Loại. Giá trị: NEW_FOLLOWER, VIEWERS. |
| video | object | Video. | |
| duration | int | 1 | Thời lượng. |
| id | string | 100000000000000001 | Mã. |
| play_url | string | Play url. Giá trị: URL. | |
| thumbnail_url | string | Thumbnail url. Giá trị: URL. | |
| title | string | Minh họa | Tiêu đề. |
| username | string | Minh họa | Username. |
| video_post_time | string | 1793491200 | Video post thời điểm. |
| video_id | string | 100000000000000001 | Video mã. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"latest_available_date": "Minh họa",
"videos": [
{
"error": {
"code": 0,
"message": "Success"
},
"performance": {
"intervals": [
{
"end_date": "Minh họa",
"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
}
},
"start_date": "Minh họa",
"traffic": {
"comments": 1,
"likes": 1,
"new_followers": 1,
"shares": 1,
"views": 1
}
}
],
"viewer_profile": [
{
"age_distribution": [
{
"age": "Minh họa",
"percentage": "0.1"
}
],
"country_distribution": [
{
"country_code": "Minh họa",
"percentage": "0.1"
}
],
"gender_distribution": [
{
"gender": "Minh họa",
"percentage": "0.1"
}
],
"type": "NEW_FOLLOWER"
}
]
},
"video": {
"duration": 1,
"id": "100000000000000001",
"play_url": "",
"thumbnail_url": "",
"title": "Minh họa",
"username": "Minh họa",
"video_post_time": "1793491200"
},
"video_id": "100000000000000001"
}
]
}
}
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