Pirate Tok
GET/webcast/im/fetch/

Webcast im/fetch

Purpose

Historical web live bootstrap fetch that returns protobuf state needed by older signer-driven websocket flows.

Endpoint

  • host: webcast.tiktok.com
  • method: GET
  • path: /webcast/im/fetch/

Observed Query Parameters

  • version_code=180800
  • device_platform=web
  • cookie_enabled=true
  • screen_width=1920
  • screen_height=1080
  • browser_language=en-US
  • browser_platform={navigator.platform}
  • browser_name=Mozilla
  • browser_version={navigator.appVersion}
  • browser_online=true
  • tz_name=Europe/Bucharest
  • ws_direct=0
  • aid=1988
  • app_name=tiktok_web
  • live_id=12
  • version_code=270000
  • app_language=en
  • client_enter={JSON string with room_id}
  • room_id={room_id}
  • identity=audience
  • history_comment_count=6
  • fetch_rule=1
  • last_rtt
  • cursor
  • internal_ext
  • sup_ws_ds_opt=1
  • resp_content_type=protobuf
  • did_rule=3
  • webcast_language=en
  • msToken
  • _ts
  • X-Bogus

Headers Seen In The Experiments

  • Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  • Referer: https://www.tiktok.com/
  • Origin: https://www.tiktok.com
  • Cookie
  • browser content-context fetch defaults such as Sec-Fetch-Site, Sec-Fetch-Mode, and Sec-Fetch-Dest

Payload Shape When The Endpoint Works

Observed protobuf fields:

  • messages
  • cursor
  • internal_ext
  • ws_params
  • ws_url
  • fetch_interval
  • heart_beat_duration
  • needs_ack
  • history_comment_cursor
  • history_no_more

A historical protobuf schema uses these field names:

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

Observed Failure Modes

  • Firefox content-context fetch: HTTP 403, empty body, application/json
  • other non-browser attempts: HTTP 200 with empty body or HTTP 403
  • the route is transport-sensitive and historically associated with signed requests

Current Interpretation

Direct web WSS with ws_direct=1 can bypass im/fetch entirely.