Unofficial TikTok Live Chat API — Comments and Gifts

GET/api/v1/live_chat· paginated

Live chat & events of a LIVE room (comments, gifts, joins, likes). Pass a room_id (get one from /room_id by username). Poll with next_cursor to follow along.

ParameterDescription
room_idrequiredTikTok live room id (get one from /room_id by username).
cursoroptionalOmit (or 0) for the latest batch; pass the previous response's next_cursor to get newer events. Poll every ~1-2s to follow the chat live.

Returns

room_id, next_cursor, count, and a messages array of comments. Each has type ("comment"), username, nickname, user_id, and text (what they typed).

Example Request

https://dev.omar-thing.site/api/v1/live_chat?room_id=7649810043075971853&cursor=0&key=YOUR_API_KEY

Example Response

{
  "data": {
    "count": 2,
    "messages": [
      {
        "nickname": "naruto cm",
        "text": "juegapy",
        "type": "comment",
        "user_id": "73...",
        "username": "wilson.cohene"
      },
      {
        "nickname": "Elisa",
        "text": "hola!",
        "type": "comment",
        "user_id": "71...",
        "username": "elisaromero70"
      }
    ],
    "next_cursor": "1781119573790_7649850316300579799_1_1_...",
    "room_id": "7649810043075971853"
  },
  "status": "success"
}
Sends a live request using your API key above.

More Live endpoints