Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Douyin Webcast ID to Room ID

Docs 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.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 0 facultatifs

Bac à sable

Entrée
Webcast id
SortieExemple
Réponseoutputs · 67 B · 7 lignes
[
  {
    "data": {
      "room_id": "Error webcast_id"
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.03 par appelJSON

Guides :Best Douyin API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Douyin Webcast ID to Room ID ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Douyin Webcast ID to Room ID ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Douyin Webcast ID to Room ID accepte-t-elle ?

Obligatoire : webcast_id (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Douyin Webcast ID to Room ID ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Douyin ?

Non. Douyin Webcast ID to Room ID fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Douyin séparément.