Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Douyin Webcast ID to Room ID

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

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Webcast id
WyjściePrzykład
Odpowiedźoutputs · 67 B · 7 wierszy
[
  {
    "data": {
      "room_id": "Error webcast_id"
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

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

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.03 za wywołanieJSON

Przewodniki:Best Douyin API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Douyin Webcast ID to Room ID?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Douyin Webcast ID to Room ID?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Douyin Webcast ID to Room ID?

Wymagane: webcast_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Douyin Webcast ID to Room ID?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Douyin lub klucza API?

Nie. Douyin Webcast ID to Room ID działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.