tiktok.product.202604.opportunities.opportunity_id
GET/product/202604/opportunities/{opportunity_id}Via 360: GET https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/{opportunity_id}
Description
Lấy chi tiết cơ hội bán hàng theo mã, gồm xu hướng thị trường, cạnh tranh và hành động gợi ý.
- Gọi qua /v1/tiktok/product/202604/opportunities/{opportunity_id} 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.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/{opportunity_id}
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 |
|---|---|---|---|---|---|
| opportunity_id | path | string | Yes | 900000000000000001 | Mã cơ hội bán hàng. |
| locale | query | string | No | vi-VN | Mã ngôn ngữ hiển thị; mặc định theo gian hàng; giá trị liên quan: COUNTRY_CODE. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/900000000000000001?locale=vi-VN" \ -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/product/202604/opportunities/900000000000000001",
params={
"locale": "vi-VN"
},
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/202604/opportunities/900000000000000001');
for (const [k, v] of Object.entries({"locale":"vi-VN"})) 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/product/202604/opportunities/900000000000000001' . '?' . http_build_query(['locale' => 'vi-VN']); $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ã kết quả; 0 là thành công. |
| message | string | Success | Thông báo kết quả. |
| request_id | string | YEU_CAU_MINH_HOA | Mã yêu cầu để tra cứu lỗi. |
| data | object | Dữ liệu. | |
| opportunity | object | Cơ hội bán hàng. | |
| id | string | 900000000000000001 | Mã định danh. |
| action_type | string | LIST_SAME | Loại hành động; giá trị liên quan: LIST_SAME, LIST_SIMILAR. |
| listing_criteria | object | Điều kiện đăng. | |
| product_brand | string | Minh họa | Thương hiệu sản phẩm. |
| product_category | string | Minh họa | Ngành hàng sản phẩm. |
| product_status | string | LIVE | Trạng thái sản phẩm. |
| keywords | string | Minh họa | Các từ khóa. |
| content_data | object | Dữ liệu nội dung. | |
| video_view_pv | string | Minh họa | Lượt xem video. |
| shoppable_video_search_pv | string | Minh họa | Lượt tìm kiếm video có thể mua hàng. |
| trending_hashtag | string | Minh họa | Hashtag xu hướng. |
| top_shoppable_video_links | string[] | Các địa chỉ video mua hàng nổi bật. | |
| market_data | object | Dữ liệu thị trường. | |
| est_market_sales_volume | string | Minh họa | Sản lượng thị trường ước tính. |
| est_market_gmv | string | Minh họa | GMV thị trường ước tính. |
| market_buzz | string | HOT | Mức độ quan tâm của thị trường. |
| search_volume | string | Minh họa | Lượng tìm kiếm. |
| search_keyword | string | Minh họa | Từ khóa tìm kiếm. |
| competitor_product_count | string | Minh họa | Số sản phẩm cạnh tranh. |
| competitor_seller_count | string | Minh họa | Số người bán cạnh tranh. |
| basic_info | object | Thông tin cơ bản. | |
| opportunity_type | string | PRODUCT | Loại cơ hội bán hàng; giá trị liên quan: PRODUCT, KEYWORD, CATEGORY. |
| status | string | ACTIVE | Trạng thái. |
| create_time | int | 1793494800 | Thời gian tạo; Unix giây. |
| expire_time | int | 1793494800 | Thời điểm hết hạn. |
| title | string | Áo thun cotton cổ tròn minh họa | Tiêu đề. |
| category_id_level_1 | string | Minh họa | Mã ngành hàng cấp 1. |
| category_id_level_2 | string | Minh họa | Mã ngành hàng cấp 2. |
| category_id_level_3 | string | Minh họa | Mã ngành hàng cấp 3. |
| category_name_level_1 | string | Minh họa | Tên ngành hàng cấp 1. |
| category_name_level_2 | string | Minh họa | Tên ngành hàng cấp 2. |
| category_name_level_3 | string | Minh họa | Tên ngành hàng cấp 3. |
| reference_price | string | 150000 | Giá tham chiếu. |
| reference_images | string[] | Các ảnh tham chiếu. | |
| brand_info | string | Minh họa | Thông tin thương hiệu. |
| reward_info | string | Minh họa | Thông tin phần thưởng. |
| recom_info | string | Minh họa | Thông tin đề xuất. |
| tags | string | Minh họa | Các nhãn. |
| tag_codes | string[] | Các mã nhãn. | |
| external_product_id | string | 900000000000000001 | Mã sản phẩm trong hệ thống bên ngoài. |
| reference_source | string | Minh họa | Nguồn tham chiếu; giá trị liên quan: UNIVERSAL_PRODUCT, NEXUS_SHOPIFY, SHOPIFY_NON_1P, MERCADO_LIBRE, SHOPEE, AMAZON, LOOKFANTASTIC, WALMART, TTS, ASOS, DTCNEXUS, TEMU, SHOPIFY, SHEIN, PIXEL, MIRAVIA, RAKUTEN, EBAY, ONBUY, ALLEGRO, BOL, DTC. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "YEU_CAU_MINH_HOA",
"data": {
"opportunity": {
"id": "900000000000000001",
"action_type": "LIST_SAME",
"listing_criteria": {
"product_brand": "Minh họa",
"product_category": "Minh họa",
"product_status": "LIVE",
"keywords": "Minh họa"
},
"content_data": {
"video_view_pv": "Minh họa",
"shoppable_video_search_pv": "Minh họa",
"trending_hashtag": "Minh họa",
"top_shoppable_video_links": [
""
]
},
"market_data": {
"est_market_sales_volume": "Minh họa",
"est_market_gmv": "Minh họa",
"market_buzz": "HOT",
"search_volume": "Minh họa",
"search_keyword": "Minh họa",
"competitor_product_count": "Minh họa",
"competitor_seller_count": "Minh họa"
},
"basic_info": {
"opportunity_type": "PRODUCT",
"status": "ACTIVE",
"create_time": 1793494800,
"expire_time": 1793494800,
"title": "Áo thun cotton cổ tròn minh họa",
"category_id_level_1": "Minh họa",
"category_id_level_2": "Minh họa",
"category_id_level_3": "Minh họa",
"category_name_level_1": "Minh họa",
"category_name_level_2": "Minh họa",
"category_name_level_3": "Minh họa",
"reference_price": "150000",
"reference_images": [
"Minh họa"
],
"brand_info": "Minh họa",
"reward_info": "Minh họa",
"recom_info": "Minh họa",
"tags": "Minh họa",
"tag_codes": [
"Minh họa"
],
"external_product_id": "900000000000000001",
"reference_source": "Minh họa"
}
}
}
}
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