Profile Clips
A channel's clips, most viewed first, 30 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe channel's login.
url?stringThe channel's link, instead of handle.
id?stringThe channel's numeric id, instead of either.
period?stringHow far back: day, week (the default), month or all.
Value in
"day""week""month""all"featured?booleanOnly the clips the channel features.
cursor?stringnextCursor of the previous page.
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.profileClips({ handle: "shroud", period: "all" });Example Response
{ "data": [ { "id": "TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ", "url": "https://www.twitch.tv/shroud/clip/TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ", "text": null, "createdAt": "2023-06-02T11:41:50.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": 563744, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": "https://d1ndex63qxojbr.cloudfront.net/nauth/5696a6a8-e053-4c2e-a54c-5ca62c48102e/landscape/avc/1080/index.mp4?sig=868665cdb4eaa1155b409426ba60784b5b527638&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22clip_uri%22%3A%22https%3A%2F%2Fd1ndex63qxojbr.cloudfront.net%2Fnauth%2F5696a6a8-e053-4c2e-a54c-5ca62c48102e%2Flandscape%2Favc%2F1080%2Findex.mp4%22%2C%22clip_slug%22%3A%22TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ%22%2C%22device_id%22%3A%22dzuv5s0195yqx92h8qb30uzc878xtic6%22%2C%22expires%22%3A1795706021%2C%22user_id%22%3A%22%22%2C%22version%22%3A3%7D", "thumbnailUrl": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/5696a6a8-e053-4c2e-a54c-5ca62c48102e/landscape/thumb/thumb-0000000000-1920x1080.jpg", "width": null, "height": 1080, "durationSeconds": 28 } ], "hashtags": [], "mentions": [], "ext": { "kind": "clip", "title": "F Shroud", "category": { "id": "515024", "name": "Diablo IV", "slug": "diablo-iv", "url": "https://www.twitch.tv/directory/category/diablo-iv", "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/515024-285x380.jpg" }, "language": "EN", "durationSeconds": 28, "recording": false, "chapters": [], "labels": [], "clipId": "2358589597", "curator": { "id": "165804164", "username": "pato_bolado", "displayName": "Pato_Bolado", "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/32755070-71cf-4911-948a-eb6ea0b952e7-profile_image-300x300.png", "verified": false, "url": "https://www.twitch.tv/pato_bolado" }, "videoId": "1835200464", "videoOffsetSeconds": 48930, "featured": false } }, { "id": "SuccessfulEndearingPidgeonPunchTrees-46KXLAMeuS9kpp5Q", "url": "https://www.twitch.tv/shroud/clip/SuccessfulEndearingPidgeonPunchTrees-46KXLAMeuS9kpp5Q", "text": null, "createdAt": "2023-08-05T10:53:38.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": 563417, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": "https://d1ndex63qxojbr.cloudfront.net/nauth/05f80190-90b4-4569-94ce-36a01d87b191/landscape/avc/1080/index.mp4?sig=3806163c9da3667fcde81c44e5ec8c41bcf6ab38&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22clip_uri%22%3A%22https%3A%2F%2Fd1ndex63qxojbr.cloudfront.net%2Fnauth%2F05f80190-90b4-4569-94ce-36a01d87b191%2Flandscape%2Favc%2F360%2Findex.mp4%22%2C%22clip_slug%22%3A%22SuccessfulEndearingPidgeonPunchTrees-46KXLAMeuS9kpp5Q%22%2C%22device_id%22%3A%22dzuv5s0195yqx92h8qb30uzc878xtic6%22%2C%22expires%22%3A1795706021%2C%22user_id%22%3A%22%22%2C%22version%22%3A3%7D", "thumbnailUrl": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/05f80190-90b4-4569-94ce-36a01d87b191/landscape/thumb/thumb-0000000000-1920x1080.jpg", "width": null, "height": 1080, "durationSeconds": 19 } ], "hashtags": [], "mentions": [], "ext": { "kind": "clip", "title": "it's gonna be over", "category": { "id": "512923", "name": "Baldur's Gate 3", "slug": "baldurs-gate-3", "url": "https://www.twitch.tv/directory/category/baldurs-gate-3", "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/512923_IGDB-285x380.jpg" }, "language": "EN", "durationSeconds": 19, "recording": false, "chapters": [], "labels": [], "clipId": "3663533447", "curator": { "id": "63640236", "username": "jawnpeed", "displayName": "JawnPeed", "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/c146382f-eb67-4ae1-8e52-61ceca3b7bc0-profile_image-300x300.png", "verified": false, "url": "https://www.twitch.tv/jawnpeed" }, "videoId": "1890462089", "videoOffsetSeconds": 28052, "featured": false } } ], "pagination": { "nextCursor": "MzA=", "hasMore": true }}