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

Douyin Webcast ID to Room ID

Docs da API
https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id

Converts a Douyin webcast ID into its corresponding room ID. Submit a webcast ID to retrieve the matching livestream room identifier for Douyin web workflows.

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

Playground

Entrada
Webcast id
SaídaExemplo
Respostaoutputs · 67 B · 7 linhas
[
  {
    "data": {
      "room_id": "Error webcast_id"
    }
  }
]

Exemplos

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

README da API

Douyin Webcast ID to Room ID API

This API converts a Douyin webcast ID into the livestream room ID that matches it. It needs one input, webcast_id, and returns a single room_id value.

Use cases

  • Convert a webcast ID taken from a Douyin live link into a room ID for room-based lookups.
  • Store room IDs next to webcast IDs so you can match the same livestream across your own records.
  • Prepare the room ID needed to request live stream data for a Douyin broadcast.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"webcast_id": "775841227732"}'

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

Parameters

NameTypeRequiredDescription
webcast_idstringYesWebcast id

Example response

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

{
  "room_id": "7624919954380180276"
}

Response fields

FieldMeaning
room_idThe livestream room ID that matches the submitted webcast_id. This is the only field in the response.
room_idThe value is a string of digits, such as 7624919954380180276. Keep it as a string so tools do not round the long number.
room_idUse this value as the room identifier in other Douyin live APIs that ask for a room ID.

Notes

Pricing

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

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Douyin$0.001 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 Webcast ID to Room ID?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id 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 Webcast ID to Room ID?

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

Quais parâmetros a API Douyin Webcast ID to Room ID aceita?

Obrigatórios: webcast_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Douyin Webcast ID to Room ID 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 Webcast ID to Room ID 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.