danmaku_typestringrequerido
Message type
https://api.sandbase.ai/v1/api/tiktok/web/live-roomReturns danmaku and chat messages from a TikTok livestream room based on the provided room URL and message type.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
This endpoint is meant to return danmaku and chat messages from a TikTok livestream room. It takes a room URL in live_room_url and a message type in danmaku_type. The real response currently returns only a notice that the online service is no longer available.
message_EN text to see how to get the source code for local deployment.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/live-room" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"danmaku_type": "WebcastChatMessage", "live_room_url": "https://www.tiktok.com/@mpl.id.official/live"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
danmaku_type | string | Yes | Message type |
live_room_url | string | Yes | Live room link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"message_EN": "This interface is no longer available online, you need to purchase the source co…",
"message_ZH": "该接口已不再提供线上服务,需要自行购买源代码后在本地部署使用,购买源代码请在Discord服务器联系管理员,Discord邀请链接:https://discor…",
"ws_url": "No longer available"
}
| Field | Meaning |
|---|---|
message_EN | English notice that the interface is no longer available online. It says you must buy the source code and deploy it locally. |
message_ZH | Chinese version of the same notice. It also points to a Discord server where you can contact the administrator to buy the source code. |
ws_url | Holds the text No longer available instead of a WebSocket address. |
danmaku_type (for example WebcastChatMessage) and live_room_url (for example https://www.tiktok.com/@mpl.id.official/live).$0.0015 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/tiktok/web/live-room" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"danmaku_type": "WebcastChatMessage",
"live_room_url": "https://www.tiktok.com/@mpl.id.official/live"
}'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.
danmaku_typestringrequeridoMessage type
live_room_urlstringrequeridoLive room link
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
TikTok Broadcast DanmakuEsta API TikTok | $0.0015 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.05 por llamada | JSON |
Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/web/live-room 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.0015 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: danmaku_type (string) y live_room_url (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. TikTok Broadcast Danmaku 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 TikTok por separado.