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_idodinIdWebIdLastTimemsTokenX-BogusX-Gnarly
Parameters In Successful Browser Requests
Required in a documented successful browser request:
uniqueIddevice_idaid=1988app_name=tiktok_webdevice_platform=web_pc
Also present in working page-side requests:
odinIdWebIdLastTimefrom_page=userneedAudienceControl=trueappType=mbrowser_languagebrowser_namebrowser_onlinebrowser_platformbrowser_versionscreen_heightscreen_widthtz_nameregionlanguagecookie_enableddata_collection_enabledfocus_stateis_fullscreenis_page_visiblehistory_lenuser_is_loginabTestVersion=[object Object]user=[object Object]msTokenX-BogusX-Gnarly
Important Behavioral Notes
- same-origin page
fetch()is the strongest working method in the current evidence - TikTok’s fetch interceptor injects
X-BogusandX-Gnarly - setting
device_idfromlocalStorage["ttwid"]changed empty-body failures into successful profile JSON in a documented browser test - response can rotate
msTokenthrough headers andSet-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=0status_code=0tt-ticket-guard-result: 0- page request after captcha solve observed
content-length: 1182 - later manual browser-context success with injected
device_idobservedcontent-length: 2389 - second confirmed success observed body length
2420
Observed Response Fields
userInfo.user.iduserInfo.user.uniqueIduserInfo.user.secUiduserInfo.user.nicknameuserInfo.user.avatarThumbuserInfo.user.signatureuserInfo.user.verifieduserInfo.user.commerceUserInfo.commerceUseruserInfo.user.secretuserInfo.stats.followerCountuserInfo.stats.followingCountuserInfo.stats.heartCountuserInfo.stats.videoCount
Additional observed fields:
friendCountavatarLargeravatarMediumprivateAccountnickNameModifyTimestatsV2