aweme_idstring
Video id, prefer to use aweme_id, if not available, use share_url.
https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-urlReturns the highest quality playback URL for a Douyin video using a video ID or share URL, with an optional exit region specification.
[
{
"data": {
"content_type": "video/mp4",
"file_size": "82274121",
"file_size_in_mb": 78.46,
"original_video_url": "https://v9-colds.douyinvod.com/0173418391f6dbc5722fc07ad18a0abe/6a86da88/video/tos/cn/tos-cn-v-0015c800/ooEeAYuCeuIAzDrAghgYXL44gAeRABerCIVbU2/",
"video_id": "7512756548356492544"
}
}
]Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
Returns a direct playback URL for the highest quality version of a Douyin video. It needs an aweme_id or a share_url, and you can set an exit region.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/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": "text/html",
"file_size": "564",
"file_size_in_mb": 0.0,
"original_video_url": "https://v96-hcc.douyinvod.com/07b591ad2101ff883bf64842bc3366c5/6ae99c31/video/to…",
"video_id": "7512756548356492544"
}
| Field | Meaning |
|---|---|
original_video_url | Direct playback URL of the video file. The URL is long and contains query parameters, so keep it whole. |
video_id | ID of the video the URL belongs to. It matches the aweme_id you sent. |
file_size | Size of the file as a string. Compare it with file_size_in_mb to see the scale. |
file_size_in_mb | File size in megabytes as a number. It can show 0.0 for very small files. |
content_type | Content type value returned with the result. In this sample it is text/html. |
aweme_id when you have it. Use share_url only when the ID is not available.aweme_id is the numeric ID at the end of a video link, for example 7512756548356492544 in https://www.douyin.com/video/7512756548356492544.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "CN",
"aweme_id": "7512756548356492544",
"share_url": "https://static.sandbase.ai/examples/2d775896-4018-4f17-b056-55b641a736b3/input/7e844029-329b-4b7a-a407-bd7e1f15f4ca.bin"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
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.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
[
{
"data": {
"content_type": "video/mp4",
"file_size": "82274121",
"file_size_in_mb": 78.46,
"original_video_url": "https://v9-colds.douyinvod.com/0173418391f6dbc5722fc07ad18a0abe/6a86da88/video/tos/cn/tos-cn-v-0015c800/ooEeAYuCeuIAzDrAghgYXL44gAeRABerCIVbU2/",
"video_id": "7512756548356492544"
}
}
]Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Douyin | $0.005 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.001 çağrı başına | JSON |
Douyin | $0.03 çağrı başına | JSON |
Kılavuzlar:Best Douyin API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.005, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli parametre yoktur. İsteğe bağlı: aweme_id (string), region (string) ve share_url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Douyin High Quality Video Play URL (Web), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Douyin API erişimi için ayrıca başvuru yapmanız gerekmez.