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"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel 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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
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.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"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"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin | $0.005 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.005 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Nessun parametro richiesto. Facoltativi: aweme_id (string), region (string) e share_url (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Douyin High Quality Video Play URL (App V3) funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.