Search Douyin across all content
tikhub.x.douyin-search-fetch-general-search-v2Douyin: fetch general search v2 (search)
- Price
- $0.01/success제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다Last 30 days · 1 calls
- Latency p50
- ——
- Last verified
- 2026. 7. 28.Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-general-search-v2PreviewTry online출시 예정Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 요청 본문(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를 콘솔에서 생성한 키로 바꾸세요.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-general-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-general-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-general-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());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.01/success이며 서비스 수수료가 포함되어 있습니다.