webcast_idstringobbligatorio
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"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
webcast_idstringobbligatorioWebcast id
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"room_id": "Error webcast_id"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin Webcast ID to Room IDQuesta API Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.03 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: webcast_id (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Douyin Webcast ID to Room ID funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.