Unofficial TikTok Live Audience API — Top Viewers

GET/api/v1/live_audience

Top viewers currently in a live stream (the online-audience ranking, by contribution). Pass a room_id from /top_live or /live_room.

ParameterDescription
room_idrequiredTikTok live room id (get one from /room_id by username).
anchor_idoptionalThe streamer's user id (improves accuracy; optional).
formatoptionalOmit for the raw ranks (default). Use clean for a trimmed top-viewers list (rank, username, score, followers).

Returns

count and viewers — the raw rank objects by default, or trimmed {rank, username, nickname, user_id, score, followers, avatar} with format=clean.

Example Request

https://dev.omar-thing.site/api/v1/live_audience?room_id=7649767224147725070&anchor_id=6956309222439830533&format=clean&key=YOUR_API_KEY

Example Response

{
  "data": {
    "count": 99,
    "viewers": [
      {
        "avatar": "https://...",
        "followers": 968,
        "nickname": "Kandiee",
        "rank": 1,
        "score": "9K+",
        "user_id": "67...",
        "username": "kandieekane74"
      },
      {
        "...": "more (this shows format=clean; raw by default)"
      }
    ]
  },
  "status": "success"
}
Sends a live request using your API key above.

More Live endpoints