platform_sourceinteger
Platform source, 1=Douyin, 2=Toutiao
預設:1
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/search-field-optionsGet Search Field Options on Douyin. Returns the platform data as structured JSON.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns the filter option lists that Douyin Xingtu uses in its creator search. Each option set is a JSON string that holds codes and labels, such as audience groups, video labels, brands and local-life ranges. It needs platform_source and task_category, and both have defaults.
service_options.local_location.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/search-field-options" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform_source": 1, "task_category": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
platform_source | integer | No | Platform source, 1=Douyin, 2=Toutiao |
task_category | integer | No | Task category, 1=Douyin video, 6=Douyin live, 11=Toutiao article |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"service_options": {
"aa_live_character_label": "[{\"value\":11101,\"label\":\"出镜人性别\",\"children\":[{\"value\":1110101,\"label\":\"男\"},{\"valu…",
"aa_live_content_label": "[{\"value\":10901,\"label\":\"传奇游戏\"},{\"value\":10902,\"label\":\"仙侠游戏\"},{\"value\":10903,\"l…",
"aa_live_game_category_label": "[{\"value\":11201,\"label\":\"角色扮演\"},{\"value\":11202,\"label\":\"动作游戏\"},{\"value\":11203,\"l…",
"aa_live_order_label": "[{\"value\":11001,\"label\":\"传奇游戏\"},{\"value\":11002,\"label\":\"仙侠游戏\"},{\"value\":11003,\"l…",
"fans_crowd_profile": "[{\"value\":58,\"label\":\"Z世代\"},{\"value\":60,\"label\":\"小镇青年\"},{\"value\":55,\"label\":\"新锐白…",
"fuse_video_labels_v2": "[{\"label_index\":631,\"label_name\":\"时尚\",\"label_level\":1,\"children\":[{\"label_index\"…",
"game_brand_fans_limit": "[{\"game_brand_fans_limit_min\":100000},{\"game_brand_fans_limit_min\":50000,\"game_b…",
"link_crowd_profile": "[{\"value\":58,\"label\":\"Z世代\"},{\"value\":60,\"label\":\"小镇青年\"},{\"value\":55,\"label\":\"新锐白…",
"local_gmv": "[{\"local_gmv_ge\":500000},{\"local_gmv_ge\":100000,\"local_gmv_le\":500000},{\"local_g…",
"local_item_cnt": "[{\"local_item_cnt__ge\":20},{\"local_item_cnt__ge\":10},{\"local_item_cnt__ge\":5},{\"…",
"local_item_rate": "[{\"local_item_rate__ge\":0.05},{\"local_item_rate__ge\":0.10},{\"local_item_rate__ge…",
"local_item_type": "[{\"label\":\"美食\",\"value\":1000000,\"children\":[{\"label\":\"火锅\",\"value\":1003000},{\"labe…"
}
}
| Field | Meaning |
|---|---|
base_resp.status_code / base_resp.status_message | Status of the call. 0 with an empty message means the request succeeded. |
service_options.fuse_video_labels_v2 | JSON string with a nested video label tree. Each node has label_index, label_name, label_level and children. For example, 63101 is a level 2 label under 631. |
service_options.fans_crowd_profile / service_options.link_crowd_profile | JSON strings with audience group options as value and label pairs, such as 58 for Z世代 and 60 for 小镇青年. |
service_options.aa_live_content_label / service_options.aa_live_game_category_label / service_options.aa_live_character_label | JSON strings with label options for live content, game categories and on-screen persona traits. The character label has children under each group. |
service_options.playlet_label | JSON string with genre label options for short dramas, as value and label pairs. |
service_options.local_item_type / service_options.local_item_type_all | JSON strings with nested category trees for local-life items, such as 美食 with 火锅 as a child. Each node has label, value and children. |
service_options.local_location | JSON string that maps each province name to a list of its city names. |
service_options.local_gmv / service_options.local_order_cnt / service_options.local_order_atv / service_options.local_order_gpm | JSON strings with range buckets for local-life filters. Bounds use keys that end in _ge (at least) and _le (at most). |
service_options.order_experience_brand / service_options.order_experience_compare_brands | JSON strings with lists of single-entry objects. Each maps a brand ID to a brand name, such as 1094492 to 立白. |
service_options.order_experience_industry | JSON string with an industry tree. Each node has id, name and children. |
service_options is a string that holds JSON. Parse it again to read the options.platform_source takes 1 for Douyin or 2 for Toutiao. task_category takes 1 for Douyin video, 6 for Douyin live or 11 for Toutiao article.$0.002 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/search-field-options" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"task_category": 1,
"platform_source": 1
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
platform_sourceintegerPlatform source, 1=Douyin, 2=Toutiao
預設:1
task_categoryintegerTask category, 1=Douyin video, 6=Douyin live, 11=Toutiao article
預設:1
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.01 | JSON |
Douyin | 每次呼叫 $0.003 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/search-field-options。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.002,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
不需要任何參數。 選填:platform_source (integer) 和 task_category (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Douyin Search Field Options 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。