TikTok Live API - Real-Time Chat, Gift & Stream Data

Unofficial third-party API to connect to any live broadcast and receive every chat message, gift, like, follow, viewer count, and battle event as JSON over WebSocket. SDKs for Node.js and Python. Works from any language. Not affiliated with TikTok or ByteDance.

Terminal

Try it instantly

Zero config. Auto-finds a live stream.

npx tiktok-live-api COPY
python -m tiktok_live_api COPY

How Does the TikTok Live API Work?

This connects to a real TikTok live stream using the public demo key. No signup, no install. Watch real events stream in below.
Ready
Click "Connect to live stream" to see real TikTok events appear here.
Events: 0 Stream: - Viewers: - Key: demo_live_6c88759c81900938136aa9f4

How Do I Connect to a TikTok Live Stream Programmatically?

No signup, no config file. Auto-finds a live TikTok stream and prints events.
Node.js
npx tiktok-live-api copy

Or connect to a specific stream: npx tiktok-live-api @username

Python
pip install tiktok-live-api && python -m tiktok_live_api copy

Or connect to a specific stream: python -m tiktok_live_api @username

Want to integrate it? Install the SDK:
Node.js
npm install tiktok-live-api copy

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

Python
pip install tiktok-live-api copy

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

What Data Can I Get from TikTok Live Streams?

Every event from a TikTok live stream, delivered as clean JSON.
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

TikTok native captions

subscribe

Subscriber alerts

roomPin

Pinned messages

envelope

Treasure chest events

View full event reference with payload schemas →

Managed API vs Self-Hosted Open-Source Clients

TikTok updates its internal protocol regularly. With a managed API the protocol churn is absorbed server-side; with self-hosted clients (tiktok-live-connector, TikTokLive) the client and its signing backend handle the updates - choose the model that fits your team.
TikTok Live API (TikTool) TikTokLive (Python) tiktok-live-connector Euler Stream
Hosting model Fully managed Self-hosted client Self-hosted client Managed signing backend
Node.js SDK ✓ tiktok-live-api Python only ✓ tiktok-live-connector ✓ eulerstream
Python SDK ✓ tiktok-live-api ✓ Node only ✓ via TikTokLive
Any language ✓ Raw WebSocket Python only Node only ✓
Unreal Engine plugin ✓ No No No
Gifter Intel (LTV, archetypes) ✓ No No No
Historical Leaderboards ✓ Regional + global No No No
Battle History + Timeline ✓ Per-match No No No
League Rankings ✓ Diamond Rush No No No
Real-time Alerts ✓ Discord + Telegram No No No
Sniper Gap (live tracker) ✓ No No No
Agency CRM + Watchlists ✓ No No No
Public Profile Pages ✓ Indexed No No No
CAPTCHA handling ✓ Auto-solved Via signing backend Via signing backend ✓
Evaluation 7 days (Sandbox), no credit card ✓ MIT-licensed ✓ MIT-licensed 1,000 req/day

How Much Does the TikTok Live API Cost?

No contracts. Cancel anytime. Weekly or monthly billing.
Sandbox
7 days
evaluation, no credit card
3 streams
50 WS sessions / 24h
5,000 REST/day
Basic
$7
/week or $19/month
20 streams
10,000 REST/day
Bulk live check
Pro
$15
/week or $49/month
50 streams
75,000 REST/day
Auto CAPTCHA
Ultra
$45
/week or $149/month
250 streams
300,000 REST/day
Priority support
Agency Starter
$99
/month (monthly only)
100 streams, 12h per WS
75,000 REST/day, 120/min
1,000 profile lookups/day
Agency Global
$119
/week or $399/month
500 streams + Firehose
1,000,000 REST/day
Agency intel layer

Full plan comparison →

Frequently Asked Questions

Is there a public API for live stream data?

There is no first-party public API for live stream events. TikTool is an independent, third-party managed API that delivers live stream events through a clean WebSocket interface. All maintenance is handled server-side - challenge solving, room authentication, and signature rotation are automatic.

Can I try the TikTok Live API before paying?

Yes. Sandbox is a 7-day evaluation with no credit card required: 3 concurrent streams, 50 WebSocket sessions per 24 hours and 5,000 REST calls per day. You can also test instantly with the public demo key on this page - no signup needed. Paid plans start at $7/week or $19/month for production use.

What programming languages are supported?

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, and more.

How is TikTool different from other live stream libraries?

Open-source clients like tiktok-live-connector (Node.js) and TikTokLive (Python) are MIT-licensed and delegate signing to a managed backend (default: Euler Stream). TikTool is an independent managed API with its own signing infrastructure: all maintenance, CAPTCHA solving, and authentication are handled server-side. At the base paid tier, TikTool's Pro plan publishes 75,000 daily REST requests at $15/week - compare directly against each provider's currently published quotas to evaluate cost per request for your workload.

What data can I access from TikTok live streams?

90+ documented 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 TikTok native captions.

What is the API latency?

Real-time. Events are pushed over WebSocket as they happen on TikTok. Designed for real-time applications: live overlays, interactive games, chat bots, analytics dashboards.

Can I build a TikTok chat bot with this API?

Yes. TikTool's real-time WebSocket API delivers chat messages with full user metadata instantly. You can build chat bots, auto-moderators, command systems, and interactive viewer experiences. See the chat bot guide for a complete walkthrough.

Can I create TikTok live stream overlays for OBS?

Yes. The API provides real-time gift animations, chat messages, viewer counts, and battle scores - perfect for OBS, Streamlabs, or TikTok Live Studio overlays. See the overlay guide for implementation details.

Does the API support TikTok battle and challenge data?

Yes. Full battle support including battle start/end events, real-time scores for both sides, army size, and battle results. Perfect for building battle leaderboards, competitive analytics, and live commentary systems.

How many TikTok live streams can I monitor simultaneously?

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

Get your API key in 30 seconds

7-day evaluation. No credit card. Start receiving live events immediately.

Get an API key → Read the docs