Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

TikTok Broadcast Danmaku

Документация 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.

Цена
$0.0015USD / вызов
Метод
POST
Ответ
JSON
Параметры
2 обязательных · 0 необязательных

Песочница

Ввод
Message type
Live room link
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

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.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
TikTok$0.0015 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.05 за запросJSON

Руководства:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API TikTok Broadcast Danmaku?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/web/live-room, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API TikTok Broadcast Danmaku?

$0.0015 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API TikTok Broadcast Danmaku?

Обязательные: danmaku_type (string) и live_room_url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API TikTok Broadcast Danmaku?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика TikTok или API key?

Нет. TikTok Broadcast Danmaku работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.