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
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

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

TikTok Broadcast Danmaku API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/live-room に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Broadcast Danmaku API の料金はいくらですか?

1回あたり $0.0015、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Broadcast Danmaku API はどのパラメータを受け付けますか?

必須: danmaku_type (string) と live_room_url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Broadcast Danmaku API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Broadcast Danmaku は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。