tiktok.product.202309.products.search
POST/product/202309/products/searchVia 360: POST https://partner.quantri360.com/v1/tiktok/product/202309/products/search
Description
Tìm sản phẩm của gian hàng theo trạng thái / SKU / thời gian — trả sản phẩm kèm từng SKU (giá, tồn theo kho). Nguồn danh mục sản phẩm của 360.
- Chỉ trả thông tin tóm tắt (tên, SKU, giá, tồn). Ảnh, mô tả, thuộc tính: GET /product/202309/products/{product_id}.
Request
Endpoint
POST https://partner.quantri360.com/v1/tiktok/product/202309/products/search
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 |
|---|---|---|---|---|---|
| page_size | query | int | Yes | 100 | Số sản phẩm mỗi trang: 1–100. |
| page_token | query | string | No | next_page_token của trang trước. | |
| status | body | string | No | ACTIVATE | ALL · DRAFT · PENDING (chờ duyệt) · FAILED · ACTIVATE (đang bán) · SELLER_DEACTIVATED · PLATFORM_DEACTIVATED · FREEZE · DELETED. |
| seller_skus | body | string[] | No | Lọc theo SKU người bán. | |
| create_time_ge | body | int | No | Tạo từ (Unix giây). | |
| create_time_le | body | int | No | Tạo đến (Unix giây). | |
| update_time_ge | body | int | No | Cập nhật từ (Unix giây) — dùng đồng bộ thay đổi. | |
| update_time_le | body | int | No | Cập nhật đến (Unix giây). |
Pagination
Lặp khi data.next_page_token khác rỗng: gửi lại đúng body, thêm query page_token.
Request examples
curl -s -X POST "https://partner.quantri360.com/v1/tiktok/product/202309/products/search?platform_shop_id=7494000000000000000&page_size=100" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"status":"ACTIVATE"}'
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.post(
"https://partner.quantri360.com/v1/tiktok/product/202309/products/search",
params={
"platform_shop_id": "7494000000000000000",
"page_size": 100
},
json={
"status": "ACTIVATE"
},
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/product/202309/products/search');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000","page_size":100})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'POST',
headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"status":"ACTIVATE"}),
});
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/product/202309/products/search' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000', 'page_size' => 100]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key, 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"status":"ACTIVATE"}');
$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 | YEU_CAU_MINH_HOA | Mã request TikTok. |
| data | object | Dữ liệu. | |
| total_count | int | 1 | Tổng sản phẩm khớp bộ lọc. |
| next_page_token | string | Rỗng = hết. | |
| products | object[] | Sản phẩm. | |
| id | string | 900000000000000001 | Mã sản phẩm. |
| title | string | Áo thun cotton cổ tròn minh họa | Tên. |
| status | string | Minh họa | Trạng thái. |
| create_time | int | 1793494800 | Unix giây. |
| update_time | int | 1793494800 | Unix giây. |
| sales_regions | string[] | Các thị trường bán. | |
| skus | object[] | Biến thể. | |
| id | string | 900000000000000001 | Mã SKU TikTok. |
| seller_sku | string | SKU-MAU-01 | SKU người bán. |
| price | object | {currency, tax_exclusive_price (chuỗi số)}. | |
| currency | string | VND | Mã tiền tệ. |
| tax_exclusive_price | string | 150000 | Giá chưa gồm thuế. |
| inventory | object[] | Tồn theo kho: [{warehouse_id, quantity}]. | |
| quantity | … | Minh họa | Số lượng. |
| warehouse_id | … | 900000000000000001 | Mã kho. |
| product_tags | object[] | Các nhãn sản phẩm. | |
| recommended_categories | object[] | Các ngành hàng được gợi ý. |
Get started
- Sign up for Partner
- Enable a data type of the Sản phẩm group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above