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 login: the name in its link.
url?stringThe channel's link (https://www.twitch.tv/shroud), instead of handle.
id?stringThe channel's numeric id, instead of either.
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 channel's live status, with its broadcast when it is on.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.twitch.live({ handle: "shroud" });Example Response
{ "data": { "live": true, "roomId": "321358163420", "title": "day3.. we finally got lucia the real main character YAHOO!", "viewers": 5445, "startedAt": "2026-11-25T17:38:16.000Z", "coverUrl": "https://static-cdn.jtvnw.net/previews-ttv/live_user_shroud-1280x720.jpg", "host": { "id": "37402112", "username": "shroud", "displayName": "shroud", "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/c754eebf-745b-4e0a-814a-10bcaecaabbc-profile_image-300x300.png", "verified": true, "url": "https://www.twitch.tv/shroud" }, "ext": { "category": { "id": "1867279146", "name": "Grand Theft Auto VI", "slug": "grand-theft-auto-vi", "url": "https://www.twitch.tv/directory/category/grand-theft-auto-vi", "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/1867279146_IGDB-285x380.jpg" }, "language": "EN", "tags": [ "English", "DropsEnabled" ], "labels": [ "MatureGame" ], "rerun": false, "chatters": 4472, "videoId": "2940500640", "fps": 60, "width": 2560, "height": 1440, "lastLiveAt": "2026-11-25T17:38:22.069Z" } }}