Douyin challenge posts
tikhub.x.douyin-web-fetch-challenge-postsDouyin: Challenge Posts
- Price
- $0.001/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-web-fetch-challenge-postsPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
count | entier | Facultatif | Count | 20 |
cookie | chaîne | Facultatif | User provided Cookie | |
cursor | entier | Facultatif | Cursor | 0 |
sort_type | entier | Facultatif | Sort type | 0 |
challenge_id | chaîne | Facultatif | Challenge ID | 1608846127610893 |
- Corps (JSON)
countentierFacultatifCount
Exemple :
20cookiechaîneFacultatifUser provided Cookie
cursorentierFacultatifCursor
Exemple :
0sort_typeentierFacultatifSort type
Exemple :
0challenge_idchaîneFacultatifChallenge ID
Exemple :
1608846127610893
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-web-fetch-challenge-posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"count":20,"cursor":0,"sort_type":0,"challenge_id":"1608846127610893"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.douyin-web-fetch-challenge-posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"count\":20,\"cursor\":0,\"sort_type\":0,\"challenge_id\":\"1608846127610893\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.douyin-web-fetch-challenge-posts", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"count\":20,\"cursor\":0,\"sort_type\":0,\"challenge_id\":\"1608846127610893\"}")),
});
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.001/success, frais de service inclus.