webcast_idstringerforderlich
Webcast id
https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-idConverts a Douyin webcast ID into its corresponding room ID. Submit a webcast ID to retrieve the matching livestream room identifier for Douyin web workflows.
[
{
"data": {
"room_id": "Error webcast_id"
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
webcast_id | string | Yes | Webcast id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"room_id": "7624919954380180276"
}
| Field | Meaning |
|---|---|
room_id | The livestream room ID that matches the submitted webcast_id. This is the only field in the response. |
room_id | The value is a string of digits, such as 7624919954380180276. Keep it as a string so tools do not round the long number. |
room_id | Use this value as the room identifier in other Douyin live APIs that ask for a room ID. |
webcast_id as a string. The example value is 775841227732.room_id.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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": "example"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
webcast_idstringerforderlichWebcast id
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"room_id": "Error webcast_id"
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Douyin Webcast ID to Room IDDiese API Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.03 pro Aufruf | JSON |
Anleitungen:Best Douyin API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: webcast_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Douyin Webcast ID to Room ID läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Douyin API beantragen.