YouTube Data API for public channel stats
SocialLens (sociallens.dev) is an independent API, not Google's official YouTube Data API v3. One Bearer key returns the subscriber count, total views, videos and comments of any public channel as JSON.
curl "https://api.sociallens.dev/v1/profile?username=youtube&platform=youtube" \ -H "Authorization: Bearer sk_live_YOUR_KEY"
{
"exists": true,
"username": "YouTube",
"platform": "youtube",
"nickname": "YouTube",
"verified": true,
"private": false,
"followers": 46800000,
"is_exact": false,
"likes": 1449086600,
"videos": 1742,
"bio": "YouTube's official YouTube channel",
"id": "UCBR8-60-B28hp2BmDPdntcQ",
"fetched_at": "2026-11-29T04:53:56Z",
"credits": { "source": "paid", "charged": 1 }
}
Real response, read on November 29, 2026. Trimmed for space: the avatar URL, the external link, null fields, cache flags and the credit balance are left out. On YouTube followers is the subscriber count and likes is the total channel views.
What the YouTube data API returns
One schema, one Bearer key. Every call costs one credit.
Subscriber count and channel totals
YouTube publishes a rounded subscriber figure, so followers is that number and is_exact is false. Total channel views and video count come in the same read.
Channel videos
The latest videos of a channel, each with its views, likes and comment count.
Video metrics and comments
Views, likes and comments of any video by URL, Shorts included. /v1/post-comments returns its public comments.
Pricing
1 credit = 1 request. The same credits work on YouTube and on every other network. They never expire and have no daily limit.
250 free reads to get started
One time, no card required. When they run out, buy a pack below and keep calling.
Starter US$ 2.38, Pro US$ 1.98, Scale US$ 1.66 per 1,000 reads, paid once. If the source is unavailable you get a 503 and no credit is charged. Full pricing
What it does not do. Public data only: no video or keyword search, no audience demographics, no fake subscriber detection and no subscriber list.
Guides and reference: Why the YouTube subscriber count is rounded·Likes, views and comments for any post by URL·YouTube endpoint reference