aweme_idstring
Video id, prefer to use aweme_id, if not available, use share_url.
https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-urlReturns the highest quality playback URL for a Douyin video using a video identifier or share link, with optional region filtering.
[
{
"data": {
"content_type": "video/mp4",
"file_size": "174261310",
"file_size_in_mb": 166.19,
"original_video_url": "https://v3-dy-o.zjcdn.com/73eb355b5c126b5760f2cdb580a45e50/6a860313/video/tos/cn/tos-cn-v-0015c001/ocAYBBtUGITlM7fIbOteCLZrKGlK3WI8ppwjeA/?cc=1f&req_cdn_type=",
"video_id": "7662510757757603122"
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns a direct playback URL for a Douyin video, plus basic file details. It needs an aweme_id or a share_url. You can also set an optional region to choose the request exit region.
aweme_id for offline review.CN, US or HK.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_id": "7512756548356492544", "share_url": "https://www.douyin.com/video/7512756548356492544", "region": "CN"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_id | string | No | Video id, prefer to use aweme_id, if not available, use share_url. |
region | string | No | Optional, ISO country code (e.g. "CN" / "US" / "HK") used as the request exit region. |
share_url | string | No | Optional, share link, if the video id is provided, this parameter can be omitted. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"content_type": "application/xml",
"file_size": "0",
"file_size_in_mb": 0.0,
"original_video_url": "https://v11-cold-src.douyinvod.com/9cc3869316e50941773fa3830c54be27/6ae99bfb/vid…",
"video_id": "7512756548356492544"
}
| Field | Meaning |
|---|---|
original_video_url | Direct address of the video file on Douyin's video host. Use this as the playback or download link. |
video_id | ID of the video the URL belongs to. In the sample it matches the aweme_id that was sent. |
content_type | Content type reported for the file. The sample shows application/xml, so check this value before treating the URL as a plain video file. |
file_size / file_size_in_mb | File size values. The sample returns "0" and 0.0, so these may not be filled in for every video. |
aweme_id when you have it. Use share_url only when the ID is not available.aweme_id is a long numeric string, for example 7512756548356492544.$0.005 per successful call. Failed calls 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/app-v3/video-high-quality-play-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "CN",
"aweme_id": "7662510757757603122",
"share_url": "https://static.sandbase.ai/examples/83222b01-babd-47a9-a612-3a92a4e7c4bb/input/19f248e9-c747-4994-8b9f-285f2826271f.bin"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
aweme_idstringVideo id, prefer to use aweme_id, if not available, use share_url.
regionstringOptional, ISO country code (e.g. "CN" / "US" / "HK") used as the request exit region.
share_urlstringOptional, share link, if the video id is provided, this parameter can be omitted.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"content_type": "video/mp4",
"file_size": "174261310",
"file_size_in_mb": 166.19,
"original_video_url": "https://v3-dy-o.zjcdn.com/73eb355b5c126b5760f2cdb580a45e50/6a860313/video/tos/cn/tos-cn-v-0015c001/ocAYBBtUGITlM7fIbOteCLZrKGlK3WI8ppwjeA/?cc=1f&req_cdn_type=",
"video_id": "7662510757757603122"
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.005 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.005、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: aweme_id (string), region (string) と share_url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin High Quality Video Play URL (App V3) は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。