Platforms
Twitch
Read Twitch channels and their live status, videos, clips and chat replays, categories, search and what is watched now.
Read channels with their live status, videos, clips and schedule, a video with its chat replay, a category with what is live in it, and what Twitch shows by search and by viewers.
Quick Reference
| Property | Value |
|---|---|
| Endpoints | 20 |
| Channels by | handle, url or id |
| Videos and clips by | url or id |
| Categories by | name, slug, id or url |
| Items a page | 30 |
| Chat messages a page | About 60 |
| Transcripts | No |
| Counts | Views; followers on channels |
Channels
| Endpoint | Returns | Credits |
|---|---|---|
profile | A channel with its follower count and links. | 1 |
profile/clips | A channel's clips, most viewed first, 30 a page. | 1 |
profile/posts | A channel's videos, 30 a page. | 1 |
profile/schedule | A channel's coming broadcasts, 30 a page. | 1 |
live | Whether a channel is live, with its broadcast. | 1 |
Read a Channel
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.twitch.profile({ handle: "shroud" });{
"data": {
"id": "37402112",
"username": "shroud",
"displayName": "shroud",
"bio": "I'm back baby",
"avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/c754eebf-745b-4e0a-814a-10bcaecaabbc-profile_image-300x300.png",
"url": "https://www.twitch.tv/shroud",
"verified": true,
"private": false,
"followers": 11286234,
"following": null,
"likes": null,
"posts": 1624,
"externalUrl": null,
"createdAt": "2012-11-03T15:50:32.878Z",
"ext": {
"partner": true,
"affiliate": false,
"live": true,
"bannerUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/dbee25e8-55b7-4565-87f0-e9d4661dcc66-profile_banner-480.jpeg",
"offlineImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/0e68b939-5868-4ee5-b2b8-fdb51521c84d-channel_offline_image-1920x1080.jpeg",
"color": "#00ADFF",
"language": "EN",
"links": [
{
"name": "discord",
"title": "Discord",
"url": "https://discord.gg/shroud"
},
{
"name": "twitter",
"title": "Twitter",
"url": "https://twitter.com/shroud"
},
{
"name": "youtube",
"title": "YouTube",
"url": "https://youtube.com/shroud"
}
],
"panels": [
{
"title": null,
"description": null,
"imageUrl": "https://panels.twitch.tv/panel-37402112-image-b4e05d8f-d6ac-44d4-bd27-ee2cc7f3c13a",
"linkUrl": "https://load.gg/shroud-palworldocg"
},
{
"title": null,
"description": null,
"imageUrl": "https://panels.twitch.tv/panel-37402112-image-407517f5-8549-42ec-9433-d19837869c09",
"linkUrl": "https://load.gg/shroudLogitech"
},
{
"title": null,
"description": null,
"imageUrl": "https://panels.twitch.tv/panel-37402112-image-503ca1b8-22d5-4eab-b610-e673c13860d8",
"linkUrl": "https://www.youtube.com/shroud"
}
],
"team": {
"name": "loadedllc",
"displayName": "Loaded",
"url": "https://www.twitch.tv/team/loadedllc"
},
"lastLiveAt": "2026-11-25T17:38:22.069Z",
"lastTitle": "day3.. we finally got lucia the real main character YAHOO!",
"lastCategory": {
"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"
},
"updatedAt": "2026-11-25T17:35:01.451Z"
}
}
}- A channel's
followersis exact, and itspoststhe number of its videos. - Its
verifiedsays it is a Twitch Partner, andext.affiliatean Affiliate. - Its
extalso has its banner, its links and panels, its team and when it was last live.
Live Status
- On air, a live has its title, category, viewers, start time, language and tags.
- Its
ext.chattersis the accounts in its chat, andext.videoIdthe video it is recorded to. - Off air,
liveisfalse, with the title and category the channel is set to. - Live status is kept for a minute.
Channel Lists
- Videos take
type:archive(past broadcasts),highlightorupload, andsort:latestorviews. - Clips come most viewed first, over a
period:day,week(the default),monthorall. - Clips also take
featured, for the ones the channel features. - A schedule lists the coming broadcasts, each with its start, end and categories.
Videos and Clips
| Endpoint | Returns | Credits |
|---|---|---|
post | One video or clip with its views and a link to play it. | 1 |
post/comments | A video's chat replay, about 60 messages a page. | 1 |
Post Fields
- The
ext.titleis the title, andtexta video's description. - The
statshave views. - A video's
ext.kindisarchive,highlightorupload, and a clip'sclip. - A video's
ext.chaptersare the stretches of its broadcast in each category. - A clip's
exthas who cut it, the video it is from and where in it. - Its
mediahas a link to play it: a clip's file, or a video's playlist. The links last about 20 hours.
Chat Replay
A video's comments are the messages written in its chat while it was live, in order. Each has its author, its ext.offsetSeconds into the video, its badges and its emotes. Start anywhere in the video with offset, in seconds.
Categories
| Endpoint | Returns | Credits |
|---|---|---|
category | A category with its viewers, channels and followers. | 1 |
category/clips | A category's clips, most viewed first, 30 a page. | 1 |
category/lives | A category's live channels, most watched first. | 1 |
category/posts | A category's videos, 30 a page. | 1 |
- A category is a game, or a kind of broadcast such as Just Chatting.
- It has its viewers and channels now, its followers and its genres.
- Its live channels take
languageandtag, its videossortandlanguage, its clipsperiodandlanguage.
Discovery
| Endpoint | Returns | Credits |
|---|---|---|
search | Videos matching a query, 20 a page. | 1 |
search/categories | Categories matching a query, 30 a page. | 1 |
search/lives | Live channels matching a query, 30 a page. | 1 |
search/suggestions | What the search box suggests for a few letters. | 1 |
search/users | Channels matching a query, 30 a page. | 1 |
trending | The live channels most watched now, 30 a page. | 1 |
trending/categories | The categories most watched now, 30 a page. | 1 |
- Search finds videos, channels, categories or live channels, each by its own endpoint.
- Trending is the live channels most watched now, by
languageortagif asked. - Trending categories are the categories most watched now.
Batch
| Endpoint | Returns | Credits |
|---|---|---|
batch/live | Up to 100 channels' live status at once. | 1 |
batch/profiles | Up to 50 channels at once, by their logins. | 1 |
- Batch live reads up to 100 channels at once, and batch profiles up to 50.
- Each channel is read as its own endpoint answers it, and one served from the cache is free.
- A login that names no channel is left out of the answer, and costs nothing.