Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

TikTok Broadcast Danmaku

Dokumentasi API
https://api.sandbase.ai/v1/api/tiktok/web/live-room

Returns danmaku and chat messages from a TikTok livestream room based on the provided room URL and message type.

Harga
$0.0015USD / panggilan
Metode
POST
Respons
JSON
Parameter
2 wajib · 0 opsional

Playground

Input
Message type
Live room link
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

TikTok Broadcast Danmaku API

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.

Use cases

  • Check the current availability of this endpoint before you build a live chat pipeline on it.
  • Read the message_EN text to see how to get the source code for local deployment.
  • Switch to a related SandBase live room API when you need room messages or room status.

Request

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.

Parameters

NameTypeRequiredDescription
danmaku_typestringYesMessage type
live_room_urlstringYesLive room link

Example response

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"
}

Response fields

FieldMeaning
message_ENEnglish notice that the interface is no longer available online. It says you must buy the source code and deploy it locally.
message_ZHChinese version of the same notice. It also points to a Discord server where you can contact the administrator to buy the source code.
ws_urlHolds the text No longer available instead of a WebSocket address.

Notes

  • The request needs danmaku_type (for example WebcastChatMessage) and live_room_url (for example https://www.tiktok.com/@mpl.id.official/live).
  • The sample call returned no chat messages, only the notice fields shown above.
  • To read room messages through SandBase, try TikTok Room Danmaku Messages.
  • To check whether a room is live first, call TikTok Stream Status Check.

Pricing

$0.0015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
TikTok$0.0015 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.05 per panggilanJSON

Panduan:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API TikTok Broadcast Danmaku?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok/web/live-room dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API TikTok Broadcast Danmaku?

$0.0015 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API TikTok Broadcast Danmaku?

Wajib: danmaku_type (string) dan live_room_url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API TikTok Broadcast Danmaku?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API TikTok?

Tidak. TikTok Broadcast Danmaku berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok secara terpisah.