Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin High Quality Video Play URL (App V3)

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url

Returns the highest quality playback URL for a Douyin video using a video identifier or share link, with optional region filtering.

Giá
$0.005USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 3 tùy chọn

Phòng thử nghiệm

Đầu vào
Video id, prefer to use aweme_id, if not available, use share_url.
Optional, ISO country code (e.g. "CN" / "US" / "HK") used as the request exit region.
Optional, share link, if the video id is provided, this parameter can be omitted.
Đầu raVí dụ
Phản hồioutputs · 361 B · 11 dòng
[
  {
    "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"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin High Quality Video Play URL (App V3) API

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.

Use cases

  • Download or cache a Douyin video file from its aweme_id for offline review.
  • Turn a Douyin share link into a direct video file address.
  • Feed a video URL into a transcription or content analysis pipeline.
  • Request the video URL through a chosen exit region such as CN, US or HK.

Request

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.

Parameters

NameTypeRequiredDescription
aweme_idstringNoVideo id, prefer to use aweme_id, if not available, use share_url.
regionstringNoOptional, ISO country code (e.g. "CN" / "US" / "HK") used as the request exit region.
share_urlstringNoOptional, share link, if the video id is provided, this parameter can be omitted.

Example response

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"
}

Response fields

FieldMeaning
original_video_urlDirect address of the video file on Douyin's video host. Use this as the playback or download link.
video_idID of the video the URL belongs to. In the sample it matches the aweme_id that was sent.
content_typeContent 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_mbFile size values. The sample returns "0" and 0.0, so these may not be filled in for every video.

Notes

Pricing

$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.005 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin High Quality Video Play URL (App V3)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/app-v3/video-high-quality-play-url với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Douyin High Quality Video Play URL (App V3) có giá bao nhiêu?

$0.005 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Douyin High Quality Video Play URL (App V3) chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: aweme_id (string), region (string) và share_url (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin High Quality Video Play URL (App V3) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin High Quality Video Play URL (App V3) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.