Reference · Social media APIs for developers

YouTube Analytics API: the metrics you can pull and the quota

By Antoine Blanco··7 min read

The YouTube Analytics API answers one call, reports.query, with views, watch time, engagement and revenue for a channel you own. It is not the Data API, which lists and uploads videos. Non monetary metrics need the yt-analytics.readonly scope. Every metric name and quota figure below was checked in Google's docs on December 1, 2026.

Three Google APIs, not one

Most of the confusion around YouTube analytics comes from picking the wrong API. There are three, and they do different jobs:

API What it is for Shape of the answer
YouTube Data API v3 Listing, searching, uploading, updating videos and playlists Resources: video, channel, playlist objects
YouTube Analytics API v2 Targeted, real time queries for custom reports Rows of metrics by dimension, on demand
YouTube Reporting API v1 Bulk reports you schedule, download and store Large CSV files, filtered locally

Google's own framing: the Analytics API supports targeted, real time queries to generate custom reports in response to user interaction, while the Reporting API suits applications that retrieve and store bulk reports then filter, sort and analyze the data themselves.

Pick the Analytics API when a dashboard asks a question. Pick the Reporting API when you want every row of yesterday in your own warehouse. The Data API holds no watch time at all; if you are hunting estimatedMinutesWatched there, that is why you cannot find it.

The metrics you can pull

From the YouTube Analytics dimensions and metrics reference, checked December 1, 2026:

Category Metric names
Views views, engagedViews, playlistViews, redViews, viewerPercentage
Watch time estimatedMinutesWatched, estimatedRedMinutesWatched, averageViewDuration, averageViewPercentage
Engagement comments, likes, dislikes, shares, subscribersGained, subscribersLost, videosAddedToPlaylists, videosRemovedFromPlaylists
Revenue and ads estimatedRevenue, estimatedAdRevenue, estimatedRedPartnerRevenue, grossRevenue, cpm, playbackBasedCpm, adImpressions, monetizedPlaybacks

Revenue figures come back in USD by default. The currency parameter takes a three letter ISO 4217 code and is ignored if you ask for no revenue metric, so passing it on a views only query is harmless.

Two names trip people up. redViews and estimatedRedMinutesWatched are YouTube Premium figures, not a colour code. And engagedViews is a separate metric from views, so a report that mixes them without labelling the columns will not reconcile with the numbers in YouTube Studio.

The scopes that gate them

This is where a YouTube API analytics integration usually breaks. Five scopes touch the Analytics API, and they are not interchangeable:

Scope What it grants
https://www.googleapis.com/auth/yt-analytics.readonly Non monetary metrics through reports.query, and groups.list
https://www.googleapis.com/auth/yt-analytics-monetary.readonly Monetary and revenue metrics. No standalone access to groups
https://www.googleapis.com/auth/youtube.readonly View the account, non monetary reports.query
https://www.googleapis.com/auth/youtube Manage the account, non monetary reports.query, plus create and delete groups
https://www.googleapis.com/auth/youtubepartner Manage assets and content, non monetary reports.query

Three things worth writing down before you build. Revenue metrics need the monetary scope, and asking for estimatedRevenue with only yt-analytics.readonly fails rather than returning zeros. Listing the items inside an analytics group needs yt-analytics.readonly paired with youtube.readonly, since neither grants groupItems.list alone. And the reports.query reference now states that requests to the method require the youtube.readonly scope, so request it alongside the analytics scope rather than discovering the dependency in production.

For content owner requests, the monetary scope is not enough on its own either: the account needs a Content Manager role that includes revenue viewing permission.

The one call: reports.query

A YouTube channel analytics API integration is essentially one endpoint. From the reports.query reference:

Required parameters:

Optional, and where the power is:

One limit to plan around: audience retention reports, meaning dimensions=elapsedVideoTimeRatio, accept a filter on a single video ID. Retention for 40 videos is 40 requests, not one.

What a request costs in quota

Quota is the part people discover after shipping. The Data API's default allowance, from Google's getting started guide, is 100 search.list calls, 100 videos.insert calls, and 10 000 units per day combined for every other endpoint. Costs per operation:

Operation Quota units
Read, a list call retrieving resources 1
Write, meaning create, update or delete 50
Search query 1
Video upload 1

So a dashboard that reads is cheap and a tool that writes metadata is 50 times more expensive per call. The trap is search.list: capped at 100 calls a day regardless of your unit balance. If your sync walks a channel with search.list instead of playlistItems.list on the uploads playlist, you will hit the ceiling before lunch on a 200 video channel.

The Analytics API carries its own quota, visible and adjustable in the Google Cloud console for your project rather than published as a single number in the docs. Treat reports.query as cheap but not free: cache a day's rows once it is final instead of re-querying per page view. If you need a key in the first place, how to get a YouTube API key walks the console steps.

What the API will not do

It is read only, by design. There is no analytics endpoint that posts a video, replies to a comment or sends a message. Publishing lives in the Data API, comments live in the Data API, and neither is reachable with an analytics scope.

It is also one platform. Pulling watch time from YouTube, reach from Instagram and impressions from LinkedIn means three OAuth flows, three metric vocabularies and three quota models, which is the actual work in any cross platform report. The social media analytics API page covers how the aggregators normalise that, and the social media API guide covers the publishing side.

That normalising is what PlugKit does: one API key, one metrics shape across Instagram, Facebook, LinkedIn, TikTok, YouTube, X, WhatsApp and Telegram, at $49 a month for 5 connected accounts, cancel anytime, or $97 for 30. Seven days free, a card at sign up, nothing charged before day 7. Checked on www.plugkit.co on December 1, 2026. If you only ever report on YouTube, call reports.query yourself and keep the money; one platform is exactly the case where an aggregator earns nothing. To let an agent read those numbers in a chat instead of a dashboard, see the YouTube MCP server.

FAQ

What is the difference between the YouTube Data API and the YouTube Analytics API?

The Data API manages content: it lists, searches, uploads and updates videos, playlists and channels. The Analytics API reports on performance: views, watch time, engagement and revenue, through reports.query. Watch time is not available anywhere in the Data API, which is the usual reason a search for it comes up empty.

What scope do I need for the YouTube Analytics API?

https://www.googleapis.com/auth/yt-analytics.readonly for non monetary metrics, and https://www.googleapis.com/auth/yt-analytics-monetary.readonly for revenue. The reports.query reference also states the method requires https://www.googleapis.com/auth/youtube.readonly, so ask for both. Listing items in an analytics group needs the analytics scope paired with youtube.readonly.

Is the YouTube Analytics API free, and what is the quota?

There is no charge for calls. The Data API ships a default daily allowance of 100 search.list calls, 100 videos.insert calls and 10 000 units for everything else, where a read costs 1 unit and a write costs 50. The Analytics API has its own project quota, which you view and request increases for in the Google Cloud console.

Can I get analytics for a channel I do not own?

No. Requests must be authorized by the channel or the content owner that owns the data, so channel==MINE or a channel your credentials administer. Public figures such as view counts on a video are available through the Data API instead, and private metrics like watch time and revenue are not available for channels you do not control.

How many videos can I query at once?

The video, playlist and channel filters accept up to 500 IDs in a single request, and an analytics group can hold up to 500 channels, videos, playlists or assets. The exception is audience retention, dimensions=elapsedVideoTimeRatio, which accepts one video ID per request.

AB
Antoine BlancoFounder of PlugKit. Runs his own Instagram, YouTube and X accounts through the API and MCP server described here.

One plug for every platform your agent touches

$49 a month for 5 connected accounts, cancel anytime. Every feature in every plan.

Get your API key →
English ▾