Profile Shorts
A channel's Shorts, about 48 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe channel's handle, with or without @.
channelId?stringThe channel's id, instead of handle.
url?stringThe channel's link, instead of either.
sort?stringlatest (the default), popular or oldest.
Value in
"latest""popular""oldest"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.youtube.profileShorts({ handle: "LinusTechTips", sort: "popular" });Example Response
{ "data": [ { "id": "MlB-g4Ckf5I", "url": "https://www.youtube.com/shorts/MlB-g4Ckf5I", "text": null, "createdAt": null, "author": { "id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "username": "LinusTechTips", "displayName": null, "avatarUrl": null, "verified": false, "url": "https://www.youtube.com/@LinusTechTips" }, "stats": { "views": 43000000, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://i.ytimg.com/vi/MlB-g4Ckf5I/frame0.jpg", "width": null, "height": null, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "short", "title": "this old laptop is still insane", "durationSeconds": null, "publishedText": null, "category": null, "keywords": [], "chapters": [], "music": [], "liveNow": false, "unlisted": false, "familySafe": null, "membersOnly": false, "channelSubscribers": null } }, { "id": "2I9Qk0sB68o", "url": "https://www.youtube.com/shorts/2I9Qk0sB68o", "text": null, "createdAt": null, "author": { "id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "username": "LinusTechTips", "displayName": null, "avatarUrl": null, "verified": false, "url": "https://www.youtube.com/@LinusTechTips" }, "stats": { "views": 29000000, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://i.ytimg.com/vi/2I9Qk0sB68o/frame0.jpg", "width": null, "height": null, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "short", "title": "I Spilled Liquid on my PC...now what?", "durationSeconds": null, "publishedText": null, "category": null, "keywords": [], "chapters": [], "music": [], "liveNow": false, "unlisted": false, "familySafe": null, "membersOnly": false, "channelSubscribers": null } } ], "pagination": { "nextCursor": "4qmFsgK_DhIYVUNYdXFTQmxIQUU2WHcteWVKQTBUdW53GqIOOGdiVENoclFDbExOQ2pMS0Nnb2tObVJpTVdJM01HWXRNREF3TUMweU5XUTVMV0kyT1RJdE1UUmpNVFJsWlRsaE5XUTBFcDhLUVdOV09GWmtWMHBDZUhaeFJGOWxOMGRaT1VKUlUwVk1SbEpxVUd0alJrZDNZWGxNVlhCVFRubFRjRkZ3Ym1abVdFNWFkWE5JWDFvME5tbG5lbnBpUW1JdGNXbE1lRWs0YWpWM1N6Rm5RVVpDUVU1TVRVaG9Oa1ZzYkVsNFFqUnFSMnBuU3pSak55MTFMVGg1Ym1Wb1NIbE1VSG8yTlY4d01uSlFWVFJ0VlZoUU9XNHlWRmRKT1dOd2RGOTJWR2w0…", "hasMore": true }}