Skip to Content

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

PropertyValue
Endpoints20
Channels byhandle, url or id
Videos and clips byurl or id
Categories byname, slug, id or url
Items a page30
Chat messages a pageAbout 60
TranscriptsNo
CountsViews; followers on channels

Channels

EndpointReturnsCredits
profileA channel with its follower count and links.1
profile/clipsA channel's clips, most viewed first, 30 a page.1
profile/postsA channel's videos, 30 a page.1
profile/scheduleA channel's coming broadcasts, 30 a page.1
liveWhether 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" });
Response
{
  "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 followers is exact, and its posts the number of its videos.
  • Its verified says it is a Twitch Partner, and ext.affiliate an Affiliate.
  • Its ext also 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.chatters is the accounts in its chat, and ext.videoId the video it is recorded to.
  • Off air, live is false, 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), highlight or upload, and sort: latest or views.
  • Clips come most viewed first, over a period: day, week (the default), month or all.
  • 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

EndpointReturnsCredits
postOne video or clip with its views and a link to play it.1
post/commentsA video's chat replay, about 60 messages a page.1

Post Fields

  • The ext.title is the title, and text a video's description.
  • The stats have views.
  • A video's ext.kind is archive, highlight or upload, and a clip's clip.
  • A video's ext.chapters are the stretches of its broadcast in each category.
  • A clip's ext has who cut it, the video it is from and where in it.
  • Its media has 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

EndpointReturnsCredits
categoryA category with its viewers, channels and followers.1
category/clipsA category's clips, most viewed first, 30 a page.1
category/livesA category's live channels, most watched first.1
category/postsA 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 language and tag, its videos sort and language, its clips period and language.

Discovery

EndpointReturnsCredits
searchVideos matching a query, 20 a page.1
search/categoriesCategories matching a query, 30 a page.1
search/livesLive channels matching a query, 30 a page.1
search/suggestionsWhat the search box suggests for a few letters.1
search/usersChannels matching a query, 30 a page.1
trendingThe live channels most watched now, 30 a page.1
trending/categoriesThe 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 language or tag if asked.
  • Trending categories are the categories most watched now.

Batch

EndpointReturnsCredits
batch/liveUp to 100 channels' live status at once.1
batch/profilesUp 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.