Skip to Content

Search Channels

Channels matching a query, about 20 a page.

GET
/v1/youtube/search/channels

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

query*string

What to search for.

cursor?string

nextCursor of the previous page.

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

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.youtube.searchChannels({ query: "coffee" });
Example Response
{  "data": [    {      "id": "UCxCZqbizSsnntlz6w0fN8hA",      "username": "Coffee89921_",      "displayName": "Coffee林芊妤",      "bio": "Valerielam0921@gmail.com (work contact) and I am qualified yoga instructor in HK too",      "avatarUrl": "https://yt3.googleusercontent.com/ytc/AIdro_nebiuIIn1KBfWTsSuoRnGgLudg1WbiGqk4QZohcRvEj6g=s176-c-k-c0x00ffffff-no-rj-mo",      "url": "https://www.youtube.com/@Coffee89921_",      "verified": true,      "private": false,      "followers": 1870000,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": null,      "ext": {        "views": null,        "country": null,        "bannerUrl": null,        "links": [],        "subscribersText": "1.87M subscribers"      }    },    {      "id": "UCb5ObxghlOD37c-st_5Msdw",      "username": "coffeecircle",      "displayName": "Coffee Circle",      "bio": "Das ist der offizielle Youtube Kanal von Coffee Circle, Kaffeerösterei und Onlineshop für richtig guten Kaffee und ausgesuchtes ...",      "avatarUrl": "https://yt3.googleusercontent.com/ytc/AIdro_lPXLLTAm749JLAEoO2_54jcgqdDgQaRN9vujm0seXPBkk=s176-c-k-c0x00ffffff-no-rj-mo",      "url": "https://www.youtube.com/@coffeecircle",      "verified": false,      "private": false,      "followers": 18400,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": null,      "ext": {        "views": null,        "country": null,        "bannerUrl": null,        "links": [],        "subscribersText": "18.4K subscribers"      }    }  ],  "pagination": {    "nextCursor": "Eu8FEgZjb2ZmZWUa5AVFZ0lRQWtnVWdnRVlWVU40UTFweFltbDZVM051Ym5Sc2VqWjNNR1pPT0doQmdnRVlWVU5pTlU5aWVHZG9iRTlFTXpkakxYTjBYelZOYzJSM2dnRVlWVU5GYTNWdlowVTFOM2hoWXpsRlVGb3pSVnAzVjBsbmdnRVlWVU5OWm5aTVdtSlRTMUZ3ZVY5MFdVOHRXVlZtY1RSM2dnRVlWVU5CVERsbVMyUjNTRkp5WVVOWVNGVmtjV1JXWmpCbmdnRVlWVU4xVW1ONFRVeDFjVWhLWlhWUWVVeE5NMmN6UjNCM2dnRVlWVU53Ukhwd1lWVlVZa2xyWkdwclExbzVjRzFtVFhKQmdnRVlWVU4zYUhGQ1YwVlNlazlhT0RoMFFq…",    "hasMore": true  }}