Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin High Quality Video Play URL (Web)

เอกสาร API
https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url

Returns the highest quality playback URL for a Douyin video using a video ID or share URL, with an optional exit region specification.

ราคา
$0.005USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 3 ไม่บังคับ

Playground

อินพุต
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.
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 344 B · 11 บรรทัด
[
  {
    "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"
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Douyin High Quality Video Play URL (Web) API

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.

Use cases

  • Download a Douyin video file to store in your own media archive.
  • Feed the playback URL into a video player or transcoding job.
  • Check the file size of a Douyin video before you fetch it.
  • Convert a Douyin share link into a direct video link for review tools.

Request

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.

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

Response fields

FieldMeaning
original_video_urlDirect playback URL of the video file. The URL is long and contains query parameters, so keep it whole.
video_idID of the video the URL belongs to. It matches the aweme_id you sent.
file_sizeSize of the file as a string. Compare it with file_size_in_mb to see the scale.
file_size_in_mbFile size in megabytes as a number. It can show 0.0 for very small files.
content_typeContent type value returned with the result. In this sample it is text/html.

Notes

  • Send aweme_id when you have it. Use share_url only when the ID is not available.
  • The aweme_id is the numeric ID at the end of a video link, for example 7512756548356492544 in https://www.douyin.com/video/7512756548356492544.
  • To get an ID from a link, call Douyin Video ID Extractor.
  • To look up several videos in one call, use Douyin High-Quality Video Play URLs.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Douyin$0.005 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.03 ต่อการเรียกJSON

คู่มือ:Best Douyin API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin High Quality Video Play URL (Web) API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/web/video-high-quality-play-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin High Quality Video Play URL (Web) API ราคาเท่าไร?

$0.005 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin High Quality Video Play URL (Web) API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: aweme_id (string), region (string) และ share_url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin High Quality Video Play URL (Web) API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin High Quality Video Play URL (Web) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก