webcast_idstringrequerido
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"
}
}
]Seleccione un ejemplo para cargar sus entradas y el resultado en el 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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
webcast_idstringrequeridoWebcast id
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"data": {
"room_id": "Error webcast_id"
}
}
]Explorar más
| API | Precio | Respuesta |
|---|---|---|
Douyin Webcast ID to Room IDEsta API Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.03 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/web/webcast-id-2-room-id con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: webcast_id (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Douyin Webcast ID to Room ID funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.