TikTok protocol
Connection & authentication
WebSocket handshakes, session bootstrap and browser request context.
Endpoint contracts
Methods, request parameters, response fields and known limits.
WSSWebcast WSS ws_reuse_supplement
/webcast/im/ws_proxy/ws_reuse_supplement/Direct live websocket stream for web TikTok LIVE clients.WSSMobile Webcast WSSWebSocket interfaceMobile WebSocket hosts, headers and parameters observed in Android requests. The minimum sufficient parameter set is not established.POSTWebcast Room Enter/webcast/room/enter/Enter a live room on the web surface and return a large room-metadata JSON payload, including age-restriction and room configuration data.GETWebcast im/fetch/webcast/im/fetch/Historical web live bootstrap fetch that returns protobuf state needed by older signer-driven websocket flows.—Webcast Fetch/webcast/fetch/Historical TikTok LIVE protobuf bootstrap endpoint for initial messages, cursor state, cookie updates and WebSocket connection metadata.—Webcast im/push/webcast/im/push/Historical websocket endpoint returned by older TikTok LIVE bootstrap flows based on /webcast/fetch/.Documented behaviors
Authentication and transport observations, with their confidence levels.
high confidence
TTWID Alone Is Sufficient For Web WSS
A fresh ttwid cookie from anonymous GET https://www.tiktok.com/ is sufficient to complete the web live websocket handshake for a live room. Session cookies, msToken, and valid X-Bo
Read behavior high confidencews_direct Bypasses im/fetch
TikTok's web live client can establish the live WebSocket directly with ws_direct=1, without first depending on a successful im/fetch bootstrap. In the captured Firefox session, im
Read behavior medium-high confidenceTransport Context Matters For Guarded Web Endpoints
For guarded www.tiktok.com and some webcast fetch flows, copying X-Bogus, cookies, or other signed values out of a browser context is often not enough. The request still needs the
Read behavior