bodystring
User ttwid cookie. Obtain it by calling `/api/v1/douyin/web/generate_ttwid`.
https://api.sandbase.ai/v1/api/douyin/web/query-userReturns basic profile information for a Douyin web user account. The endpoint accepts a ttwid cookie string in the request body to retrieve account details.
[
{
"data": {
"log_pb": {
"impr_id": "20260820174347586C0772EF05BA7CF852"
},
"status_code": 18,
"status_msg": "系统繁忙,请稍后再试"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Retrieve basic profile information for a Douyin account using web credentials. Supply the user ttwid cookie in the body parameter.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/query-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
| Name | Type | Required | Description |
|---|---|---|---|
body | string | No | User ttwid cookie. |
body, which can be obtained by calling /api/v1/douyin/web/generate_ttwid.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/query-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
bodystringUser ttwid cookie. Obtain it by calling `/api/v1/douyin/web/generate_ttwid`.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"log_pb": {
"impr_id": "20260820174347586C0772EF05BA7CF852"
},
"status_code": 18,
"status_msg": "系统繁忙,请稍后再试"
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.03 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/web/query-user に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: body (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。
いいえ。Douyin Web User Information は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。