Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Douyin Webcast ID to Room ID

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
Webcast id
ÇıktıÖrnek
Yanıtoutputs · 67 B · 7 satır
[
  {
    "data": {
      "room_id": "Error webcast_id"
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.001 çağrı başınaJSON
Douyin$0.03 çağrı başınaJSON

Kılavuzlar:Best Douyin API in 2026: Pricing Compared

Sorular

SSS

Douyin Webcast ID to Room ID API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Douyin Webcast ID to Room ID API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Douyin Webcast ID to Room ID API'si hangi parametreleri kabul eder?

Gerekli: webcast_id (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Douyin Webcast ID to Room ID API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Douyin geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Douyin Webcast ID to Room ID, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Douyin API erişimi için ayrıca başvuru yapmanız gerekmez.