Pirate Tok
Docs/TikTok protocol/Rooms & audience/Webcast Ranklist Online Audience
GET/webcast/ranklist/online_audience/

Webcast Ranklist Online Audience

Purpose

Fetch the webcast online-audience leaderboard or ranklist for a live room or anchor.

Endpoint

  • host: webcast.tiktok.com
  • method: GET
  • path: /webcast/ranklist/online_audience/

Confirmed Minimal Envelope (2026-07-20, live test)

Empirically verified against a live room from a clean curl:

  • minimal query: aid=1988&app_name=tiktok_web&channel=tiktok_web&room_id={room_id}&anchor_id={anchor_id}
  • both room_id and anchor_id are required — omitting anchor_id returns status_code=10011 params error
  • auth: sessionid + sid_tt cookies are required and sufficient — without them status_code=20003 "User doesn't login"
  • ttwid, msToken, X-Bogus, X-Gnarly are NOT required (tested: sessionid-only cookie header returns full data)
  • response confirmed: data.ranks[] with full LIVE user objects (id_str, display_id, nickname, sec_uid, avatar_thumb, follow_info, is_follower, is_subscribe, badges), plus data.total, data.anonymous, data.self_info, data.preview_count
  • total counts the whole room; ranks[] lists the named viewers

Confirmed Query Parameters In Capture

The Firefox dump abbreviates the full URL. The following names remain directly visible:

  • aid=1988
  • anchor_id={anchor_id}
  • app_language=en
  • app_name=tiktok_web
  • browser_language=en-US

The pending-request line shows more browser parameters after those names, but the exact full query envelope is not fully preserved in the saved text.

Additional documented query fields:

  • room_id
  • channel=tiktok_web
  • anchor_id

Successful requests have been documented in an authenticated browser context.

Observed Top-Level Response Shape

Documented top-level response fields:

  • /status_code
  • /extra/now
  • /data

Observed /data RankList Shape

  • /data/anchor_show_contribution
  • /data/anonymous
  • /data/currency
  • /data/ranks[]
  • /data/rule_url
  • /data/total

Observed ranks[] Entry Shape

  • /data/ranks[]/gap_description
  • /data/ranks[]/rank
  • /data/ranks[]/score
  • /data/ranks[]/user
  • /data/ranks[]/user_restriction_level

The embedded user object contains additional LIVE user fields; the list here is not an exhaustive nested schema.

Success Signals Seen In Capture

  • HTTP 200
  • content-type: application/json; charset=utf-8
  • content-length: 5937
  • exposed tracing headers:
    • x-tt-logid
    • x-tt-trace-id
    • x-tt-trace-host

Access And Method Notes

  • the current preserved web capture shows a browser GET
  • successful historical requests required login
  • both room_id and anchor_id are present in the confirmed minimal request

Known Limits

  • historical field definitions do not establish that every field is still returned
  • the exact current subset of nested user fields is not fully documented
  • modern native-mobile captures surfaced /webcast/ranklist/entrance/v3/, but not this exact route, so transport parity is still incomplete here