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
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tiktok/web/live-room पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

TikTok Broadcast Danmaku API की लागत कितनी है?

$0.0015 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

TikTok Broadcast Danmaku API कौन-से parameters स्वीकार करती है?

आवश्यक: danmaku_type (string) और live_room_url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

TikTok Broadcast Danmaku API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक TikTok developer account या API key चाहिए?

नहीं। TikTok Broadcast Danmaku SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।