GET /webcast/live_analytics/user_interactions
Get the real-time online audience roster for a live room, ranked by gift score (diamonds sent during this session). Returns each viewer’s rank, score, and full profile. Requires authenticated TikTok session cookies.
How it works: Uses the “sign-and-return” pattern. The API returns a signed_url that you fetch with your session cookies to get TikTok’s audience data. The anchor_id (host’s user ID) is auto-resolved from the room_id.
Response data: Each entry includes rank (1-based position), score (diamonds sent this session), and user profile with nickname, display_id, id_str, avatar_thumb, and follow_info (follower/following counts).
Use cases: Identifying top supporters in real-time, building live leaderboard overlays, tracking viewer engagement and spending patterns, or providing viewer analytics for agency clients.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Room ID of the stream |
user_id | string | No | Filter to specific user ID |
count | number | No | Number of results (default: 50) |