Pirate Tok
Docs/TikTok protocol/LIVE discovery/Room ID Structure And Cacheability
verifiedhigh

Room ID Structure And Cacheability

Claim

TikTok room IDs are structured and partially time-derived, but brute-force random probing is still not viable because of the 16-bit random component. The practical win is not brute force but cache reuse: known room IDs often stay valid across a streamer’s short offline gaps.

Status

  • certainty: verified
  • confidence: high

Structural Summary

  • upper 32 bits: timestamp in seconds
  • next 16 bits: uniform random
  • next 2 bits: cluster selector
  • next 6 bits: fixed 001011
  • last 8 bits: server instance

Practical Summary

  • same room ID reused for many short restart gaps
  • room history cache plus check_alive is high-yield
  • random room-id probing remains low-density and poor ROI