Live Page HTML
Purpose
Fetch https://www.tiktok.com/@{username}/live as HTML and extract room id, owner id, liveness, and profile hints without relying on JSON APIs.
Endpoint
- host:
www.tiktok.com - method:
GET - path pattern:
/@{username}/live
Headers
User-AgentAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8Accept-LanguageSec-Ch-UaSec-Ch-Ua-Mobile: ?0Sec-Ch-Ua-PlatformSec-Fetch-Dest: documentSec-Fetch-Mode: navigateSec-Fetch-Site: noneSec-Fetch-User: ?1Upgrade-Insecure-Requests: 1Referer: https://www.tiktok.com/- optional
Cookiewhen the route is configured to use auth
Extraction Rules
Room id extraction order:
- inline
"room_id":"..." data-room-id="..."- parsed JSON from:
window.__sigi_data____UNIVERSAL_DATA_FOR_REHYDRATION__SIGI_STATE
Owner id extraction:
user.id- fallback
user.idStr
Liveness rule:
liveStatus2or4=> live- any other status => not live
- missing status =>
no_sigi_status
Embedded liveRoomUserInfo Shape
The HTML can also contain an embedded liveRoom.liveRoomUserInfo object from page JSON. Observed field families:
liveRoom.liveRoomUserInfo.user.{avatarThumb,avatarMedium,avatarLarger,id,nickname,secUid,secret,uniqueId,verified,roomId,signature,status,followStatus}liveRoom.liveRoomUserInfo.stats.{followingCount,followerCount}liveRoom.liveRoomUserInfo.liveRoom.{coverUrl,squareCoverImg,title,startTime,status,paidEvent.event_id,paidEvent.paid_type,liveSubOnly,liveRoomMode,hashTagId,gameTagId,liveRoomStats.userCount,streamData.pull_data.options.default_quality,streamData.pull_data.options.qualities[],streamData.pull_data.stream_data,streamId,multiStreamScene,multiStreamSource,hevcStreamData.pull_data.stream_data}
This embedded page shape should not be conflated with API Live User Room. It is a separate HTML-rehydration contract.
WAF / Failure Semantics
- a network failure does not establish whether the room is live
- HTTP
403or429is treated as blocked - configured body markers can also mark a page as WAF-blocked
- small suspicious body plus WAF markers is treated as blocked