Get Chat Messages

Fetch chat messages in a room/livestream

PREMIUM ENDPOINT

Fetch chat messages in a room/livestream

GET https://kitkot.xyz/api/live/chat

Allows you to monitor/fetch all chat messages being sent in a livestream, also allows you to fetch old chat messages sent usingcursor & internalExt

Query Parameters

Name
Type
Description

api_key*

String

The api_key you got when purchasing our service

session_key*

String

The session_key you got from our login endpoint

room_id*

String

The room_id of the room/live to fetch the messages in

cursor

String

The cursor returned from our server after fetching messages (this cursor is "bound" to those messages and sending this cursor will always return those messages sent at that exact time)

internalExt

String

The internalExt returned from our server after fetching messages (This works equal to cursor, so if you are sending cursor please send this aswell)

{
  code: 200,
  msg: 'success',
  messages: [Object, Object, Object, Object],
  cursor: '',
  fetchInterval: 1000,
  now: '',
  internalExt: '',
  hasMore: true
}
const BASEURL = "https://kitkot.xyz/api";
const API_KEY = "my-api-key";
const session_key = "my-session-key";
const room_id = "someroomID";

const request = await fetch(`${BASEURL}/live/chat?api_key=${API_KEY}&session_key=${session_key}&room_id=${room_id}`);
const response = await request.json();
console.log(response);

Last updated