bodyarray必須
Video link list
https://api.sandbase.ai/v1/api/douyin/web/all-aweme-idExtracts video IDs from a list of Douyin video URLs. Accepts an array of links and returns the corresponding item identifiers.
[
{
"data": [
"7512756548356492544"
]
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Extract aweme_id values (Douyin video IDs) from several Douyin video links in one call.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body": ["https://www.douyin.com/video/7512756548356492544"]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
body | array | Yes | Video link list |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
"7512756548356492544"
]
| Field | Meaning |
|---|---|
(body) | Array of aweme_id strings, in the order of the input links. |
body.$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": [
"https://static.sandbase.ai/examples/065a6f00-759d-4a47-b76e-ee86608434dd/input/37b54c15-fdda-4fbc-9918-f5aeae5c4218.bin"
]
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
bodyarray必須Video link list
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": [
"7512756548356492544"
]
}
]さらに探索
| 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-aweme-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: body (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Batch Video ID Extraction は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。