Pirate Tok
GET/api/user/detail/

API User Detail

Purpose

Fetch profile detail as structured JSON instead of scraping HTML/SIGI state.

Endpoint

  • host: www.tiktok.com
  • method: GET
  • path: /api/user/detail/

Query Inputs Observed In Research

  • uniqueId={username}
  • secUid= may be empty
  • working browser-side requests also carried:
    • device_id
    • odinId
    • WebIdLastTime
    • msToken
    • X-Bogus
    • X-Gnarly

Parameters In Successful Browser Requests

Required in a documented successful browser request:

  • uniqueId
  • device_id
  • aid=1988
  • app_name=tiktok_web
  • device_platform=web_pc

Also present in working page-side requests:

  • odinId
  • WebIdLastTime
  • from_page=user
  • needAudienceControl=true
  • appType=m
  • browser_language
  • browser_name
  • browser_online
  • browser_platform
  • browser_version
  • screen_height
  • screen_width
  • tz_name
  • region
  • language
  • cookie_enabled
  • data_collection_enabled
  • focus_state
  • is_fullscreen
  • is_page_visible
  • history_len
  • user_is_login
  • abTestVersion=[object Object]
  • user=[object Object]
  • msToken
  • X-Bogus
  • X-Gnarly

Important Behavioral Notes

  • same-origin page fetch() is the strongest working method in the current evidence
  • TikTok’s fetch interceptor injects X-Bogus and X-Gnarly
  • setting device_id from localStorage["ttwid"] changed empty-body failures into successful profile JSON in a documented browser test
  • response can rotate msToken through headers and Set-Cookie
  • captcha/verification may surface through bdturing-verify
  • external contexts can return skeleton or empty responses; the route is transport-sensitive

Success Signals

  • HTTP 200
  • statusCode=0
  • status_code=0
  • tt-ticket-guard-result: 0
  • page request after captcha solve observed content-length: 1182
  • later manual browser-context success with injected device_id observed content-length: 2389
  • second confirmed success observed body length 2420

Observed Response Fields

  • userInfo.user.id
  • userInfo.user.uniqueId
  • userInfo.user.secUid
  • userInfo.user.nickname
  • userInfo.user.avatarThumb
  • userInfo.user.signature
  • userInfo.user.verified
  • userInfo.user.commerceUserInfo.commerceUser
  • userInfo.user.secret
  • userInfo.stats.followerCount
  • userInfo.stats.followingCount
  • userInfo.stats.heartCount
  • userInfo.stats.videoCount

Additional observed fields:

  • friendCount
  • avatarLarger
  • avatarMedium
  • privateAccount
  • nickNameModifyTime
  • statsV2