Search TikTok videos by keyword
scrapecreators.tiktok.search.videosSearches for TikTok videos by keyword or phrase — the general video search across all of TikTok.
- 价格
- $0.00188/call按供应商原价
- 成功率
- 99.6%近 30 天 · 12,085 次
- 延迟 p50
- 3.8 秒p95 5.5 秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
trim | 布尔 | 可选 | Set to true for a trimmed response | |
query | 字符串 | 必填 | Keyword to search for | ai |
cursor | 数字 | 可选 | Pagination cursor from previous response cursor field | 10 |
region | 字符串 | 可选 | Does NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR | |
sort_by | 字符串 | 可选 | Sort by | relevance |
date_posted | 字符串 | 可选 | Time frame | all-time |
- 查询参数
trim布尔可选Set to true for a trimmed response
query字符串必填Keyword to search for
示例:
aicursor数字可选Pagination cursor from previous response cursor field
示例:
10region字符串可选Does NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR
sort_by字符串可选Sort by
示例:
relevancedate_posted字符串可选Time frame
示例:
all-time
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time", {
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.00188/call 计费,已含服务费。