Skip to Content

Profile

A channel with its subscribers, videos and views.

GET
/v1/youtube/profile

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

handle?string

The channel's handle, with or without @.

channelId?string

The channel's id (UCX6OQ3DkcsbYNE6H8uQQuVA), instead of handle.

url?string

The channel's link, instead of either.

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

One item, as every single-item endpoint answers: { "data": … }.

data*

A YouTube channel.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.youtube.profile({ handle: "LinusTechTips" });
Example Response
{  "data": {    "id": "UCXuqSBlHAE6Xw-yeJA0Tunw",    "username": "LinusTechTips",    "displayName": "Linus Tech Tips",    "bio": "Linus Tech Tips is a passionate team of \"professionally curious\" experts in consumer technology and video production who aim to educate and entertain.\n\nSponsorship Inquiries: partnerships@linusmediagroup.com",    "avatarUrl": "https://yt3.googleusercontent.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s160-c-k-c0x00ffffff-no-rj",    "url": "https://www.youtube.com/@LinusTechTips",    "verified": true,    "private": false,    "followers": 16900000,    "following": null,    "likes": null,    "posts": 8011,    "externalUrl": "https://www.lttstore.com/",    "createdAt": "2008-11-24T00:00:00.000Z",    "ext": {      "views": 10045352646,      "country": "Canada",      "bannerUrl": "https://yt3.googleusercontent.com/U_7GWetO6k4sq3pAkbFEIIWzZLKcIJlGJqNz6NQAhgqF6DVD5pllwWF6trSUWEIRn4MkhNlhy9Y=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",      "links": [        {          "title": "lttstore.com",          "url": "https://www.lttstore.com/"        },        {          "title": "Floatplane",          "url": "https://www.floatplane.com/ltt"        },        {          "title": "Labs",          "url": "https://www.lttlabs.com/"        }      ],      "subscribersText": "16.9M subscribers"    }  }}