Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Broadcast Danmaku

Tài liệu 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.

Giá
$0.0015USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
2 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Message type
Live room link
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.0015 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.05 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Broadcast Danmaku?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/web/live-room với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Broadcast Danmaku có giá bao nhiêu?

$0.0015 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Broadcast Danmaku chấp nhận những tham số nào?

Bắt buộc: danmaku_type (string) và live_room_url (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Broadcast Danmaku trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Broadcast Danmaku chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.