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"
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в playground.
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 |
Руководства:Best Douyin API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.005 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Параметры не требуются. Необязательные: aweme_id (string), region (string) и share_url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Douyin High Quality Video Play URL (App V3) работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.