Douyin Video ID Extractor
https://api.sandbase.ai/v1/api/douyin/web/aweme-idExtracts the internal video ID from a given Douyin video web URL. Useful for parsing links before calling downstream video detail endpoints.
- 料金
- $0.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 1 件 · 任意 0 件
プレイグラウンド
[
{
"data": "7675551740036612985"
}
]例
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
API README
Douyin Video ID Extractor API
Extract the aweme_id (Douyin video ID) from a Douyin video link. Pass a https://www.douyin.com/video/<aweme_id> link.
Use cases
- Normalize shared links before calling video detail, comments or download APIs, which take
aweme_id. - Deduplicate videos collected as links from different sources.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7512756548356492544"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"7512756548356492544"
Response fields
| Field | Meaning |
|---|---|
(body) | The aweme_id as a string, for example "7512756548356492544". |
Notes
- For many links in one call use Douyin All Aweme IDs.
- Keep the ID as a string; it exceeds JavaScript's safe integer range.
Pricing
$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/aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://static.sandbase.ai/examples/8199cdcf-9adb-4073-a093-e4e83b70e1d0/input/0598f8d8-d74b-4fae-997a-faec7227135f.bin"
}'2. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": "7675551740036612985"
}
]さらに探索
関連 APIs
| 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 |
質問
FAQ
Douyin Video ID Extractor API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/web/aweme-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Douyin Video ID Extractor API の料金はいくらですか?
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
Douyin Video ID Extractor API はどのパラメータを受け付けますか?
必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
Douyin Video ID Extractor API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
Douyin の開発者アカウントまたは API key は必要ですか?
いいえ。Douyin Video ID Extractor は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。
