VI | EN
Message us on Messenger
Developer resources

Get Shop Videos Performance Details — TikTok Shop API

tiktok.analytics.202609.shop_videos.batch_performance · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

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

NameInTypeSampleDescription
AuthorizationheaderheaderBearer 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_idquerystring100001Gian 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

NameInTypeRequiredSampleDescription
video_idsquery[]intYes[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_gequerystringYes2026-11-01Ngà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_ltquerystringYes2026-11-02Ngà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.
granularityquerystringNoALLALL: gộp cả kỳ; 1D: theo ngày. Mặc định ALL.
currencyquerystringNoVNDUSD: đô 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&currency=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)

NameTypeSampleDescription
codeint0Mã. Giá trị: API.
messagestringSuccessTin nhắn. Giá trị: API.
request_idstringDEMO_REQUEST_A_01Yêu cầu mã.
dataobjectDữ liệu.
latest_available_datestringMinh họaLatest khả dụng ngày. Giá trị: ISO.
videos[]objectVideos.
errorobjectLỗi.
codestring0Mã.
messagestringSuccessTin nhắn.
performanceobjectHiệu quả.
intervals[]objectIntervals.
end_datestringMinh họaKết thúc ngày.
salesobjectDoanh số.
overallobjectOverall.
ctrstring0.1Ctr.
customersint1Khách hàng.
gmvobjectGmv.
amountstring10000Số tiền.
currencystringVNDMã tiền tệ ISO 4217.
gpmobjectGpm. Giá trị: GMV.
amountstring10000Số tiền.
currencystringVNDMã tiền tệ ISO 4217.
items_soldint1Items sold.
product_clicksint1Sản phẩm lượt nhấp.
product_impressionsint1Sản phẩm lượt hiển thị.
start_datestringMinh họaBắt đầu ngày.
trafficobjectLưu lượng.
commentsint1Comments.
likesint1Likes.
new_followersint1New followers.
sharesint1Shares.
viewsint1Lượt xem.
viewer_profile[]objectViewer profile.
age_distribution[]objectTuổi phân bố.
agestringMinh họaTuổi.
percentagestring0.1Phần trăm.
country_distribution[]objectQuốc gia phân bố.
country_codestringMinh họaQuốc gia mã.
percentagestring0.1Phần trăm.
gender_distribution[]objectGiới tính phân bố.
genderstringMinh họaGiới tính. Giá trị: MALE, FEMALE.
percentagestring0.1Phần trăm.
typestringNEW_FOLLOWERLoại. Giá trị: NEW_FOLLOWER, VIEWERS.
videoobjectVideo.
durationint1Thời lượng.
idstring100000000000000001Mã.
play_urlstringPlay url. Giá trị: URL.
thumbnail_urlstringThumbnail url. Giá trị: URL.
titlestringMinh họaTiêu đề.
usernamestringMinh họaUsername.
video_post_timestring1793491200Video post thời điểm.
video_idstring100000000000000001Video 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

  1. Sign up for Partner
  2. Enable a data type of the Video group on the platform page
  3. Create an API key (tick the TikTok Shop channel)
  4. Call it as in the examples above