Skip to Content

Post

One video or clip with its views and a link to play it.

GET
/v1/twitch/post

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

A video's link (https://www.twitch.tv/videos/2914038727) or a clip's (https://www.twitch.tv/shroud/clip/…, https://clips.twitch.tv/…).

id?string

A video's number, or a clip's name in its link, instead of url.

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

One item, as every single-item endpoint answers: { "data": … }.

data*

A video (a past broadcast, a highlight, an upload) or a clip.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.twitch.post({ url: "https://www.twitch.tv/videos/2939600059" });
Example Response
{  "data": {    "id": "2939600059",    "url": "https://www.twitch.tv/videos/2939600059",    "text": null,    "createdAt": "2026-11-24T19:18:20.000Z",    "author": {      "id": "37402112",      "username": "shroud",      "displayName": "shroud",      "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/c754eebf-745b-4e0a-814a-10bcaecaabbc-profile_image-300x300.png",      "verified": true,      "url": "https://www.twitch.tv/shroud"    },    "stats": {      "views": 228721,      "likes": null,      "comments": null,      "shares": null,      "saves": null,      "engagementRate": null    },    "media": [      {        "kind": "video",        "url": "https://usher.ttvnw.net/vod/2939600059.m3u8?allow_source=true&allow_audio_only=true&sig=a9f8a5aca4fcb47a1781038b1dc3ba3c209bc3f9&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3A%22s2b9sulbgmdn1bpfdo1x68ggo8qkq0m9%22%2C%22expires%22%3A1795706021%2C%22https_required%22%3Atrue%2C%22privileged%22%3Afalse%2C%22user_id%22%3Anull%2C%22version%22%3A3%2C%22vod_id%22%3A2939600059%2C%22maximum_resolution%22%3A%22FULL_HD%22%2C%22maximum_video_bitrate_kbps%22%3A12500%2C%22maximum_resolution_reasons%22%3A%7B%22QUAD_HD%22%3A%5B%22AUTHZ_NOT_LOGGED_IN%22%5D%2C%22ULTRA_HD%22%3A%5B%22AUTHZ_NOT_LOGGED_IN%22%5D%7D%2C%22maximum_video_bitrate_kbps_reasons%22%3A%5B%22AUTHZ_DISALLOWED_BITRATE%22%5D%2C%22channel_name%22%3A%22shroud%22%2C%22is_dvr%22%3Afalse%7D",        "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/d51a94b098e603b359da_shroud_320036505943_1795547895//thumb/thumb0-640x360.jpg",        "width": null,        "height": null,        "durationSeconds": 20005      }    ],    "hashtags": [],    "mentions": [],    "ext": {      "kind": "archive",      "title": "day 2 of feeling left out.. but we are VIBING BROTHERS!!!",      "category": {        "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"      },      "language": "en",      "durationSeconds": 20005,      "recording": false,      "chapters": [],      "labels": [        "MatureGame"      ],      "clipId": null,      "curator": null,      "videoId": null,      "videoOffsetSeconds": null,      "featured": false    }  }}