bodyarray必須
User homepage link list
https://api.sandbase.ai/v1/api/douyin/web/all-sec-user-idExtracts Douyin sec_user_id values in bulk from a list of user homepage URLs. Accepts an array of profile links to return the corresponding platform identifiers.
[
{
"data": [
"MS4wLjABAAAA-KtdOVa4ZpUaXPbiGVeef1JQLYjWv0qdWHdIvV_0RNnQ5twCYnFrdgUZZDzvty0v"
]
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Retrieve Douyin user security IDs in bulk by passing an array of profile homepage links in the body parameter. This endpoint returns the platform identifiers for downstream profile lookups.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/all-sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body": "<body>"}'
| Name | Type | Required | Description |
|---|---|---|---|
body | array | Yes | User homepage link list |
body parameter.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/all-sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": [
"https://static.sandbase.ai/examples/f66ded91-c75d-40dd-8377-5675eceeeb3d/input/25f4436b-5642-4e06-93ec-dc108424d26e.bin"
]
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
bodyarray必須User homepage link list
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": [
"MS4wLjABAAAA-KtdOVa4ZpUaXPbiGVeef1JQLYjWv0qdWHdIvV_0RNnQ5twCYnFrdgUZZDzvty0v"
]
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.03 / 回 | JSON |
Douyin | $0.15 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/web/all-sec-user-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: body (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。
いいえ。Douyin sec_user_ids from URLs (Batch) は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。