Connect to Any TikTok Live Stream in Seconds

Unofficial third-party API that delivers real-time chat messages, virtual gifts, viewer counts, battle scores, and 18+ event types from any TikTok broadcast via WebSocket. SDKs for Node.js and Python. Not affiliated with TikTok or ByteDance.

TikTok Live API developer workspace with real-time data streams
500+Developers
<50msLatency
99.9%Uptime
MITOpen Source SDK

See Real TikTok Events Stream In

This connects to a real TikTok live broadcast using the public demo key. No signup, no install. Watch real events appear below.
Connecting...
systemFinding a live TikTok stream...
Events: 0 Stream: searching... Viewers: - Key: demo_tiktokapi_public_2026

Start Receiving Live Data in One Command

No config file, no signup. Finds a live TikTok stream automatically and prints events to your terminal.
Node.js
npx tiktok-live-apicopy

Works in Node.js 18+, Bun, and Deno. TypeScript types included. Zero dependencies beyond ws.

Python
pip install tiktok-live-apicopy

Python 3.8+. Async-first with websockets. Or use the raw WebSocket URL from any language.

Every Live Stream Event, Delivered as JSON

18+ event types covering every interaction on a TikTok live broadcast.
chat

Messages, emotes, user info

gift

Gifts, diamond values, streaks

like

Likes with running total

follow

New followers during stream

member

Viewer join events

share

Stream share events

roomUserSeq

Live viewer count

battle

Battle scores, teams

caption

AI speech-to-text

subscribe

Subscriber alerts

roomPin

Pinned messages

envelope

Treasure chest events

View full event reference with payload schemas

Why Use a Managed API Instead of Open-Source?

TikTok updates their internal protocol regularly. Libraries that connect directly break every time. A managed API handles it for you.
TikTok Live API (TikTool) TikTokLive (Python) tiktok-live-connector Euler Stream
Stability 99.9% uptime SLA Breaks on updates Unmaintained Managed
Node.js SDK ✓ tiktok-live-api Python only ✓ Outdated No SDK
Python SDK ✓ tiktok-live-api Node only No SDK
Any language ✓ Raw WebSocket Python only Node only
AI Captions ✓ Built-in No No No
CAPTCHA handling ✓ Auto-solved Manual None
Free tier ✓ No credit card Free but breaks Broken Paid only

Simple, Transparent Pricing

No contracts. Cancel anytime. All plans include full API access.
Sandbox
Free
forever
1 WebSocket
50 REST calls/day
No credit card
Basic
$7
/week
3 WebSockets
60 REST/min
8-hour sessions
Pro
$15
/week
50 WebSockets
Unlimited REST
Auto CAPTCHA
Ultra
$45
/week
500 WebSockets
Unlimited REST
Priority support

Full plan comparison

Common Questions

Does TikTok offer a public API for live streams?

No. TikTok does not provide any public API for live stream events. TikTool reverse-engineers the internal WebCast protocol and delivers events through a clean WebSocket interface. Protocol maintenance, CAPTCHA challenges, room authentication, and signature rotation are all handled server-side so your integration never breaks.

Is TikTok live stream data free to access?

Yes. The free Sandbox tier includes 1 WebSocket connection and 50 REST API calls per day, forever. No credit card required. You can also test instantly with the public demo key on this page. Paid plans start at $7/week for production use.

Which programming languages work with this API?

Official SDKs for Node.js (npm install tiktok-live-api) and Python (pip install tiktok-live-api). The raw WebSocket endpoint works with any language that supports WebSocket: Go, Rust, Java, C#, Ruby, PHP, Dart, Kotlin, Swift.

How does TikTool compare to other TikTok Live libraries?

Libraries like TikTokLive and tiktok-live-connector connect directly to TikTok's internal protobuf protocol and break every time TikTok pushes an update. TikTool is a managed API: protocol changes, CAPTCHAs, and authentication are all handled server-side. Compared to EulerStream, TikTool is 2.5 to 7x cheaper at every paid tier with signatures, CAPTCHA solving, and priority routing included at no extra cost.

What live stream events are available?

18+ real-time event types: chat messages, virtual gifts with diamond values, likes, follows, shares, viewer counts, battle scores, subscriber alerts, pinned messages, stream status changes, and AI-powered live captions with speaker identification and translation into 50+ languages.

How fast is the data delivery?

Under 50 milliseconds. Events arrive within 50ms of occurring on TikTok, making it suitable for real-time applications: live overlays, interactive games, chat bots, and analytics dashboards.

Can I build chat bots and stream overlays?

Yes. The real-time WebSocket API delivers chat messages with full user metadata instantly. Build chat bots, auto-moderators, command systems, OBS overlays, gift leaderboards, and interactive viewer experiences. See the chat bot guide for a walkthrough.

How many live streams can I monitor at once?

Depends on your plan: Sandbox (1 stream), Basic (3 streams), Pro (50 streams), Ultra (500 streams). Each WebSocket connection monitors one live stream in real-time.

Get Your API Key in 30 Seconds

Free tier. No credit card. Start receiving live events immediately.

Sign up free Read the docs