Search Douyin videos
tikhub.x.douyin-search-fetch-video-search-v1Douyin: fetch video search v1 (search)
- Price
- $0.01/successAt provider cost
- Success rate
- 100%Last 30 days · 246 calls
- Latency p50
- 2.2 sp95 2.9 s
- Last verified
- Jul 28, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-video-search-v1Preview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (JSON) | ||||
cursor | integer | Optional | Offset cursor for pagination, obtained from the last response | 0 |
keyword | string | Optional | Keyword | 猫咪 |
backtrace | string | Optional | Backtrace for pagination, obtained from the last response | |
search_id | string | Optional | Search ID for pagination, obtained from the last response | |
sort_type | string | Optional | Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest | 0 |
content_type | string | Optional | Content type: 0=All, 1=Video, 2=Picture, 3=Article | 0 |
publish_time | string | Optional | Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year | 0 |
filter_duration | string | Optional | Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes | 0 |
- Request body (JSON)
cursorintegerOptionalOffset cursor for pagination, obtained from the last response
Example:
0keywordstringOptionalKeyword
Example:
猫咪backtracestringOptionalBacktrace for pagination, obtained from the last response
search_idstringOptionalSearch ID for pagination, obtained from the last response
sort_typestringOptionalSort type: 0=Comprehensive, 1=Most Likes, 2=Latest
Example:
0content_typestringOptionalContent type: 0=All, 1=Video, 2=Picture, 3=Article
Example:
0publish_timestringOptionalPublish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year
Example:
0filter_durationstringOptionalVideo duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes
Example:
0
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-video-search-v1' \
-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-video-search-v1",
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-video-search-v1", {
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.01/success, including the service fee.