TikTokLive uses a series of global defaults to create the HTTP client. You can customize these settings to modify headers, URLs, cookies, and more.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/isaackogan/TikTokLive/llms.txt
Use this file to discover all available pages before exploring further.
What are WebDefaults?
WebDefaults is a global configuration object that controls how TikTokLive interacts with TikTok’s servers. These settings must be configured before creating a TikTokLiveClient instance.
Available Parameters
| Parameter | Type | Description |
|---|---|---|
tiktok_sign_api_key | str | Euler Stream API key to increase rate limits |
tiktok_app_url | str | TikTok app URL (default: https://www.tiktok.com) |
tiktok_sign_url | str | Signature server URL for generating tokens |
tiktok_webcast_url | str | TikTok livestream URL (default: https://webcast.tiktok.com) |
web_client_params | dict | URL parameters for TikTok HTTP requests |
web_client_headers | dict | Headers for TikTok HTTP requests |
web_client_cookies | dict | Custom cookies for the HTTP client |
ws_client_params | dict | URL parameters for WebSocket connection |
ws_client_params_append_str | str | Extra string data for WebSocket URI |
ws_client_headers | dict | Extra headers for WebSocket client |
ja3_impersonate | str | JA3 fingerprint to impersonate |
Basic Usage
Complete Example
Common Use Cases
Custom Headers
Add custom headers to all HTTP requests:Custom Cookies
Set custom cookies for the HTTP client:Custom Signature Server
Use your own signature server instead of Euler Stream:WebSocket Parameters
Modify WebSocket connection parameters:Advanced Configuration
URL Parameters
Add custom URL parameters to HTTP requests:JA3 Fingerprint
Set a custom JA3 fingerprint for browser impersonation:The JA3 fingerprint should match the current version on the Sign Server, or privileged methods will fail.
Best Practices
- Configure before client creation - Always set
WebDefaultsbefore instantiatingTikTokLiveClient - Don’t modify during runtime - Changes to
WebDefaultsaffect all future client instances - Keep credentials secure - Never hardcode API keys or session tokens in your source code
- Test changes - Verify that custom configurations don’t break connectivity