Skip to main content
TikTokLive requires Python 3.10 or higher. Follow the steps below to install the library and its dependencies.

Requirements

Before installing TikTokLive, ensure you have:
  • Python 3.10+ installed on your system
  • pip package manager (comes with Python)

Install via pip

Install TikTokLive from PyPI using pip:
pip install TikTokLive
This installs the core library with all required dependencies:
  • httpx - HTTP client for making requests
  • websockets-proxy - WebSocket connection support with proxy capabilities
  • pyee - Event emitter for handling livestream events
  • betterproto - Protocol buffer support for TikTok’s data format
  • Additional utilities for async operations and data parsing

Optional Dependencies

TikTokLive offers optional dependencies for advanced use cases.

Interactive Mode

For enhanced browser impersonation and CAPTCHA handling, install the interactive extras:
pip install TikTokLive[interactive]
This includes curl_cffi for improved HTTP fingerprinting.

Verify Installation

Confirm that TikTokLive is installed correctly:
import TikTokLive
print(TikTokLive.__version__)
If this runs without errors and prints a version number, you’re ready to start building!
TikTokLive is an unofficial reverse-engineered library. For production use, consider the Euler Stream WebSocket API.

Upgrading

To upgrade to the latest version:
pip install --upgrade TikTokLive

Next Steps

Quickstart

Build your first TikTok livestream client in minutes

Build docs developers (and LLMs) love