Dev.to WebDev 🛠 Dev 👁 0 📖 9 min read

YouTube Data API v3: API key, quota and pricing

Getting a YouTube Data API key takes a few minutes, but the quota is what decides whether your project works at scale. This guide covers the key, the quota table (including the recent search.list change), what subscriber

Getting a YouTube Data API key takes a few minutes, but the quota is what decides whether your project works at scale. This guide covers the key, the quota table (including the recent search.list change), what subscriberCount actually returns, and when the official API is the right tool. To get a YouTube API key, create a project in the Google Cloud console, enable YouTube Data API v3 in the API Library, then create an API key on the Credentials page. The default quota is 10,000 units a day, and reading one channel costs 1 unit. Google lists no per-call price; the cost is the quota.

How to get a YouTube API key

You get a YouTube API key by creating a Google Cloud project, enabling YouTube Data API v3 in it and generating a key on the Credentials page. The steps below follow Google's getting started guide as of November 2026.

  1. Open the Google Cloud console and create a project, or pick an existing one.
  2. Open the API Library, search for YouTube Data API v3 and enable it for the project.
  3. In the Credentials page, choose Create credentials, then API key. Copy the key.
  4. Send it as the key query parameter on any request for public data, as in the request below.
  5. For methods that act for a signed-in user, create OAuth 2.0 credentials instead. A key alone cannot authorize them.

Treat the key as a server-side secret. Anyone who holds it spends your project's quota. This is Google's own request for a channel's statistics by handle:

Official YouTube Data API v3

curl "https://www.googleapis.com/youtube/v3/channels?part=statistics&forHandle=@MrBeast&key=$YT_API_KEY"

YouTube Data API quota

Every Google Cloud project starts with a YouTube Data API quota of 10,000 units a day, and the counter resets at midnight Pacific time (quota cost table). Each method spends a fixed number of units per call.

Source: Google, determine quota cost and the search.list reference, as of November 2026.

Method Units per call What it means in practice
channels.list 1 Up to 10,000 single-channel reads a day at the default quota.
videos.list 1 Up to 10,000 video reads a day, shared with the same quota.
search.list 1 Own Search Queries bucket since 1 June 2026, capped at 100 calls a day.

Many guides still say a search costs 100 units. That changed. Since 1 June 2026, search.list costs 1 unit but lives in a separate bucket limited to 100 calls a day, according to the method's revision history. For creator discovery or any search-driven tool, that cap binds first.

A worked budget, as an illustration. Refreshing 5,000 channels once a day with channels.list uses 5,000 units, half the default quota, and leaves 5,000 for video reads. A discovery job that runs 150 searches a day is over the search cap by itself, whatever is left of the 10,000 units.

To raise the limit you apply for it. Google starts with a compliance review through the Audit and Quota Extension Form, so plan for a review step before launch if you expect volume.

Is the YouTube Data API free?

Google does not list a per-call price for the YouTube Data API; the cost is the quota. There is no meter to pay down, but once the daily units are spent, further calls are refused until the counter resets.

That makes the real price a mix of engineering time and review time: a Cloud project to maintain, keys to rotate, quota to budget across jobs, and an audit if you outgrow the default. For one app reading a few thousand channels a day that is usually fine. For a pipeline that sweeps tens of thousands of channels, the unit budget and the search cap shape the architecture.

Handles API meters in credits instead of quota units. A catalog read costs 1 credit and a live read costs 2 credits, and a failed call is not charged. The Free trial is 100 credits once, with no card. Details are in credits and limits and on the pricing page.

What subscriberCount returns

The YouTube Data API rounds subscriberCount down to three significant figures, and a channel can hide the number entirely (channels resource). A channel with 1,234,567 subscribers is therefore reported as 1,230,000. That is an illustration of the rule, not a real channel.

When a channel hides its count, hiddenSubscriberCount is true and the count is not available. Handles API serves the count YouTube publishes, so the same rounding applies and we do not model a more precise number. A hidden count comes back as hidden_subs with no number, and we never estimate it.

One more date to note: since 16 November 2026, co-views count toward public view counts, per the YouTube Data API revision history. If you store a view series yourself, mark that date so a step in the data is not read as organic growth.

To look up one channel without writing code, try the free YouTube subscriber count tool. To turn views into an earnings estimate, there is a YouTube money calculator.

YouTube Data API vs Handles API

Handles API reads public YouTube channel data from its own catalog of about 97K channels, over one REST key. The table compares it with the official API on what matters when you are choosing between them. It is an independent service, not affiliated with Google or YouTube.

Official column from Google's YouTube Data API documentation, as of November 2026. Credit and plan figures from Handles API plans.

Area YouTube Data API v3 Handles API
Setup Google Cloud project, API enabled, API key. OAuth for user-authorized methods. One key from signup. No Cloud project.
Limits and cost 10,000 quota units a day by default; search.list capped at 100 calls a day. No per-call price listed. Credits: 1 per catalog read, 2 per live read. Paid plans from $29 a month, a one-time 100 credit trial.
Subscriber count Rounded down to three significant figures. The count YouTube publishes, same rounding. Not estimated.
Hidden subscribers hiddenSubscriberCount boolean. hidden_subs flag and no number.
Daily history Not offered for channels you do not own; you poll and store your own series. A daily series of lifetime views per channel, kept in the catalog.
Benchmark None. Views per day ranked against channels in the same subscriber band.
Uploads, comments, OAuth Yes. No. Read-only, public data.
Coverage Any public channel you can address. About 97K channels. Not every channel that exists.

This is a real catalog response for the same channel as the official request above, captured from the live API. Note the fields: counts, hidden_subs, language, country and category.

curl "https://api.handlesapi.com/v1/directory/youtube/MrBeast" \
  -H "Authorization: Bearer $HANDLES_API_KEY"
const res = await fetch("https://api.handlesapi.com/v1/directory/youtube/MrBeast", {
  headers: { Authorization: `Bearer ${process.env.HANDLES_API_KEY}` },
});
const { data, meta } = await res.json();
import os
import requests

res = requests.get(
    "https://api.handlesapi.com/v1/directory/youtube/MrBeast",
    headers={"Authorization": f"Bearer {os.environ['HANDLES_API_KEY']}"},
    timeout=30,
)
body = res.json()
{
  "data": {
    "platform": "youtube",
    "object": "channel",
    "record": {
      "channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
      "handle": "mrbeast",
      "title": "MrBeast",
      "subscriber_count": 528000000,
      "view_count": 148301355934,
      "video_count": 990,
      "hidden_subs": false,
      "published_at": "2012-02-20 00:43:50+00",
      "language": "en",
      "country": "US",
      "category": "gaming"
    }
  },
  "meta": {
    "source": "catalog",
    "request_id": "req_e5a0fb8d990807fb",
    "generated_at": "2026-11-26T13:54:53.792Z",
    "took_ms": 7
  }
}

Real response from the live API, captured Nov 26, 2026. 10 more record fields trimmed for space. Long strings and arrays are shortened.

Benchmark a channel without storing history

The benchmark endpoint, GET /v1/insights/youtube/{handle}/benchmark, ranks a channel's views per day against channels in the same subscriber band. With the official API you would have to snapshot lifetime views for the channel and for its peers every day to answer the same question.

Request (curl)

curl "https://api.handlesapi.com/v1/insights/youtube/MrBeast/benchmark" \
  -H "Authorization: Bearer $HANDLES_API_KEY"

Request (Node)

const res = await fetch("https://api.handlesapi.com/v1/insights/youtube/MrBeast/benchmark", {
  headers: { Authorization: `Bearer ${process.env.HANDLES_API_KEY}` },
});
const { data, meta } = await res.json();

Request (Python)

import os
import requests

res = requests.get(
    "https://api.handlesapi.com/v1/insights/youtube/MrBeast/benchmark",
    headers={"Authorization": f"Bearer {os.environ['HANDLES_API_KEY']}"},
    timeout=30,
)
body = res.json()

For a first batch of 1,000 catalog reads, plan costs work out like this.

Plan price divided by included credits. A catalog read costs 1 credit, a live read 2 credits. The Free trial is 100 credits once, no card.

Plan Monthly price Credits 1,000 catalog reads 1,000 live reads
Handles API Starter $29 15,000 $1.93 $3.87
Handles API Pro $99 75,000 $1.32 $2.64
Handles API Business $299 300,000 $1.00 $1.99
Handles API Scale $799 1,200,000 $0.67 $1.33

Rate limits work per minute rather than per day. The Free plan allows 10 requests a minute, and paid plans run from 120 to 1,200 a minute. Pagination on list endpoints uses a cursor you follow until it is null, described in pagination.

When to use the official YouTube Data API

Use the official YouTube Data API whenever you need more than public channel numbers. It is the right tool for:

  • Uploading and managing videos, playlists and comments.
  • Reading data from channels that authorize your app through OAuth.
  • Any public channel, including ones outside our catalog.
  • Products that must source data from Google directly.

Know the limits of a catalog before you rely on it. Records are as fresh as the last crawl, and each carries a last_seen timestamp so you can check. Private data, writes and channels that are not in the catalog are out of reach, and the Free trial of 100 credits is a good way to test coverage on your own list of channels first.

Use a data API when the job is reading public stats for many channels, ranking them or tracking them over time, and you would rather budget credits than quota units. Nothing stops you from using both: the official API for writes and owner data, Handles API for read-heavy stats.

The same question comes up on other platforms. See the Instagram Graph API comparison and the TikTok Research API comparison. For the wider picture of collecting public social data, including the rules, read social media scraping: methods and limits.

Frequently asked questions

How do I get a YouTube API key?

Create a project in the Google Cloud console, enable YouTube Data API v3 from the API Library, then open the Credentials page and choose Create credentials and API key. Send the key as the key parameter on requests for public data. Methods that act for a signed-in user need OAuth 2.0 instead.

What is the YouTube Data API quota?

The default quota is 10,000 units per day for each project, reset at midnight Pacific time. Reading a channel with channels.list costs 1 unit and so does videos.list. Since June 2026, search.list has its own bucket: 1 unit per call, capped at 100 calls a day.

Is the YouTube Data API free?

Google does not list a per-call price for the YouTube Data API. The cost is the quota: once the daily units are used, further calls are refused until the reset. A higher limit is not bought, it is requested through a compliance audit using the Audit and Quota Extension Form.

How much quota does a YouTube search use now?

As of November 2026, one search.list call costs 1 unit, not the 100 units older guides quote. The catch is that searches count against a separate Search Queries bucket that allows 100 calls per day, so search-heavy tools hit that cap long before the 10,000 unit quota.

Why is a YouTube subscriber count rounded?

The YouTube Data API returns subscriberCount rounded down to three significant figures, so 1,234,567 subscribers is reported as 1,230,000. Channels can also hide the number, in which case hiddenSubscriberCount is true. Views are not rounded, which makes them the better series to track over time.

Can I read YouTube channel data without a Google Cloud project?

Yes, with a data API that serves public channel records from its own catalog. Handles API needs only its own key and a credit balance, with no quota units to manage. It is read-only and covers about 97K channels, so uploads, comments and OAuth data still need the official API.

Originally published at handlesapi.com/compare/youtube-data-api.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.