YouTube's official Data API v3 is technically free and practically a maze. Every call spends from a daily quota of 10,000 units, and since June 2026 search.list has its own bucket of 100 calls a day (quota math in our YouTube Data API alternative guide). If all you want is a channel's subscriber count, lifetime views, and best-performing videos, that machinery is overkill.
This API collapses that to one authenticated GET. Pass a channel — as an @handle, a UC... channel id, or a full YouTube URL — and get back a clean { data, meta } envelope. Three endpoints cover the channel profile, its stored videos, and view and engagement figures across them. No quota units, no OAuth dance, no per-project approval. A request either returns 200 with data or costs you nothing.
The three endpoints
One input, one envelope
Every YouTube endpoint takes the same q input — an @handle, a UC... channel id, or a youtube.com URL — and returns { data, meta }. meta carries the exact cost, your new balance, and a request_id for support. You are only billed on a 200; a 404 or an upstream 502 is free.
| Endpoint | Returns | Cost |
|---|---|---|
GET /v1/youtube/profile | Subscribers, lifetime views, video count, verified, country | $0.0005 |
GET /v1/youtube/videos | Stored videos, newest first, with views, likes and publish time (up to 100 a page) | $0.0005 |
GET /v1/youtube/stats | View, like and engagement figures + top 5 videos | $0.0010 |
Pull the channel profile
Start with the profile. It returns the durable channel-level numbers: followers (YouTube subscribers), view_count (lifetime channel views across every upload), and posts_count (total videos the channel has published), plus full_name, channel_id, is_verified, and country.
curl "https://api.virev.ai/v1/youtube/profile?q=@MrBeast" \
-H "Authorization: Bearer $VIREV_API_KEY"import requests
res = requests.get(
"https://api.virev.ai/v1/youtube/profile",
params={"q": "@MrBeast"},
headers={"Authorization": "Bearer kb_live_..."},
)
profile = res.json()["data"]
print(profile["followers"], profile["view_count"])Run it live — swap MrBeast for any channel to see the sign-up gate
What each stored video carries
Stored channels only
These three endpoints read channels we have already crawled, so a channel we never crawled answers 404 and costs nothing. To read a channel as it is now, use the YouTube channel API and the YouTube channel videos API.
| Metric | Available here? |
|---|---|
| Subscriber count | Yes — followers on the profile |
| Lifetime channel views | Yes — view_count on the profile |
| Per-video view count | Yes — views on each video |
| Video title, description, length, category, keywords, thumbnail | Yes |
| Video publish date | Yes, posted_at on each video |
| Video like count | Yes, likes on each video |
| Video comment count | Often null, because a watch page read does not always carry it |
| Chronological ordering | Yes, the videos list is newest first |
A channel's videos, newest first
The videos endpoint returns the videos we have stored for the channel, newest first, up to 100 a page for a flat $0.0005, controlled by limit (default 30). Each item has youtube_video_id, title, description, views, likes, comments, posted_at, length_seconds, is_short, is_live_content, category, keywords, and thumbnail_url. Videos with no publish time come last, and the stats endpoint gives the top 5 by views. To read what those videos say, the YouTube transcription API guide pulls each video's captions with timestamps for $0.0005 a video.
const res = await fetch(
"https://api.virev.ai/v1/youtube/videos?q=UCX6OQ3DkcsbYNE6H8uQQuVA&limit=10",
{ headers: { Authorization: "Bearer kb_live_..." } },
);
const { data, meta } = await res.json();
// newest first; send data.next_cursor back as cursor while data.has_more is true
console.log(data.videos[0].posted_at, data.videos[0].likes, meta.cost);The limit is a ceiling, not a multiplier: 10 videos and 100 videos cost the same flat $0.0005 a page. Ask for 100, and send next_cursor back as cursor while has_more is true.
View analytics for the whole channel
For a rollup, GET /v1/youtube/stats computes across the tracked corpus: tracked_videos, plus total, average, max, and median views, avg_length_seconds, total_likes, total_comments, avg_engagement_rate (likes plus comments over views, averaged per video), and the top 5 videos by views. It is the fastest way to size a channel typical performance without paging the full video list yourself. One call, $0.0010.
Mind the two counts: tracked_videos is how many uploads we hold for the channel, while posts_count on the profile is the channel own all-time upload total — usually the larger number.
import requests
stats = requests.get(
"https://api.virev.ai/v1/youtube/stats",
params={"q": "@MrBeast"},
headers={"Authorization": "Bearer kb_live_..."},
).json()["data"]
print(stats["tracked_videos"], stats["avg_engagement_rate"])Getting the identifier right
One footgun worth calling out: YouTube handles are case-sensitive. @MrBeast and @mrbeast are not the same string to the resolver, and the wrong casing returns a 404 — which, to be clear, costs you nothing. When you can, store and query the stable UC... channel id instead; it never changes even if a creator rebrands their handle.
@handle— case-sensitive;@MrBeastand@mrbeastare different channels to the resolver.UC...channel id — the stable identifier; survives handle and display-name changes.- Full URL — paste any
youtube.com/@handleoryoutube.com/channel/UC...URL directly asq.
Analyze your first channel for a fraction of a cent
Pay $1, get a $5 balance — that is 10,000 profile lookups. No subscription, no quota units.
Get your API key →