Search
Videos matching a query, 20 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
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.search({ query: "valorant" });Example Response
{ "data": [ { "id": "2939903945", "url": "https://www.twitch.tv/videos/2939903945", "text": null, "createdAt": "2026-11-25T00:58:10.000Z", "author": { "id": "884261414", "username": "ichinosetohr", "displayName": "一ノ瀬とおる", "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/13176bed-4201-4ad4-8a95-378092e2e3b0-profile_image-300x300.png", "verified": true, "url": "https://www.twitch.tv/ichinosetohr" }, "stats": { "views": 26142, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/d3vd9lfkzbru3h/7d27f64b2ae58910743c_ichinosetohr_316757986545_1795568285//thumb/thumb0-640x360.jpg", "width": null, "height": null, "durationSeconds": 19688 } ], "hashtags": [], "mentions": [], "ext": { "kind": "archive", "title": "毎試合30キルする", "category": { "id": "516575", "name": "VALORANT", "slug": "valorant", "url": "https://www.twitch.tv/directory/category/valorant", "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/516575-285x380.jpg" }, "language": "ja", "durationSeconds": 19688, "recording": false, "chapters": [], "labels": [], "clipId": null, "curator": null, "videoId": null, "videoOffsetSeconds": null, "featured": false } }, { "id": "2939978239", "url": "https://www.twitch.tv/videos/2939978239", "text": null, "createdAt": "2026-11-25T02:18:44.000Z", "author": { "id": "662899088", "username": "xwlumpy", "displayName": "xwLUMPY", "avatarUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/13d50ddf-139a-44f1-85b1-de75993e0a9d-profile_image-300x300.png", "verified": true, "url": "https://www.twitch.tv/xwlumpy" }, "stats": { "views": 19578, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/f81f2ecb4cd73c0125cb_xwlumpy_318712539736_1795573120//thumb/thumb0-640x360.jpg", "width": null, "height": null, "durationSeconds": 23331 } ], "hashtags": [], "mentions": [], "ext": { "kind": "archive", "title": "🔫VALO HASTA PERDER UNA RANK Y GTA VI en busca de chichis 🔞🔫DROPS DE GTA VI🔞", "category": { "id": "516575", "name": "VALORANT", "slug": "valorant", "url": "https://www.twitch.tv/directory/category/valorant", "coverUrl": "https://static-cdn.jtvnw.net/ttv-boxart/516575-285x380.jpg" }, "language": "es", "durationSeconds": 23331, "recording": false, "chapters": [], "labels": [ "MatureGame" ], "clipId": null, "curator": null, "videoId": null, "videoOffsetSeconds": null, "featured": false } } ], "pagination": { "nextCursor": "MjA=", "hasMore": true }}