YouTube Data API in 2026: Keys, Quota, Pricing and Uploads
YouTube Data API guide for 2026: API key vs OAuth, the new per-method quota buckets, whether it is free, the audit rule and how a video upload works.
The YouTube Data API (v3) is Google's official API for reading and managing YouTube videos, channels, playlists and comments. It has no price: you pay in quota. A project gets 100 uploads, 100 searches and 10,000 units for everything else per day. Public data needs an API key; uploads and edits need OAuth.
The YouTube Data API is the API behind almost every tool that uploads to YouTube, reads channel stats or searches videos from code. It is free to use, but every call spends quota, and since June 2026 that quota is split into separate buckets per method. A project that was planned around the old "10,000 units a day" number now has different limits for uploads, search and everything else.
This guide covers the YouTube Data API as it stands in November 2026, from the side of a developer who wants to publish: what the API can do, whether it costs anything, how the quota buckets work, when an API key is enough and when you need OAuth, and how a video upload actually goes through. YouTube is one of the twelve networks in our guide to social platforms with a posting API, and several of its rules changed in the last three months.
PostGate handles OAuth, publishing and delivery evidence for every network through one API. Start free or read the docs.
What is the YouTube Data API, and what can it do?
Google's YouTube Data API overview describes it as the API for applications that interact with YouTube. It works on resources such as videos, channels, playlists, playlist items, comments, captions, subscriptions, thumbnails and search results, with the usual list, insert, update and delete operations where each resource supports them.
For a product that publishes content, the methods that matter are few:
videos.insertuploads a video and sets its title, description, privacy and schedule.thumbnails.setapplies a custom thumbnail, including on Shorts since November 3, 2026.videos.updateedits metadata after the upload.playlistItems.insertadds the video to a playlist.videos.listandchannels.listread back status and statistics.
There is no separate "Shorts API". A Short is uploaded with the same videos.insert call as any other video. Community posts are the one gap: the November 16, 2026 entry in the API revision history adds a posts resource, but only for selected launch partners during a pilot, with broader access planned for 2027.
Is the YouTube Data API free?
Yes. Google publishes no price for the YouTube Data API, there is no paid tier and enabling it in the Cloud console has no billing step of its own. What limits you is quota, and quota cannot be bought. The quota and compliance audits guide says that to get more than the default allocation you must first pass an audit showing your project complies with the YouTube API Services Terms, by filling in the Audit and Quota Extension Form.
So when people search "YouTube API pricing", the honest answer is that the cost is time: the default quota while you build, then an audit and a quota request once real users arrive. Paid "YouTube APIs" you see in search results are third-party scrapers or data resellers, not Google's API.
How does the YouTube Data API quota work in 2026?
On June 1, 2026 Google started moving the API to a granular quota system, starting with videos.insert and search.list. The quota calculator now lists these defaults per project, all resetting at midnight Pacific Time:
| Bucket | Default per day | Cost per call |
|---|---|---|
Video uploads (videos.insert) | 100 calls | 1 |
Search (search.list) | 100 calls | 1 per page of results |
videos.batchGetStats | 10,000 units (own bucket since June 3, 2026) | 1 |
| Everything else | 10,000 units combined | Reads 1, most writes 50, captions.insert 400 |
Three details trip people up. Every request costs at least one unit, including invalid ones, so a retry loop that keeps sending a bad request still drains the pool. Paging through search results costs a call per page. And an upload flow spends from two buckets: the upload itself from the 100-call bucket, then thumbnails.set (about 50 units) and playlistItems.insert (50 units) from the shared 10,000.
In practice, a project on default quota can upload 100 videos a day across all of its users, not per channel. If your product has 20 connected channels posting 6 videos a day, you are over the limit before lunch. The YouTube quota cost per upload page explains why the old "1,600 units per upload" figure still circulates, and how to handle a 403 quotaExceeded covers what the error looks like when the bucket runs out.
Do you need a YouTube API key or OAuth?
It depends on whose data you touch. An API key, created in the Google Cloud console for a project with the YouTube Data API enabled, is enough for list calls on public data: public videos, channels, playlists and search. The overview is explicit that operations which insert, update or delete resources always require user authorization.
That means uploading, setting thumbnails and editing videos all need an OAuth 2.0 access token from the channel owner. For uploads the narrowest scope is https://www.googleapis.com/auth/youtube.upload; youtube and youtubepartner also work for videos.insert. You also need refresh tokens that survive, because a publishing product runs long after the user closed the consent screen. When a refresh token dies, the token endpoint answers invalid_grant and the channel has to reconnect.
A free API key has the same quota as an OAuth project, because quota belongs to the Cloud project, not to the credential type. Searching "YouTube API key free" gets you a key in minutes; it does not get you more than 100 searches a day.
How do you upload a video with the YouTube Data API?
Uploads go through videos.insert on the /upload/youtube/v3/videos endpoint. The videos.insert reference accepts files up to 256 GB with any video/* MIME type. For anything bigger than a short clip, use the resumable protocol: one request opens a session with the metadata, the next sends the bytes, and a dropped connection resumes from the last confirmed byte instead of starting over.
# YouTube Data API: resumable upload in two requests
# Token needs the https://www.googleapis.com/auth/youtube.upload scope
# 1. Start the session with the metadata; YouTube answers with a Location header
curl -i -X POST \
"https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json; charset=UTF-8" \
-H "X-Upload-Content-Type: video/mp4" \
-d '{
"snippet": { "title": "Launch demo", "description": "Scheduled from our app", "categoryId": "28" },
"status": {
"privacyStatus": "private",
"publishAt": "2026-11-24T14:00:00Z",
"selfDeclaredMadeForKids": false
},
"paidProductPlacementDetails": { "hasPaidProductPlacement": false }
}'
# -> HTTP/1.1 200 OK
# -> Location: https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&upload_id=UPLOAD_ID
# 2. Send the bytes to that URL (retry from the last byte YouTube confirms if it drops)
curl -X PUT "UPLOAD_URL_FROM_LOCATION" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: video/mp4" \
--data-binary @launch-demo.mp4
# -> { "kind": "youtube#video", "id": "VIDEO_ID", "status": { "uploadStatus": "uploaded", ... } }A few fields decide whether the video ends up where you expect:
status.privacyStatusdefaults topublicwhen you leave it out, although some uploads might still default to private because of the creator's account settings.status.publishAtschedules the release, and it can only be set while the video isprivateand has never been published. A time in the past publishes immediately.paidProductPlacementDetails.hasPaidProductPlacementno longer defaults tofalsesince November 16, 2026. If the video has no paid placement, sendfalseexplicitly.
If you want the raw request without the resumable session, the YouTube Data API v3 upload walkthrough shows the minimum body and response.
What changed in the YouTube Data API in late 2026?
Most articles about the YouTube Data API predate these changes, so check any tutorial against this list:
- June 1: per-method quota buckets, starting with
videos.insertandsearch.listat 100 calls a day each. - September 14: the thumbnail size limit for
thumbnails.setwent from 2 MB to 50 MB. - November 2: uploads from unverified API projects are no longer locked to private. The 2020 rule that kept every upload private until the project passed an audit is gone.
- November 3: custom thumbnails for Shorts, after processing has finished.
- November 16: the paid product placement default above, plus the
postspilot.
The November 2 change matters most for new products. Before it, an unaudited project could only test with private uploads; now it can publish publicly from day one and needs the audit only when 100 uploads a day stop being enough. TikTok went the other way and still keeps unaudited apps private, as our TikTok API guide explains.
Should you build on the YouTube Data API directly?
If YouTube is your only channel, build directly. The API is free, the client libraries handle resumable uploads, and the November changes removed the worst early blocker. Budget for what sits around it: OAuth with durable refresh tokens, a resumable uploader with retries, a scheduler that respects the 100-upload bucket across all users, and the audit form once you grow.
If YouTube is one destination among several, that layer is what PostGate's YouTube integration covers. Channels connect through hosted OAuth and one POST /api/posts uploads now or at a scheduled_at time. The options.youtube object takes the fields YouTube requires (title, privacy, made-for-kids and a Community Guidelines confirmation) plus publish_at for YouTube's own scheduler, has_paid_product_placement, is_ai_generated and a custom thumbnail (PostGate accepts JPEG or PNG up to 2 MB there).
Frequently asked questions
Is the YouTube Data API free?
Yes. Google charges nothing for it. You are limited by quota instead: 100 uploads, 100 searches and 10,000 units for other calls per project per day. More quota requires a compliance audit, not a payment.
How many videos can I upload per day with the YouTube Data API?
By default, 100 videos.insert calls per day per Google Cloud project, counted across every channel your app uploads to. The bucket resets at midnight Pacific Time. Above that you need an approved quota extension.
Can I use an API key to upload videos?
No. API keys only work for reading public data. Uploading, editing and deleting always require an OAuth 2.0 token from the channel owner, with a scope such as youtube.upload.
Does the YouTube Data API support Shorts?
Yes, through the same videos.insert call used for regular videos. Since November 3, 2026, thumbnails.set can also apply a custom thumbnail to a Short once processing has finished.
Do uploads from an unverified project still go private?
Not anymore. Since November 2, 2026, videos uploaded from unverified API projects are no longer restricted to private, and privacyStatus defaults to public when you omit it.
