API Live User Room
Purpose
Resolve a TikTok username to live-room context and lightweight user metadata.
Endpoint
- host:
www.tiktok.com - method:
GET - path:
/api-live/user/room
Confirmed Query Parameters
aid=1988app_name=tiktok_webdevice_platform=web_pcapp_language=enbrowser_language=en-USuser_is_login=falseuniqueId={username}sourceType=54staleTime=600000
Observed variants:
region=ROis observed- successful requests without
regionare also documented
Headers
User-AgentCookieis optional for the basic live-state check
Success And Error Signals
- HTTP
200,statusCode=0: success statusCode=19881007: user not foundstatusCode=19881005: parameter error, notably whensourceType=54is absent or wrongHTTP 403or429: blocked or rate-limited request- rapid bursts on
www.tiktok.comcan produce rate-limit-style empty responses
The preserved 19881005 example returns:
data: nullmessage: "params_error"extra.id
Live-State Detection
The documented live-state check requires:
data.user.roomIdexists and is neither empty nor"0"- one of the status fields equals
2
Observed live-state fields:
- first
data.liveRoom.status - then
data.user.status
A room ID alone does not establish that a room is live; the status field must also indicate a live room.
Observed Response Fields
Top-level control fields:
/statusCode/messageon failures/extra/idon preserved parameter-error payloads
User block fields consumed or explicitly inspected:
/data/user/roomId/data/user/id/data/user/secUid/data/user/nickname/data/user/signature/data/user/verified/data/user/status/data/user/avatarThumb/data/user/avatarMedium/data/user/avatarLarger
Observed room-state fields:
/data/liveRoom/status
Field-boundary notes:
avatarThumb,avatarMedium, andavatarLargerare JSON values; a fixed scalar or object type is not established here- the current evidence set does not strongly place follower-count, following-count, heart-count, or video-count fields on this route; those richer counters are documented under Profile Page HTML and API User Detail
- the observed verification field is
verified, notisVerified
Notes On Parameter Strictness
Observed request variants include:
- complete parameter sets that return data
- short or incomplete manual calls that trigger
statusCode=19881005
This is documented here as a parameter-shape requirement rather than an auth requirement.