Pirate Tok
—/webcast/fetch/

Webcast Fetch

Purpose

Historical TikTok LIVE protobuf bootstrap endpoint for initial messages, cursor state, cookie updates and WebSocket connection metadata.

Endpoint

  • host: webcast.tiktok.com
  • method: not conclusively established for direct TikTok requests
  • path: /webcast/fetch/

Method Note

The direct TikTok HTTP method remains uncertain. Historical descriptions disagree between GET and POST; this page does not establish either as the current contract.

Observed Query Parameters

The strongest preserved parameter family includes:

  • aid=1988
  • app_language=en-US
  • app_name=tiktok_web
  • browser_language=en
  • browser_name=Mozilla
  • browser_online=true
  • browser_platform=Win32
  • browser_version={user_agent}
  • cookie_enabled=true
  • cursor
  • internal_ext
  • device_platform=web
  • focus_state=true
  • from_page=user
  • history_len=4
  • is_fullscreen=false
  • is_page_visible=true
  • did_rule=3
  • fetch_rule=1
  • last_rtt=0
  • live_id=12
  • resp_content_type=protobuf
  • screen_height=1152
  • screen_width=2048
  • tz_name=Europe/Berlin
  • referer=https://www.tiktok.com/
  • root_referer=https://www.tiktok.com
  • msToken
  • version_code=180800
  • webcast_sdk_version=1.3.0
  • update_version_code=1.3.0
  • room_id
  • device_id

Observed Headers

  • User-Agent
  • Accept: text/html,application/json,application/protobuf
  • Referer: https://www.tiktok.com/
  • Origin: https://www.tiktok.com
  • Accept-Language: en-US,en;q=0.9
  • Accept-Encoding: gzip, deflate

Protobuf Payload Fields

  • messages
  • cursor
  • fetchInterval
  • now
  • internalExt
  • fetchType
  • routeParamsMap
  • heartBeatDuration
  • needsAck
  • pushServer
  • isFirst
  • historyCommentCursor
  • historyNoMore

Inner message envelope:

  • method
  • payload
  • msgId
  • msgType
  • offset
  • isHistory

Response Headers

  • X-Set-TT-Cookie

X-Set-TT-Cookie can carry cookies for .tiktok.com that are then used for the WebSocket connection.

Example Decoded Values

  • cursor = 1705338859684_7324374619413042663_1_1_0_0
  • fetchInterval = 1000
  • internalExt = fetch_time:1705338859684|start_time:0|ack_ids:,,|flag:0|seq:1|next_cursor:1705338859684_7324374619413042663_1_1_0_0|wss_info:0-1705338859684-0-0
  • fetchType = 1
  • returned websocket URL pointed at /webcast/im/push/

Current Interpretation

This is a legacy bootstrap route. Modern direct web WSS can establish the connection without this request.