Skip to Content

Post Comments

A video's chat replay, about 60 messages a page.

GET
/v1/twitch/post/comments

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

The video's link.

id?string

The video's number, instead of url.

offset?integer

Where in the video to start, in seconds (0, the default, is its beginning).

Formatint32
Range0 <= value
cursor?string

nextCursor of the previous page; offset is not read with it.

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.postComments({ url: "https://www.twitch.tv/videos/2939600059" });
Example Response
{  "data": [    {      "id": "1fe4d2ff-548a-4e36-a704-f928e7e6c995",      "postId": "2939600059",      "parentId": null,      "text": "1st",      "createdAt": "2026-11-24T19:18:40.049Z",      "author": {        "id": "530691241",        "username": "iwrckdgaming",        "displayName": "iwrckdgaming",        "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/ff73790e-7d9d-4c07-8faa-662b82eb0fa7-profile_image-300x300.png",        "verified": false,        "url": "https://www.twitch.tv/iwrckdgaming"      },      "likes": null,      "replies": null,      "ext": {        "offsetSeconds": 18,        "color": "#00FF7F",        "badges": [          "pichu"        ],        "emotes": []      }    },    {      "id": "1c8905ee-d57e-49da-8250-fc024162fd05",      "postId": "2939600059",      "parentId": null,      "text": "hello",      "createdAt": "2026-11-24T19:18:43.216Z",      "author": {        "id": "155386715",        "username": "fischdepchen",        "displayName": "fischdepchen",        "avatarUrl": "https://static-cdn.jtvnw.net/user-default-pictures-uv/998f01ae-def8-11e9-b95c-784f43822e80-profile_image-300x300.png",        "verified": false,        "url": "https://www.twitch.tv/fischdepchen"      },      "likes": null,      "replies": null,      "ext": {        "offsetSeconds": 21,        "color": "#FF4500",        "badges": [          "premium"        ],        "emotes": []      }    }  ],  "pagination": {    "nextCursor": "eyJpZCI6ImE1ZDNjYTc2LTU2MTItNGU5MS04MjdmLWM2MjEyZTQwZWQ3MCIsImhrIjoiYnJvYWRjYXN0OjMyMDAzNjUwNTk0MyIsInNrIjoiQUFBQU5MR2FuNEFZNnhHQ1c2Rm9nQSJ9",    "hasMore": true  }}