POST /webcast/sign_url
Sign any TikTok webcast URL with the required X-Bogus and X-Gnarly anti-bot parameters. This is the foundation of the API — TikTok rejects unsigned requests, so this endpoint adds the cryptographic signatures needed for valid requests.
How it works: Send any raw TikTok webcast URL in the request body. The API returns the signed URL with all required parameters appended, plus the User-Agent and cookies you must use when fetching.
Use cases: Building custom TikTok integrations, signing WebSocket URLs for direct connections, or signing any TikTok API endpoint that requires X-Bogus validation.
Response data: Returns signed_url (the URL with signatures), x_bogus, x_gnarly, user_agent, and cookies fields. Always use the returned User-Agent when making the final request to TikTok.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The TikTok URL to sign |