YouTube channel API
A YouTube channel by id, handle or URL: description, handle, avatar and banner, subscriber count, exact video and view counts, join date, country, links and emails written in its description, as a Data API youtube#channel.
GET /v1/youtube/channels/{channel}Beta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/channels/@MrBeast",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "youtube#channel", "id": "UCX6OQ3DkcsbYNE6H8uQQuVA", "snippet": { "title": "MrBeast", "description": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\nAccomplishments:…", "customUrl": "@mrbeast", "handle": "@MrBeast", "publishedAt": "2012-02-19T00:00:00.000Z", "thumbnails": { "default": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s88-c-k-c0…", "width": 88, "height": 88 }, "medium": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s240-c-k-c…", "width": 240, "height": 240 }, "high": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s800-c-k-c…", "width": 800, "height": 800 } }, "country": "United States" }, "statistics": { "viewCount": "148078238266", "subscriberCount": "528000000", "hiddenSubscriberCount": false, "videoCount": "1017" }, "brandingSettings": { "channel": { "keywords": "mrbeast6000 beast mrbeast Mr.Beast mr" }, "image": { "bannerExternalUrl": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP" } }, "contentDetails": { "relatedPlaylists": { "uploads": "UUX6OQ3DkcsbYNE6H8uQQuVA" } }, "status": { "isFamilySafe": true }, "isVerified": true, "links": [ { "title": "Follow", "url": "https://www.instagram.com/mrbeast/" }, { "title": "Twitter", "url": "https://twitter.com/MrBeast" }, "… 1 more" ], "tabs": [ "Home", "Videos", "… 3 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
channelpath · required | string | A channel id (UC…), a handle with or without the @, or any channel URL (/@handle, /channel/UC…, /c/name, /user/name). Example: @MrBeast. |
languagequery | string | ISO 639-1 language code (en, es, pt-BR). Example: en. |
Response fields
200 with a YouTubeChannel, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#channel" | |
id | string | |
snippet | object | |
statistics | object | |
brandingSettings | object | |
contentDetails | object | |
status | object | |
isVerified | boolean | |
links | YouTubeChannelLink[] | The links on the channel’s about panel. |
emails | string[] | Addresses written in the channel description. The address behind “View email address” needs a signed-in visitor and is never read. |
tabs | string[] | The tabs the channel shows: Videos, Shorts, Live, Playlists, Posts, Podcasts… |
Status codes
| Status | Meaning |
|---|---|
200 | The channel. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Do you return the business email?
Only addresses written in the description. The “View email address” button needs a signed-in visitor and is never read.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.