Skip to content
Managed gateway · LeanPool

LIVE chat

Decoded chat, gift and room events.

GETapi.tikultra.com/v1/live/chatHeavy · 10 credits
Upstream/webcast/im/fetch/{ cursor, has_more }Every plan

Parameters

NameTypeDescription
room_idrequiredstringThe numeric LIVE room ID.
e.g. 7705861000123456789
cursorstringThe cursor from the previous page. Omit it for the first page.

Pricing

PlanPer callPer 1,000 calls
Starter10 credits$1.16
Growth10 credits$0.79
Scale10 credits$0.58

Response fields

FieldTypeDescription
status_codeintegerUpstream TikTok mobile status code (0 indicates success).
room_idstring64-bit LIVE room Snowflake identifier.
cursorstringOpaque pagination cursor to pass as cursor on the next request, or null at the end.
has_morebooleanWhether another page of results is available.
eventsobject[]List of events objects.
events[].typestringDecoded type value.
events[].msg_idstringUnique msg identifier.
events[].userobjectResolved user profile object.
events[].textstringUTF-8 text body.
events[].ts_msintegerTs in milliseconds.

Responses

A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes

import os
from tikultra import TikUltra

with TikUltra(api_key=os.environ["TIKULTRA_KEY"]) as client:
    res = client.request("GET", "/v1/live/chat", params={
        "room_id": "7705861000123456789",
    })
    print(res.credits_cost, res.data)
{
  "status_code": 0,
  "room_id": "7705861000123456789",
  "cursor": "1794400815000_9912",
  "has_more": true,
  "events": [
    {
      "type": "WebcastChatMessage",
      "msg_id": "7705861999111222333",
      "user": {
        "uid": "6970000000000000002",
        "unique_id": "kbfan",
        "nickname": "KB Fan"
      },
      "text": "Try the POM plate next!",
      "ts_ms": 1794400812410
    },
    {
      "type": "WebcastGiftMessage",
      "msg_id": "7705861999111222334",
      "user": {
        "uid": "6970000000000000003",
        "unique_id": "deskminimal",
        "nickname": "Desk Minimal"
      },
      "gift_id": 5879,
      "gift_name": "Doughnut",
      "diamond_count": 30,
      "repeat_count": 2,
      "ts_ms": 1794400814105
    }
  ]
}
Try it in the playgroundFull reference in the docs

More in LIVE rooms

Ready to build?

Start with 2,500 free credits and test every public endpoint, then pick a plan.