VI | EN
Message us on Messenger
Developer resources

Sản phẩm trong một phiên live — TikTok Shop API

tiktok.analytics.202512.shop.live_id.products_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.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ưng sort_field vẫn dùng product_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

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
live_idpathstringYes7693000000000000001Mã phiên LIVE (live_stream_sessions[].id).
sort_fieldquerystringNogmvgmv (mặc định) · items_sold · customers · created_sku_orders · sku_orders · main_orders · product_impressions · product_clicks.
sort_orderquerystringNoDESCASC · DESC (mặc định).
currencyquerystringNoLOCALLOCAL · 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&currency=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)

NameTypeSampleDescription
codeint00 = thành công; khác 0 xem message (105001–105003 = token, 360 đã tự làm mới một lần).
messagestringSuccessThông điệp của TikTok.
request_idstringDEMO_REQUEST_A_01Mã request TikTok.
dataobjectDữ liệu.
productsobject[]Mọi sản phẩm được gắn trong phiên (kể cả không bán được).
idstring100000000000000001Mã sản phẩm.
namestringMinh họaTên sản phẩm.
salesobjectDoanh số.
direct_gmvobjectGMV đơn đặt trực tiếp từ LIVE (gồm cả đơn sau đó hoàn) {amount, currency}.
amountstring10000Số tiền.
currencystringVNDTiền tệ.
items_soldnumber1Items sold.
customersnumber1Khách hàng.
created_sku_ordersnumber1Đơn SKU tạo.
sku_ordersnumber1Đơn SKU đã thanh toán.
main_ordersnumber1Main orders.
avg_priceobjectGMV / đơn.
amountstring10000Số tiền.
currencystringVNDTiền tệ.
payment_ratestring0.1Đơn đã thanh toán / đơn tạo.
trafficobjectLưu lượng.
product_impressionsnumber1Sản phẩm lượt hiển thị.
produt_clicksnumber1Lượt nhấp (tên trường viết sai `produt_clicks`).
ctrstring0.1Nhấp / hiển thị (0–1).
add_to_cart_countnumber1Lượt thêm giỏ.
click_to_order_rateobject{sku_order_ctor, main_order_ctor}.
main_order_ctorstringMinh họaMain đơn hàng ctor.
sku_order_ctorstringMinh họaSku đơn hàng ctor.
gpmobject{watch_gpm} — GMV / 1.000 lượt xem.
watch_gpmstringMinh họaXem 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

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