Skip to main content

Live Room WebSocket Code

TikTok Live Stream API: Real-Time Danmaku & WebSocket Data

Production-ready Python source code for TikTok and Douyin live room WebSocket connections. Real-time danmaku data, chat messages, gift events, likes, shopping events, PK battles — parsed and delivered via WebSocket for live commerce analytics and audience monitoring.

15

WebSocket APIs

Python

Source code

Free

Tech support

WebSocket connected — tiktok.com live room

[CHAT] @user_928: Great stream! 🔥

[GIFT] @jenny_x sent Rose x5 ($2.50)

[JOIN] @new_viewer_42 entered the room

[LIKE] @fan_2891 liked x10

[FOLLOW] @curious_cat followed the host

[GIFT] @big_spender sent Lion x1 ($50.00)

[SHOP] @shopper_99 clicked product #3

[CHAT] @viewer_517: How much is this?

[STATS] viewers: 12,847 | likes: 89.2K

TikTok Danmaku Pricing

Per-API pricing. Technical support and connection code included free.

Basic Interaction

4 APIs

Chat, likes, and room status events

API NamePriceDescription
WebcastMemberMessage$140Viewer enters live room
WebcastLikeMessage$140Like message (core interaction)
WebcastChatMessage$224Chat danmaku (high-value, localized)
WebcastRoomMessage$56Room status notification

Live Room WebSocket Features: What's Included

Live Commerce Analytics

Track gift revenue, shopping clicks, and conversion rates across live sessions in real-time.

Audience Engagement Monitoring

Monitor chat velocity, like bursts, follow spikes, and viewer retention patterns.

Creator Performance Tools

Build dashboards for PK battles, co-host sessions, fan club growth, and ranking data.

Ready to integrate live room data?

Contact us for individual APIs or complete packages.

Contact to Purchase