Profile Search
A search within one channel's videos, about 30 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.
query*stringWhat to search for in its videos.
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.profileSearch({ handle: "LinusTechTips", query: "gpu" });Example Response
{ "data": [ { "id": "zA1WsB8uQmA", "url": "https://www.youtube.com/watch?v=zA1WsB8uQmA", "text": null, "createdAt": null, "author": { "id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "username": "LinusTechTips", "displayName": "Linus Tech Tips", "avatarUrl": "https://yt3.googleusercontent.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s68-c-k-c0x00ffffff-no-rj", "verified": false, "url": "https://www.youtube.com/@LinusTechTips" }, "stats": { "views": 2037803, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://i.ytimg.com/vi/zA1WsB8uQmA/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGABwAcABBvABAfgBtgiAAoAPigIMCAAQARhlIFYoTTAP&rs=AOn4CLAEVjVs1il9uyY6irP2Txh9ClyygQ", "width": null, "height": null, "durationSeconds": 79 } ], "hashtags": [], "mentions": [], "ext": { "kind": "video", "title": "You wanna build a Supercomputer? - NVIDIA NVLink", "durationSeconds": 79, "publishedText": "1 year ago", "category": null, "keywords": [], "chapters": [], "music": [], "liveNow": false, "unlisted": false, "familySafe": null, "membersOnly": false, "channelSubscribers": null } }, { "id": "H3Cnyj0I62c", "url": "https://www.youtube.com/watch?v=H3Cnyj0I62c", "text": "Check out https://www.youtube.com/@RingConnOfficial using our link! Gen 2 is 15% off for Halloween, October 30-31: https://bit.ly/4inH1fU\nSee our RingConn Gen2 Unboxing: https://www.youtube.com/wat...", "createdAt": null, "author": { "id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "username": "LinusTechTips", "displayName": "Linus Tech Tips", "avatarUrl": "https://yt3.googleusercontent.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s68-c-k-c0x00ffffff-no-rj", "verified": false, "url": "https://www.youtube.com/@LinusTechTips" }, "stats": { "views": 2461875, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "video", "url": null, "thumbnailUrl": "https://i.ytimg.com/vi/H3Cnyj0I62c/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDi3hws39Ue5FsO2CmsbR4MT_WdLw", "width": null, "height": null, "durationSeconds": 1695 } ], "hashtags": [], "mentions": [], "ext": { "kind": "video", "title": "I Doubled My GPU’s Memory (in a guy's basement)", "durationSeconds": 1695, "publishedText": "3 weeks ago", "category": null, "keywords": [], "chapters": [], "music": [], "liveNow": false, "unlisted": false, "familySafe": null, "membersOnly": false, "channelSubscribers": null } } ], "pagination": { "nextCursor": "4qmFsgJzEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaJkNCNFNCbk5sWVhKamFEQUJPQUZnQVdvQWVnTkhRalM0QVFBJTNEWgNncHWaAilicm93c2UtZmVlZFVDWHVxU0JsSEFFNlh3LXllSkEwVHVud3NlYXJjaA%3D%3D", "hasMore": true }}