Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Douyin Multi-Video High Quality Play URLs

API 文档
https://api.sandbase.ai/v1/api/douyin/app-v3/multi-video-high-quality-play-url

Returns highest-quality direct video playback URLs for multiple Douyin videos based on comma-separated video IDs, with optional CDN region targeting.

价格
$0.25美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 2 个可选

Playground

输入
Video id list, separated by commas, for example: "123,456,789", up to 50.
Optional ISO country code (for example, CN, US, or HK). Pass CN for users in mainland China to get China-region CDN URLs for faster downloads.
输出示例
响应outputs · 1.9 KB · 35 行
[
  {
    "data": {
      "failed_count": 0,
      "success_count": 3,
      "total": 3,
      "videos": [
        {
          "content_type": "video/mp4",
          "file_size": "82274121",
          "file_size_in_mb": 78.46,
          "original_video_url": "https://v9-colds.douyinvod.com/8b606e1461ca9f082d015f73025873e3/6a86dafb/video/tos/cn/tos-cn-v-0015c800/ooEeAYuCeuIAzDrAghgYXL44gAeRABerCIVbU2/",
          "success": true,
          "video_id": "7512756548356492544"
        },
        {
          "content_type": "video/mp4",
          "file_size": "15718454",
          "file_size_in_mb": 14.99,
          "original_video_url": "https://v5-hl-zenl-ov.zjcdn.com/8b8a998c8cc14bffd5f35b27c268939a/6a86dd24/video/tos/cn/tos-cn-ve-15/oI0EdeRAyCBGnjydA7e21feSDuCL6FIdAgURdN/?a=1128&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=217&bt=217&cs=0&ds=3&ft=LoM-81H7sQOCCp5Sup-Q6_Mme-rLWa5eFPjeUCd-IT6R5MuwUBMEq&mime_type=video_mp4&qs=0&rc=aWhpOjxmPDtoaWZnN2Y6ZkBpanU0Z3Y5cmVqdzMzNGkzM0AuMmIxMC4yXi4xXzZgYmJfYSNmYi9oMmRzZmJgLS1kLWFzcw%3D%3D&btag=80010e000b0001&cquery=100y_10sH&dy_q=1787219168&feature_id=aa7df520beeae8e397df15f38df0454c&l=202608201746081F3DB534987A1CDE02B7",
          "success": true,
          "video_id": "7448118827402972455"
        },
        {
          "content_type": "video/mp4",
          "file_size": "3337266",
          "file_size_in_mb": 3.18,
          "original_video_url": "https://v11-colds.douyinvod.com/0d3e23ccc50a2c788762db7901645039/6a86db00/video/tos/cn/tos-cn-ve-15c001-alinc2/d49b945369c64852a44f8f3e5bf4b433/?a=1128&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=1773&bt=1773&cs=0&ds=3&ft=inBG-fZfjCddc~ORcgjWe68JgbGT4~JEINJ9dug3zWU~6RQ9H6KM&mime_type=video_mp4&qs=0&rc=OGc6OTo6Zzg7NTY6ZzY6NkBpM3RoaDo6ZnBuZTMzNGkzM0AuMTIvYC9gXmAxLzY2YDZgYSNoc2RxcjRnY2dgLS1kLS9zcw%3D%3D&btag=80010e00090000&cquery=10sH_100y&dy_q=1787219170&l=20260820174610894585977D2CA89EBC26",
          "success": true,
          "video_id": "7126745726494821640"
        }
      ]
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Douyin Multi-Video High Quality Play URLs API

Returns direct playback URLs for the highest-quality version of several Douyin videos in one call. You pass a comma-separated list of video IDs in aweme_ids, up to 50, and can set region to pick CDN links for a country.

Use cases

  • Download a batch of Douyin videos in original quality for offline storage.
  • Feed video files into an editing or transcoding pipeline after collecting IDs from a list endpoint.
  • Check file sizes before download to plan storage or bandwidth for a large batch.
  • Build a dataset of Douyin video files from a set of known video IDs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/multi-video-high-quality-play-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
aweme_idsstringNoVideo id list, separated by commas, for example: "123,456,789", up to 50.
regionstringNoOptional ISO country code (for example, CN, US, or HK). Pass CN for users in mainland China to get China-region CDN URLs for faster downloads.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "failed_count": 0,
  "success_count": 2,
  "total": 3,
  "videos": [
    {
      "content_type": "video/mp4",
      "file_size": "82274121",
      "file_size_in_mb": 78.46,
      "original_video_url": "https://v9-colds.douyinvod.com/31f864e664d608324689b1e440a60021/6ae99bf4/video/t…",
      "success": true,
      "video_id": "7512756548356492544"
    }
  ]
}

Response fields

FieldMeaning
totalNumber of video IDs in the request.
success_count / failed_countHow many videos returned a URL and how many failed.
videos[].video_idID of the Douyin video this entry belongs to. Use it to match results to your input list.
videos[].successtrue when a play URL was returned for this video.
videos[].original_video_urlDirect URL of the video file. The URL contains signed path segments, so request it again if a saved link stops working.
videos[].content_typeMedia type of the file, for example video/mp4.
videos[].file_sizeFile size as a string. The matching file_size_in_mb field shows the same size in megabytes.
videos[].file_size_in_mbFile size in megabytes as a number, rounded to two decimals.

Notes

  • aweme_ids is a single string such as 123,456,789. Do not send a JSON array.
  • Pass region as an ISO country code such as CN, US or HK. Use CN for users in mainland China to get China-region CDN URLs.
  • In the sample, total is 3 but success_count is 2 and failed_count is 0, so always compare videos[].video_id against your input list instead of relying on the counts.
  • To get video IDs first, use Douyin User Videos or Douyin Hashtag Video List. For one video at a time, use Douyin High Quality Video Play URL (App V3).

Pricing

$0.25 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Douyin$0.25 每次调用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

问题

常见问题

如何使用 Douyin Multi-Video High Quality Play URLs API?

向 https://api.sandbase.ai/v1/api/douyin/app-v3/multi-video-high-quality-play-url 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Douyin Multi-Video High Quality Play URLs API 的价格是多少?

每次调用 $0.25,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Douyin Multi-Video High Quality Play URLs API 接受哪些参数?

无需参数。 可选:aweme_ids (string) 和 region (any)。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin Multi-Video High Quality Play URLs API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Douyin 开发者账户或 API key 吗?

不需要。Douyin Multi-Video High Quality Play URLs 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。