Search Douyin challenges
tikhub.x.douyin-search-fetch-challenge-search-v2Douyin: fetch challenge search v2 (search)
- 价格
- $0.01/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-search-v2预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
cursor | 整数 | 可选 | Offset cursor for pagination, obtained from the last response | 0 |
keyword | 字符串 | 可选 | Keyword | 猫咪 |
backtrace | 字符串 | 可选 | Backtrace for pagination, obtained from the last response | |
search_id | 字符串 | 可选 | Search ID for pagination, obtained from the last response | |
sort_type | 字符串 | 可选 | Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest | 0 |
content_type | 字符串 | 可选 | Content type: 0=All, 1=Video, 2=Picture, 3=Article | 0 |
publish_time | 字符串 | 可选 | Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year | 0 |
filter_duration | 字符串 | 可选 | Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes | 0 |
- 请求体(JSON)
cursor整数可选Offset cursor for pagination, obtained from the last response
示例:
0keyword字符串可选Keyword
示例:
猫咪backtrace字符串可选Backtrace for pagination, obtained from the last response
search_id字符串可选Search ID for pagination, obtained from the last response
sort_type字符串可选Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest
示例:
0content_type字符串可选Content type: 0=All, 1=Video, 2=Picture, 3=Article
示例:
0publish_time字符串可选Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year
示例:
0filter_duration字符串可选Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes
示例:
0
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-search-v2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"cursor":0,"keyword":"猫咪","sort_type":"0","content_type":"0","publish_time":"0","filter_duration":"0"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-search-v2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"cursor\":0,\"keyword\":\"猫咪\",\"sort_type\":\"0\",\"content_type\":\"0\",\"publish_time\":\"0\",\"filter_duration\":\"0\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-search-v2", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"cursor\":0,\"keyword\":\"猫咪\",\"sort_type\":\"0\",\"content_type\":\"0\",\"publish_time\":\"0\",\"filter_duration\":\"0\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.01/success 计费,已含服务费。