danmaku_typestringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento 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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
danmaku_typestringobrigatórioMessage type
live_room_urlstringobrigatórioLive room link
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
TikTok Broadcast DanmakuEsta API TikTok | $0.0015 por chamada | JSON |
TikTok | $0.001 por chamada | JSON |
TikTok | $0.001 por chamada | JSON |
TikTok | $0.001 por chamada | JSON |
TikTok | $0.001 por chamada | JSON |
TikTok | $0.05 por chamada | JSON |
Guias:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/web/live-room com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.0015 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: danmaku_type (string) e live_room_url (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. TikTok Broadcast Danmaku funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.