Search Douyin videos by keyword
justoneapi.x.douyin-search-video-v4Searches Douyin (TikTok China) videos by keyword with sort, publish-time, duration, and page filters; later pages require the previous search ID.
- 价格
- $0.01476/success按供应商原价
- 成功率
- 100%近 30 天 · 39 次
- 延迟 p50
- 5.6 秒p95 10 秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
page | 整数 | 可选 | Page number (starting from 1). | 1 |
keyword | 字符串 | 必填 | The search keyword. | 美食 |
duration | 字符串 | 可选 | Filter by video duration. Available Values: - `_0`: No Limit - `_1`: Under 1 Minute - `_2`: 1-5 Minutes - `_3`: Over 5 Minutes One of: _0, _1, _2, _3. | _0 |
searchId | 字符串 | 可选 | Search ID; required for pages > 1. Use data.business_config.next_page.search_id from the previous response, and stop paging when data.business_config.has_more is 0. | |
sortType | 字符串 | 可选 | Sorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2. | _0 |
publishTime | 字符串 | 可选 | Filter by video publish time range. Available Values: - `_0`: No Limit - `_1`: Last 24 Hours - `_7`: Last 7 Days - `_180`: Last 6 Months One of: _0, _1, _7, _180. | _0 |
- 查询参数
page整数可选Page number (starting from 1).
示例:
1keyword字符串必填The search keyword.
示例:
美食duration字符串可选Filter by video duration. Available Values: - `_0`: No Limit - `_1`: Under 1 Minute - `_2`: 1-5 Minutes - `_3`: Over 5 Minutes One of: _0, _1, _2, _3.
示例:
_0searchId字符串可选Search ID; required for pages > 1. Use data.business_config.next_page.search_id from the previous response, and stop paging when data.business_config.has_more is 0.
sortType字符串可选Sorting criteria for search results. Available Values: - `_0`: General - `_1`: More likes - `_2`: Newest One of: _0, _1, _2.
示例:
_0publishTime字符串可选Filter by video publish time range. Available Values: - `_0`: No Limit - `_1`: Last 24 Hours - `_7`: Last 7 Days - `_180`: Last 6 Months One of: _0, _1, _7, _180.
示例:
_0
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.douyin-search-video-v4?page=1&keyword=%E7%BE%8E%E9%A3%9F&duration=_0&sortType=_0&publishTime=_0", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.01476/success 计费,已含服务费。