fetchRoomInfoFromHtmlRoute
constfetchRoomInfoFromHtmlRoute:HttpRoute<FetchRoomInfoFromHtmlRouteParams,FetchRoomInfoFromHtmlRouteResponse>
Defined in: src/lib/web/routes/base/fetch-room-info-html.ts:30
Fetches room information by scraping the HTML content of the TikTok user’s live page. This route is used as a fallback method to retrieve room information when API endpoints are unavailable or blocked. It extracts the SIGI_STATE JSON data embedded in the HTML, which contains various details about the live room and user information.
webClient
The HTTP client instance to use for making the request to the TikTok website.
uniqueId
The unique identifier (username) of the TikTok user whose room information is being fetched.