Live
Whether a channel is live, with its broadcast.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe channel's name in its link (xqc).
url?stringThe channel's link (https://kick.com/xqc), instead of handle.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A live broadcast, or a channel's live status.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.kick.live({ handle: "xqc" });Example Response
{ "data": { "live": false, "roomId": null, "title": null, "viewers": null, "startedAt": null, "coverUrl": null, "host": { "id": "668", "username": "xqc", "displayName": "xQc", "avatarUrl": "https://files.kick.com/images/user/676/profile_image/conversion/931b4e8f-5445-427c-bd82-b473530390cc-fullsize.webp", "verified": true, "url": "https://kick.com/xqc" }, "ext": { "category": null, "language": null, "tags": [], "mature": false, "playbackUrl": null } }}