Post Comments
A video's chat replay, about 60 messages a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe video's link.
id?stringThe video's number, instead of url.
offset?integerWhere in the video to start, in seconds (0, the default, is its beginning).
Format
int32Range
0 <= valuecursor?stringnextCursor of the previous page; offset is not read with it.
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
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*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 }}