Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

YouTube Data API v3

by Google

Search and read YouTube from your app.

Web search APIs

WebsitePricingGitHub

1. Price

Free tier: Default quota: 10,000 units per day, plus 100 search.list calls and 100 videos.insert calls per day. As reported on the official pricing page, checked Oct 10, 2026.

developers.google.com/youtube/v3/determine_quota_cost

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What YouTube Data API v3 does

The YouTube Data API is Google's official way for your app to work with YouTube. It can search videos, read titles, view counts and comments, and, with the channel owner's permission, upload videos or change playlists. There is no price list; instead each project gets a free daily allowance of requests.

  • YouTube Data API v3 is one of 27 APIs in the Web search APIs category on AgentGid.
  • It is one of 20 that can be started for free.
  • 13 of them ship an official MCP server; YouTube Data API v3 does not.
  • Its official SDK is the 1st most downloaded in the category (43.3M a week).

What people build with it

Video search on your site

Let visitors search YouTube from your page, for example cooking videos for a recipe, and show the results as a list.

Show view and like counts

Display up-to-date views, likes and duration next to the videos you feature, such as your own course videos.

Read comments under a video

Collect the comments on your videos to answer questions, spot common requests or flag spam.

Upload videos from your app

Publish videos and set thumbnails on a channel from your own tool, after the channel owner signs in and allows it.

A channel's videos on your website Idea

List the latest videos of your channel or a playlist on your homepage, updated automatically.

Weekly stats for your channel Idea

Send yourself a short weekly summary of views and comments on your newest videos.

YouTube Data API v3 popularity

44.3M
SDK downloads a week
+9.6% on the 4-week average
220
public agent repos use its SDK
8,981
GitHub stars, googleapis/google-api-python-client
SDK downloads per weeknpm googleapis, pypi google-api-python-client 44,319,899

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

Default quota: 10,000 units per day, plus 100 search.list calls and 100 videos.insert calls per day

Cheapest plan

No monthly plan

Usage price

search.list: 1 quota per call (100/day); videos.list: 1 unit

Plans

Quota-based, no paid tier listed; more quota requires a Quota extension request form.

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy. developers.google.com/youtube/v3/determine_quota_cost

Limits

Default (every project)

100 search.list calls, 100 videos.insert calls and 10,000 units a day for all other methods; reset at midnight Pacific Time

Search results with channelId and type=video

At most 500 videos

From the official docs. developers.google.com/youtube/v3/determine_quota_cost

Key and access

How it signs in

API key in the key query parameter for public data; OAuth 2.0 access token for uploads, edits and private data

Environment variable
YOUTUBE_API_KEY
Safe in browser code
No, keep it on your server
Card at sign-up

No

Steps only a person can do

  • Sign in to Google Cloud, create a project, enable YouTube Data API v3 and create an API key (restricted). Put the key in .env as YOUTUBE_API_KEY and read it on the server.
  • For uploads or private data, set up an OAuth consent screen and an OAuth client ID. Use the client library's OAuth flow; each channel owner signs in once.
  • If 10,000 units or 100 searches a day are not enough, apply for a quota extension (with a compliance audit). Keep the same key; the new quota applies only to the approved use case.
  • Publish a privacy policy that says the app uses YouTube API Services and links to Google's privacy policy. Link it in the app before users reach YouTube features.

Commercial use and your data

The service is free to use within its daily allowance, under YouTube's terms and developer policies. You may sell an app that uses it, but you may not download YouTube videos or resell the service.

In a paid app
With conditions

You may sell an app that uses the API, but not the API access itself, and ads next to YouTube data need other content of real value on the same page.

“You may distribute or sell API Clients subject to the restrictions defined in the following "Prohibited Actions" subsection and, of course, to the other terms of the Agreement .” source

redistribute-files
No

Videos may not be downloaded, cached or stored; show them through the YouTube player.

“download, import, backup, cache, or store copies of YouTube audiovisual content without YouTube's prior written approval,” source

client-work
With conditions

Allowed when the client's app follows the policies, including its own privacy policy and the 30-day data rule.

“Each API Client must require users to agree to a privacy policy before users can access the API Client's features and functionality.” source

Keeps your data

Your app may keep YouTube data at most 30 days before refreshing or deleting it.

“After 30 calendar days, the API Client must either delete or refresh the stored data.” source

Errors to handle

403 quotaExceeded

The daily quota is used up.

Stop and retry after midnight Pacific Time; cache results, or apply for a quota extension.

403 forbidden

Access forbidden; the request may not be properly authorized.

Check the key, its restrictions and that the API is enabled; use OAuth for private data.

400 missingRequiredParameter

A required parameter, such as part, is missing.

Fix the request; do not retry unchanged.

403 commentsDisabled

The video has comments turned off.

Skip this video; no retry.

404 videoNotFound

The video ID does not exist or is not available.

Check the ID; remove the video from your stored list.

Use it from an agent

Our agent check

2 of 6: llms.txt no, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Community servers only

npm
npm install googleapis
PyPI
pip install google-api-python-client

Alternatives

YouTube Data API v3 This page

Free planFree tier

SerpApi

Pick SerpApi when you need results from Google and other search engines as structured data, at $25 per 1,000 searches in our catalog (list price on 2026-11-10).

See its pageNo free tier

Exa

Pick Exa when you need web search with page contents for an AI agent, at $4 per 1,000 requests in our catalog (list price on 2026-11-10).

See its pageNo free tier

Tavily

Pick Tavily when an agent needs web search, extract and crawl results ready for a language model.

See its pageNo free tier

All web search apis APIs

Get started

Tell your AI assistant

“Use the YouTube Data API v3 with google-api-python-client on the server: read YOUTUBE_API_KEY from .env, prefer videos.list over search.list to save quota, and cache results for at most 30 days.”

  1. Create a project in the Google Cloud console and enable the YouTube Data API v3.

    From developers.google.com/youtube/v3/getting-started

  2. Create an API key for public data and restrict it before production; reading private data or uploading needs an OAuth client instead.

    From developers.google.com/youtube/registering_an_application

  3. Install the Google client library for your language and make a first read request.

    pip install --upgrade google-api-python-client

    From developers.google.com/youtube/v3/quickstart/python

First request

Trimmed from Example 3 in the docs (description and thumbnails left out).

GET https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY&part=snippet,statistics&fields=items(id,snippet,statistics)

Mistakes to avoid

Calling search.list for every page view or to look up videos you already know.
Cache search results and use videos.list or playlistItems.list with known IDs (1 unit each, from the large daily pool).

Search has its own small pool of 100 calls a day, and every extra results page costs another call.

Keeping view or subscriber counts in your database for months.
Refresh or delete stored YouTube data within 30 days.

The developer policies forbid keeping such statistics longer than 30 days without the owner's authorization.

Trying to upload or edit with only an API key.
Use an OAuth 2.0 client and let the channel owner sign in and grant access.

Insert, update and delete always need the user's authorization.

Downloading videos or audio to process or replay them.
Embed the YouTube player and work only with the metadata the API returns.

The policies forbid downloading or storing copies of YouTube content without written approval.

Shipping an unrestricted API key in a public web page.
Call the API from your server, or at least restrict the key to your site and to the YouTube Data API.

Anyone who copies the key can use up your project's daily quota.

Questions

Does it cost money?

The docs list no prices; each project gets a daily allowance, and more can be requested through a form and review.

Do I need users to sign in with Google?

Not for public data such as search results and video details; an API key is enough. Uploads, edits and private data need the user's sign-in.

Can I save videos for offline viewing?

No. The policies forbid downloading or storing copies of YouTube videos and offering offline playback without YouTube's written approval.

When does the daily allowance reset?

At midnight Pacific Time.