YouTube Data API v3
by Google
Search and read YouTube from your app.
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_cost2. Commercial use
“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 .”
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.
developers.google.com/youtube/terms/developer-policies3. Key & sign-up
“A request that doesn't provide an OAuth 2.0 token must send an API key .”
API key in the key query parameter for public data; OAuth 2.0 access token for uploads, edits and private data
developers.google.com/youtube/registering_an_applicationChecked 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
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
Default quota: 10,000 units per day, plus 100 search.list calls and 100 videos.insert calls per day
No monthly plan
search.list: 1 quota per call (100/day); videos.list: 1 unit
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
100 search.list calls, 100 videos.insert calls and 10,000 units a day for all other methods; reset at midnight Pacific Time
At most 500 videos
From the official docs. developers.google.com/youtube/v3/determine_quota_cost
Key and access
API key in the key query parameter for public data; OAuth 2.0 access token for uploads, edits and private data
YOUTUBE_API_KEYNo
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.
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
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
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
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
The daily quota is used up.
Stop and retry after midnight Pacific Time; cache results, or apply for a quota extension.
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.
A required parameter, such as part, is missing.
Fix the request; do not retry unchanged.
The video has comments turned off.
Skip this video; no retry.
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
2 of 6: llms.txt no, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes
Checked Nov 13, 2026.
Community servers only
npm install googleapispip install google-api-python-clientAlternatives
YouTube Data API v3 This page
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).
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).
Pick Tavily when an agent needs web search, extract and crawl results ready for a language model.
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.”
Create a project in the Google Cloud console and enable the YouTube Data API v3.
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
Install the Google client library for your language and make a first read request.
pip install --upgrade google-api-python-client
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){
"videos" : [
{
"id" : "7lCDEYXw3mM" ,
"snippet" : {
"publishedAt" : "2012-06-20T22:45:24.000Z" ,
"channelId" : "UC_x5XG1OV2P6uZZ5FSM9Ttw" ,
"title" : "Google I/O 101: Q&A On Using Google APIs" ,
"categoryId" : "28"
},
"statistics" : {
"viewCount" : "3057" ,
"likeCount" : "25" ,
"commentCount" : "12"
}
}
]
}Mistakes to avoid
Search has its own small pool of 100 calls a day, and every extra results page costs another call.
The developer policies forbid keeping such statistics longer than 30 days without the owner's authorization.
Insert, update and delete always need the user's authorization.
The policies forbid downloading or storing copies of YouTube content without written approval.
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.