Skip to Content

Category Posts

A category's videos, 30 a page.

GET
/v1/twitch/category/posts

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

name?string

The category's name as written (Just Chatting).

slug?string

The name in its link (just-chatting), instead of name.

id?string

Its numeric id, instead of either.

url?string

Its link, instead of any.

sort?string

views (the default) or latest.

Value in"latest""views"
language?string

Only videos in this language (en, tr).

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.twitch.categoryPosts({ slug: "just-chatting" });
Example Response
{  "data": [    {      "id": "2932628190",      "url": "https://www.twitch.tv/videos/2932628190",      "text": null,      "createdAt": "2026-11-18T19:37:03.000Z",      "author": {        "id": "267160288",        "username": "caseoh_",        "displayName": "caseoh_",        "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/ef28ba12-c8ed-46d4-838b-a4c95ef5b469-profile_image-300x300.png",        "verified": true,        "url": "https://www.twitch.tv/caseoh_"      },      "stats": {        "views": 4828002,        "likes": null,        "comments": null,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "video",          "url": null,          "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/99dde58846fd9b6cf4c4_caseoh__317912867703_1795030618//thumb/thumb0-640x360.jpg",          "width": null,          "height": null,          "durationSeconds": 52101        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "archive",        "title": "🟨LOSING MY MIND🟨",        "category": {          "id": "509658",          "name": "Just Chatting",          "slug": "just-chatting",          "url": "https://www.twitch.tv/directory/category/just-chatting",          "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/509658-285x380.jpg"        },        "language": "en",        "durationSeconds": 52101,        "recording": false,        "chapters": [],        "labels": [          "MatureGame"        ],        "clipId": null,        "curator": null,        "videoId": null,        "videoOffsetSeconds": null,        "featured": false      }    },    {      "id": "2932698524",      "url": "https://www.twitch.tv/videos/2932698524",      "text": null,      "createdAt": "2026-11-18T20:52:44.000Z",      "author": {        "id": "459331509",        "username": "auronplay",        "displayName": "auronplay",        "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/1165c917-6c34-4179-8d24-8667f59eb179-profile_image-300x300.png",        "verified": true,        "url": "https://www.twitch.tv/auronplay"      },      "stats": {        "views": 4178721,        "likes": null,        "comments": null,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "video",          "url": null,          "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/f453174986a1ba10d695_auronplay_318387433955_1795035156/thumb/custom-32b193a1-318e-4e9d-a150-7caeb830a47e-640x360.jpeg",          "width": null,          "height": null,          "durationSeconds": 20940        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "archive",        "title": "🚨 !DROPS ON 🌴 GTA VI  DESDE PS5 PRO 🌴ESTUVE ESPERANDO 13 AÑOS POR ESTE MOMENTO 🌴",        "category": {          "id": "509658",          "name": "Just Chatting",          "slug": "just-chatting",          "url": "https://www.twitch.tv/directory/category/just-chatting",          "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/509658-285x380.jpg"        },        "language": "es",        "durationSeconds": 20940,        "recording": false,        "chapters": [],        "labels": [          "MatureGame"        ],        "clipId": null,        "curator": null,        "videoId": null,        "videoOffsetSeconds": null,        "featured": false      }    }  ],  "pagination": {    "nextCursor": "2934910069|1232419|2026-11-20T13:40:11Z|70709",    "hasMore": true  }}