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 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $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 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.