Search Douyin challenges
tikhub.x.douyin-search-fetch-challenge-search-v2Douyin: fetch challenge search v2 (search)
- Price
- $0.01/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 28 de jul. de 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-search-v2Preview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
cursor | inteiro | Opcional | Offset cursor for pagination, obtained from the last response | 0 |
keyword | string | Opcional | Keyword | 猫咪 |
backtrace | string | Opcional | Backtrace for pagination, obtained from the last response | |
search_id | string | Opcional | Search ID for pagination, obtained from the last response | |
sort_type | string | Opcional | Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest | 0 |
content_type | string | Opcional | Content type: 0=All, 1=Video, 2=Picture, 3=Article | 0 |
publish_time | string | Opcional | Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year | 0 |
filter_duration | string | Opcional | Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes | 0 |
- Corpo (JSON)
cursorinteiroOpcionalOffset cursor for pagination, obtained from the last response
Exemplo:
0keywordstringOpcionalKeyword
Exemplo:
猫咪backtracestringOpcionalBacktrace for pagination, obtained from the last response
search_idstringOpcionalSearch ID for pagination, obtained from the last response
sort_typestringOpcionalSort type: 0=Comprehensive, 1=Most Likes, 2=Latest
Exemplo:
0content_typestringOpcionalContent type: 0=All, 1=Video, 2=Picture, 3=Article
Exemplo:
0publish_timestringOpcionalPublish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year
Exemplo:
0filter_durationstringOpcionalVideo duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes
Exemplo:
0
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-challenge-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-challenge-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-challenge-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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.01/success, incluindo a taxa de serviço.