Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Douyin High-Quality Video Play URLs

Docs da API
https://api.sandbase.ai/v1/api/douyin/web/multi-video-high-quality-play-url

Returns direct high-quality playback URLs for multiple Douyin videos using comma-separated video IDs and an optional region code.

Preço
$0.25USD / chamada
Método
POST
Resposta
JSON
Parâmetros
0 obrigatórios · 2 opcionais

Playground

Entrada
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.
SaídaExemplo
Respostaoutputs · 1.9 KB · 35 linhas
[
  {
    "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/6c76da41a85374fe11d5e87c1e553f38/6a86da7f/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/0a70d5c1f59bf04443be29f2378b38ab/6a86dca8/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-rLWa5eFoLeUCd-Ip-qJ6uwUBMEq&mime_type=video_mp4&qs=0&rc=aWhpOjxmPDtoaWZnN2Y6ZkBpanU0Z3Y5cmVqdzMzNGkzM0AuMmIxMC4yXi4xXzZgYmJfYSNmYi9oMmRzZmJgLS1kLWFzcw%3D%3D&btag=c0010e000b0001&cquery=10sH_100y&dy_q=1787219044&feature_id=aa7df520beeae8e397df15f38df0454c&l=202608201744047CE5177670AFE681F0CA",
          "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/c4acb0e05a263e7c4e768b83865ca853/6a86da84/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~JEsGJ9dug3cgMrWRQ9H6KM&mime_type=video_mp4&qs=0&rc=OGc6OTo6Zzg7NTY6ZzY6NkBpM3RoaDo6ZnBuZTMzNGkzM0AuMTIvYC9gXmAxLzY2YDZgYSNoc2RxcjRnY2dgLS1kLS9zcw%3D%3D&btag=c0010e00090000&cquery=100y_10sH&dy_q=1787219046&l=202608201744065E5FCD45855787EE2A06",
          "success": true,
          "video_id": "7126745726494821640"
        }
      ]
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

Douyin High-Quality Video Play URLs API

Returns direct playback URLs for several Douyin videos in one call. You pass a comma-separated list of video IDs in aweme_ids, and you can add a region code to get regional CDN links.

Use cases

  • Download the source files of a batch of Douyin videos for offline archiving.
  • Check the file size of each video with file_size_in_mb before you start a bulk download.
  • Feed direct video links into an editing or transcoding pipeline.
  • Find which video IDs in a batch failed by reading success and failed_count.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/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/quicktime",
      "file_size": "82274121",
      "file_size_in_mb": 78.46,
      "original_video_url": "https://v26-colds.douyinvod.com/b47516d962cf6197d827b82ce6f0b6da/6ae99c28/video/…",
      "success": true,
      "video_id": "7512756548356492544"
    }
  ]
}

Response fields

FieldMeaning
videos[].video_idThe Douyin video ID this entry belongs to.
videos[].original_video_urlDirect URL of the video file. The link contains signed path parts, so use it soon after you receive it.
videos[].successWhether the URL lookup worked for this video ID.
videos[].content_typeMIME type of the video file, for example video/mp4 or video/quicktime.
videos[].file_sizeFile size as a string. It matches file_size_in_mb once converted to megabytes.
videos[].file_size_in_mbFile size in megabytes, rounded to two decimals.
success_count / failed_countNumber of videos that returned a URL and number that did not.
totalTotal count reported for the request.

Notes

  • Send up to 50 IDs in aweme_ids, separated by commas, for example 123,456,789.
  • Set region to CN to get China-region CDN URLs. Other examples are US and HK.
  • In the sample response total is 3 while videos holds 2 entries, so compare total with success_count and failed_count when you check results.
  • To get video IDs from video links, call Douyin Batch Video ID Extraction.

Pricing

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

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Douyin$0.25 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.03 por chamadaJSON

Guias:Best Douyin API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API Douyin High-Quality Video Play URLs?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/douyin/web/multi-video-high-quality-play-url com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Douyin High-Quality Video Play URLs?

$0.25 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Douyin High-Quality Video Play URLs aceita?

Nenhum parâmetro é obrigatório. Opcionais: aweme_ids (string) e region (any). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Douyin High-Quality Video Play URLs retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Douyin ou de uma chave de API?

Não. Douyin High-Quality Video Play URLs funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Douyin separadamente.