Douyin challenge posts
tikhub.x.douyin-web-fetch-challenge-postsDouyin: Challenge Posts
- Price
- $0.001/successプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-web-fetch-challenge-postsPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
count | 整数 | 任意 | Count | 20 |
cookie | 文字列 | 任意 | User provided Cookie | |
cursor | 整数 | 任意 | Cursor | 0 |
sort_type | 整数 | 任意 | Sort type | 0 |
challenge_id | 文字列 | 任意 | Challenge ID | 1608846127610893 |
- リクエストボディ(JSON)
count整数任意Count
例:
20cookie文字列任意User provided Cookie
cursor整数任意Cursor
例:
0sort_type整数任意Sort type
例:
0challenge_id文字列任意Challenge ID
例:
1608846127610893
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。