GET /v1/youtube/channel
YouTube channel API: subscribers, views and links by handle or ID
Returns a channel's About panel, read live: name, description, subscribers, video count and links, with extra holding total views, country, join date, keywords and the banner URL. Send handle as a case-sensitive @handle, a UC… channel id or a channel URL.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/youtube/channel?handle=%40mkbhd' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/youtube/channel",
params={
"handle": "@mkbhd",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
handle required | query | string | A channel @handle, its UC… channel id, or a youtube.com/@handle or /channel/ URL. Handles are case-sensitive. |
language | query | string | The language YouTube answers in, a BCP-47 code such as en or pt-BR; omitted is en. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts YouTube (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. |
get_raw | query | boolean | true returns the upstream JSON exactly as YouTube answered it instead of the normalized Profile. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"id": "UCBJycsmduvYEL83R_U4JriQ",
"username": "mkbhd",
"full_name": "Marques Brownlee",
"biography": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n\nbusiness@MKBHD.com\n\nNYC",
"followers": 21100000,
"following": null,
"posts": 1835,
"is_verified": true,
"is_private": null,
"avatar_url": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s68-c-k-c0x00ffffff-no-rj",
"external_url": "http://twitter.com/MKBHD",
"links": [
{
"url": "http://twitter.com/MKBHD",
"title": null
},
{
"url": "http://instagram.com/MKBHD",
"title": null
},
{
"url": "http://youtube.com/c/TheStudio",
"title": null
}
],
"category": null,
"business_category": null,
"is_business": null,
"is_professional": null,
"business_email": null,
"business_phone": null,
"business_address": null,
"pronouns": [],
"highlight_reel_count": null,
"has_clips": null,
"is_recently_joined": null,
"fbid": null,
"extra": {
"banner_url": "https://yt3.googleusercontent.com/zi_48HwHU4s0Hnb6tZuvRzTfCPHrLEnrtIMDLzMauDEyDmURh9JZ4wrNd3lKr7m9uVnT4YjYKw=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"view_count": 5477465487,
"country": "United States",
"joined_date": "2008-03-21T00:00:00Z",
"keywords": null
}
},
"meta": {
"source": "live",
"fetched_at": "2026-07-13T16:03:25.083509+00:00",
"cost": "$0.0005",
"balance": "$0.3772",
"request_id": "req_4c9f8e6ecd85bfce68885799cfd8f6a8"
}
}How it works
The channel's About panel: subscribers, videos, links and join date. extra carries banner_url, view_count, country, joined_date and keywords. Returns Profile under data; with get_raw=true returns the upstream JSON.
A field YouTube does not carry is null, a list it does not carry is [], and YouTube-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the YouTube account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |