SocialHolmes
YouTube

YouTube channel API: subscribers, videos, uploads

How to get YouTube channel stats by API: subscriber and video counts, the latest uploads, Shorts and playlists, and why every public subscriber count is rounded.

The short answer

  1. Google's API returns channel stats by channel ID for 1 quota unit a call, inside the free daily quota.
  2. Subscriber counts are rounded to three significant figures for every channel you don't own, from any source.
  3. By handle, no quota: send a handle such as @MrBeast and get the channel's name, subscribers and video count back as one row.
1
quota unit per channel call on Google's API
3
significant figures in public subscriber counts
11
public YouTube endpoints here
$0.50
per 1,000 results here, no quota

Read this as

Developer

The channel endpoint takes a handle with or without the @. Subscriber and video counts come back as the text YouTube shows, for example '1.2M subscribers', so parse them if you need numbers.

Example Channel rows for 2,000 handles cost $1.

Marketer

To compare competitors, pull each channel's row once a week and keep it. The change in subscribers between runs is the growth chart YouTube does not give you.

Example 20 competitors checked every week for a year is 1,040 rows: $0.52.

Agency

Vet a creator by their last 30 uploads, not their subscriber count. The videos endpoint returns view counts per upload, which shows whether the audience still watches.

Example 30 uploads for each of 50 creators is 1,500 rows: $0.75.

Researcher

Rounded subscriber counts are fine for size bands and weak for small changes. Record the text exactly as returned, with the date, and say in the method which rounding applies.

Example Channel rows for 10,000 channels cost $5.

A YouTube channel API returns a channel's public details: name, handle, description, subscriber count and video count, plus its uploads, Shorts, live streams and playlists as separate lists.

How do I get channel stats from Google's YouTube API?

Call channels.list with the statistics part and the channel ID, or with forHandle and the handle. Each call costs 1 unit of the 10,000 free units a day, so checking a few hundred channels daily is free. Two things catch people out. The subscriber count is rounded for any channel you don't own, and a channel can hide its count entirely, in which case the API says so instead of returning a number.

Why is the subscriber count rounded?

Since 2019 YouTube has shown public subscriber counts rounded to three significant figures, and Google's API returns the same rounded figure. A channel with 1,234,567 subscribers shows as 1.23M everywhere. Only the owner sees the exact number, in YouTube Studio.

Real subscribers What every API shows
8,734 8.73K
56,290 56.2K
1,234,567 1.23M
48,600,000 48.6M

What does a channel row look like here?

Channel rows

Username Full name Subscriber count text Video count text Is verified
@kitchenlab Kitchen Lab 412K subscribers 638 videos true
@trailrunnerdiaries Trail Runner Diaries 38.4K subscribers 214 videos false
@pixelbench Pixel Bench 1.27M subscribers 902 videos true
[
  {
    "username": "@kitchenlab",
    "full_name": "Kitchen Lab",
    "subscriber_count_text": "412K subscribers",
    "video_count_text": "638 videos",
    "is_verified": true
  },
  {
    "username": "@trailrunnerdiaries",
    "full_name": "Trail Runner Diaries",
    "subscriber_count_text": "38.4K subscribers",
    "video_count_text": "214 videos",
    "is_verified": false
  },
  {
    "username": "@pixelbench",
    "full_name": "Pixel Bench",
    "subscriber_count_text": "1.27M subscribers",
    "video_count_text": "902 videos",
    "is_verified": true
  }
]
Source: Illustrative rows. Field names as the API returns them. Each row also carries the channel ID, URL, description, keywords and avatar.

What else can I list for a channel?

You want Endpoint
Channel details and counts channel, with the handle.
Latest uploads with view counts videos, newest first, with a limit.
Shorts only shorts, from the channel's Shorts tab.
Past and current live streams live, with a limit.
Playlists, then the videos in one playlists, then playlist with the playlist ID.
Channels it features channels, from the channel's own list.

How do I track a channel's growth over time?

YouTube does not publish a channel's subscriber history to anyone but the owner. Run the channel endpoint on a schedule, keep every row with its date, and the history starts on your first run. A monitor in the dashboard can run it for you weekly.

Weekly competitor tracking

25 channels
52 weekly checks
1,300 rows
$0.65 at $0.50 per 1,000

One row per channel per check.

What can SocialHolmes return for YouTube?

YouTube

Public endpoints: 11

Endpoint What it returns Takes
channel Channel details — name, handle, subscriber and video counts. handle
channels Channels this channel features or subscribes to publicly. handle
videos A channel's uploads, newest first. handle
shorts A channel's Shorts. handle
live A channel's live streams, past and present. handle
playlists A channel's playlists — title, video count and owner. handle
playlist The videos inside one playlist. playlist_id
video One video's full record — description, counts, keywords, channel. video_id
comments Top-level comments on a video. video_id
hashtag Videos under a hashtag. tag
search Keyword search. query

What SocialHolmes costs

$0.50 per 1,000 results on every YouTube endpoint, with no quota, no subscription and no monthly minimum. A run that returns nothing costs nothing. If your channel checks fit inside Google's free quota, use Google's API; we are for the rest.

Questions people ask

How do I get a YouTube channel's subscriber count with an API?

Call Google's channels.list with the statistics part, or the channel endpoint here with the handle. Both return the public count, rounded to three significant figures.

Can I get the exact subscriber count of a YouTube channel?

Only for a channel you own, in YouTube Studio or through the YouTube Analytics API. Every public source shows the rounded figure.

Can I look up a YouTube channel by handle?

Yes. Google's API accepts a handle through forHandle, and the channel endpoint here takes a handle with or without the @.

Does the YouTube channel API cost money?

Google's costs 1 quota unit per call, inside 10,000 free units a day. Here a channel row is billed at $0.50 per 1,000, with no quota.

Can I see a YouTube channel's subscriber history?

Not from YouTube, unless you own the channel. Check the channel on a schedule and keep each result to build one.

Posts are published in English only. The rest of the site reads in ten languages; these do not, because a translated archive is one nobody keeps current.

Try it on your own targets

The only comparison that settles anything is your own. A new account gets 1,000 credits, needs no card, and runs on the same endpoints and rate as a paying one.