Search Douyin discussions
tikhub.x.douyin-search-fetch-discuss-searchDouyin: fetch discuss search (search)
- Price
- $0.01/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentLast 30 days · 2 calls
- Latency p50
- ——
- Last verified
- 28 juil. 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-discuss-searchPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
cursor | entier | Facultatif | Offset cursor for pagination, obtained from the last response | 0 |
keyword | chaîne | Facultatif | Keyword | 猫咪 |
backtrace | chaîne | Facultatif | Backtrace for pagination, obtained from the last response | |
search_id | chaîne | Facultatif | Search ID for pagination, obtained from the last response | |
sort_type | chaîne | Facultatif | Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest | 0 |
content_type | chaîne | Facultatif | Content type: 0=All, 1=Video, 2=Picture, 3=Article | 0 |
publish_time | chaîne | Facultatif | Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year | 0 |
filter_duration | chaîne | Facultatif | Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes | 0 |
- Corps (JSON)
cursorentierFacultatifOffset cursor for pagination, obtained from the last response
Exemple :
0keywordchaîneFacultatifKeyword
Exemple :
猫咪backtracechaîneFacultatifBacktrace for pagination, obtained from the last response
search_idchaîneFacultatifSearch ID for pagination, obtained from the last response
sort_typechaîneFacultatifSort type: 0=Comprehensive, 1=Most Likes, 2=Latest
Exemple :
0content_typechaîneFacultatifContent type: 0=All, 1=Video, 2=Picture, 3=Article
Exemple :
0publish_timechaîneFacultatifPublish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year
Exemple :
0filter_durationchaîneFacultatifVideo duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes
Exemple :
0
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-discuss-search' \
-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-discuss-search",
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-discuss-search", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.01/success, frais de service inclus.