Pirate Tok
GET/@{username}

Profile Page HTML

Purpose

Fetch https://www.tiktok.com/@{username} as HTML and extract canonical profile data from TikTok's rehydration payloads.

Endpoint

  • host: www.tiktok.com
  • method: GET
  • path pattern: /@{username}

Headers

  • User-Agent
  • Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8
  • Accept-Language
  • Sec-Ch-Ua
  • Sec-Ch-Ua-Mobile: ?0
  • Sec-Ch-Ua-Platform
  • Sec-Fetch-Dest: document
  • Sec-Fetch-Mode: navigate
  • Sec-Fetch-Site: none
  • Sec-Fetch-User: ?1
  • Upgrade-Insecure-Requests: 1
  • Referer: https://www.tiktok.com/

Observed authentication and signing additions:

  • Cookie
  • query params msToken, X-Bogus, X-Gnarly

Extraction Sources

JSON blocks searched:

  • window.__sigi_data__
  • __UNIVERSAL_DATA_FOR_REHYDRATION__
  • SIGI_STATE

Extraction paths attempted:

  1. user-module extraction
  2. universal-data extraction
  3. universal-scope extraction

Failure And WAF Semantics

  • a network failure does not establish whether the profile exists
  • HTTP 403 or 429 is treated as blocked
  • configured WAF markers plus suspiciously small body can also mark the page as blocked