Search Douyin users
tikhub.x.douyin-search-fetch-user-search-v2Douyin: fetch user search v2 (search)
- 価格
- $0.001/successカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- —未確認
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-user-search-v2Beta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
cursor | 整数 | 任意 | Offset cursor for pagination, obtained from the last response | 0 |
keyword | 文字列 | 任意 | Keyword | 猫咪 |
- リクエストボディ(JSON)
cursor整数任意Offset cursor for pagination, obtained from the last response
例:
0keyword文字列任意Keyword
例:
猫咪
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-user-search-v2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"cursor":0,"keyword":"猫咪"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-user-search-v2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"cursor\":0,\"keyword\":\"猫咪\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.douyin-search-fetch-user-search-v2", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"cursor\":0,\"keyword\":\"猫咪\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。