danmaku_typestringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
danmaku_typestringwajibMessage type
live_room_urlstringwajibLive room link
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
TikTok Broadcast DanmakuAPI ini TikTok | $0.0015 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.05 per panggilan | JSON |
Panduan:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Pertanyaan
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.
$0.0015 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: danmaku_type (string) dan live_room_url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
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.