Tesselith
ProductSolutionsAI agentsCompareFree toolsBlogPricing
Log inStart free
  1. Home/
  2. Blog/
  3. Uploading Video with the YouTube Data API in 2026: Resumable Uploads, Quota Costs and the End of the Private Lock

Developers

Uploading Video with the YouTube Data API in 2026: Resumable Uploads, Quota Costs and the End of the Private Lock

November 27, 2026 · 7 min read

Upload video with the YouTube Data API v3 in 2026: the resumable protocol, the new 100-uploads-a-day quota bucket, scheduling with publishAt, and the errors you'll hit.

To upload a video with the YouTube Data API v3, open a resumable session with `POST https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status`, then PUT the file bytes to the URL returned in the `Location` header. If the connection drops, ask YouTube how many bytes it kept and resume from there. Quota changed a lot in 2026: videos.insert now has its own bucket of 100 calls per day per project at 1 unit each, separate from the 10,000-unit pool everything else shares. And since November 2, 2026, uploads from unverified API projects are no longer locked to private.

Key takeaways

  • Always use the resumable protocol. Files can be up to 256 GB, and a single PUT that dies at 90% is a bad day.
  • videos.insert has its own quota bucket: 100 uploads per day for the whole project, shared by every connected channel.
  • Unverified projects can publish public videos again as of November 2, 2026. Older guides about the audit lock are out of date.
  • To schedule a release, upload as private with status.publishAt. publishAt only works on private videos that have never been published.
  • Every request costs quota even when it fails, so validate before you open a session.

What changed in 2026

If you last read about YouTube uploads in 2024, three things you know are now wrong. From Google's revision history:

DateChangeWhat it means for you
Dec 4, 2025Upload cost dropped from about 1,600 units to about 100 in the quota calculatorUploads stopped eating most of the daily pool
Jun 1, 2026videos.insert and search.list moved to their own quota bucketsUploads are counted as calls (100/day), not units from the shared 10,000
Sep 14, 2026Max thumbnail file size raised from 2 MB to 50 MBStop compressing thumbnails to fit 2 MB
Nov 2, 2026Unverified projects no longer restricted to privateNo audit needed for public uploads
Nov 3, 2026thumbnails.set works for Shorts after processingYou can set Shorts thumbnails by API
Nov 16, 2026hasPaidProductPlacement no longer defaults to falseSet it explicitly on every upload

The November 2 change is the big one. From July 2020 until then, every upload from a Google Cloud project that hadn't passed YouTube's compliance audit was locked to private, and the creator got an email saying so. That gate held back most small YouTube integrations, ours included, for months. It's gone. If you omit privacyStatus, uploads now default to public, although a creator's own account settings can still default an upload to private, so read the returned status instead of assuming.

YouTube API quota, as of November 2026

MethodCostBucket
videos.insert1 per callVideo uploads: 100 calls/day
search.list1 per callSearch: 100 calls/day
videos.list, channels.list and other list calls1Shared: 10,000 units/day
videos.update50Shared
thumbnails.set50Shared
captions.insert400Shared

Quotas reset at midnight Pacific time. The upload bucket is per project, not per channel: if your app has 300 connected creators, they share 100 uploads a day. That's the number to plan a product around. Request more through Google's Quota Extension Form, and track usage in the Cloud Console under the YouTube Data API's quotas page.

Captions are the sleeper cost. At 400 units each, 25 caption uploads use the entire shared pool for the day, and then even videos.list fails. If your product uploads captions, budget them separately.

Step 1: open a resumable session

The first request carries metadata only. Tell YouTube the file's type and size in headers, and send snippet and status as JSON. You need the youtube.upload scope (or youtube / youtube.force-ssl).

curl -i -X POST \
  "https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status&notifySubscribers=true" \
  -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "X-Upload-Content-Type: video/mp4" \
  -H "X-Upload-Content-Length: 734003200" \
  -d '{
    "snippet": {
      "title": "Sourdough starter from scratch: day 1 to day 7",
      "description": "Every step, flour ratios and temperatures.",
      "tags": ["sourdough", "bread baking"],
      "categoryId": "26"
    },
    "status": {
      "privacyStatus": "private",
      "publishAt": "2026-12-05T15:00:00Z",
      "selfDeclaredMadeForKids": false,
      "containsSyntheticMedia": false
    }
  }'

# HTTP/2 200
# location: https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&upload_id=xa298sd_f

Validate before this call. Title: 100 characters, no < or >. Description: 5,000 bytes, not characters, so emoji and non-Latin scripts count three or four each. Tags: 500 characters for the whole list, counting the commas between tags, and a tag with a space counts its implied quotation marks too. A request that fails validation still costs quota.

Step 2: upload, and resume when it breaks

PUT the bytes to the session URL with a Content-Range header. A 200 or 201 with a video resource means you're done. A 308 Resume Incomplete means YouTube has part of it, and its Range header (like bytes=0-52428799) tells you the last byte it kept.

// Ask YouTube how much it has. Returns the next byte to send.
async function receivedOffset(sessionUrl: string, total: number): Promise<number> {
  const res = await fetch(sessionUrl, {
    method: "PUT",
    headers: { "Content-Range": "bytes */" + total },
  })
  if (res.ok) return total // it actually finished last time
  if (res.status !== 308) throw new Error("Session gone: " + res.status)
  const end = /bytes=0-(\d+)/.exec(res.headers.get("range") ?? "")?.[1]
  return end ? Number(end) + 1 : 0
}

async function sendFrom(sessionUrl: string, file: Blob, offset: number) {
  return fetch(sessionUrl, {
    method: "PUT",
    headers: {
      "Content-Type": file.type,
      "Content-Range": "bytes " + offset + "-" + (file.size - 1) + "/" + file.size,
    },
    body: file.slice(offset),
  })
}

Our production loop streams from object storage rather than holding the file in memory. On resume it asks for the remaining bytes with an HTTP Range request. One trap: if storage ignores the Range header and returns the whole file with a 200, sending it would duplicate bytes and corrupt the upload. Check for 206 Partial Content, and start over if you didn't get it. Retry 5xx and network errors with exponential backoff, five attempts, capped at 30 seconds. Don't retry 4xx except 429.

Session URLs stay valid for a while but not forever. If the resume query itself returns 404, the session expired, and you need a new one. That's another videos.insert call against the 100-a-day bucket.

Scheduling: publishAt rules

YouTube schedules natively. Set status.privacyStatus to private and status.publishAt to an ISO 8601 time, and the video goes public at that moment with no server of yours involved. The rules from the API reference: publishAt can only be set while the video is private, and only if it has never been published. Set it on a public video and it does nothing. An invalid value returns invalidPublishAt.

That makes YouTube one network where you should use the platform's scheduler rather than your own. Upload a day early, let processing finish, and YouTube flips it public on time. It also gives you a window to set the thumbnail, which needs the video id.

Thumbnails, captions and Shorts

  • Thumbnail: POST https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId=... with the image bytes. 50 units. JPEG or PNG, now up to 50 MB. Custom thumbnails need a verified channel.
  • Captions: captions.insert with an SRT or VTT file. 400 units each. Needs the youtube.force-ssl scope.
  • Shorts: there's no Shorts flag. A video of up to 3 minutes with a square or vertical aspect ratio becomes a Short. Our Shorts length guide covers the music-licensing cliff at 60 seconds.
  • Chapters: no API. They're parsed from timestamps in the description, so write them there. See YouTube chapters.

Pick scopes once. Adding a Google scope later re-triggers OAuth verification, so list everything you'll ever call (upload, readonly, force-ssl, analytics) in the first submission.

Upload errors, translated

YouTube's error bodies carry a reason string, and the HTTP status alone misleads: quota exhaustion is a 403, the same as a permission problem. Parse the reason.

reasonWhat happenedFix
quotaExceededThe project's quota for the day is spentWait for midnight Pacific, or request an extension
uploadLimitExceededThe channel hit its own daily upload limitWait. YouTube raises it as the channel builds history
youtubeSignupRequiredThe Google account has no YouTube channelCreate a channel, then reconnect
invalidTitle / invalidDescriptionUsually a < or > character, or lengthStrip angle brackets, check bytes
invalidTagsTag list over 500 charactersTrim tags
invalidCategoryIdCategory not valid for uploads in that regionUse a standard category like 22 or 27
invalidPublishAtBad time, or video isn't privateSet privacyStatus private, use ISO 8601
forbidden / authorizationRequiredToken lacks access to this channelReconnect

Two of these aren't fixable by retrying and should never enter a retry loop: quotaExceeded (it just burns more quota) and uploadLimitExceeded (a per-channel limit you can't request more of). Tell the user plainly and reschedule for tomorrow.

For file size, duration and the 15-minute limit on unverified channels, see our YouTube upload limits article.

When to use a scheduling API instead of building it yourself

If you upload to one channel you own, build it. It's a weekend. If you're uploading for many channels, the hard parts are shared quota (100 uploads a day across all your users), resumable streaming from storage, OAuth verification, per-reason error handling and token refresh, and then the same video going to Instagram Reels and Threads with different rules.

Tesselith publishes to YouTube today, including Shorts, thumbnails and scheduled releases, through the app or the REST API. Our scheduling API checklist and the API automation walkthrough help you decide, and the docs have the requests.

Questions people ask

How much quota does a YouTube API upload cost in 2026?
videos.insert costs 1 unit per call from its own bucket of 100 calls per day per project, separate from the 10,000-unit pool used by other methods. Google moved uploads to this bucket on June 1, 2026.
Are YouTube API uploads still locked to private?
No. Since November 2, 2026, videos uploaded from unverified API projects are no longer restricted to private. Uploads default to public unless you set privacyStatus or the creator's settings say otherwise.
How do I schedule a YouTube video with the API?
Upload it with status.privacyStatus set to private and status.publishAt set to the release time in ISO 8601. publishAt only works on private videos that have never been published.
What is the maximum file size for YouTube API uploads?
256 GB, per the videos.insert reference. Use the resumable upload protocol for anything large.
Why does my YouTube upload return 403?
Check the reason field. quotaExceeded means the project's daily quota is spent, uploadLimitExceeded means the channel's own limit, and forbidden means the token can't access that channel.

Try Tesselith free

Connect your channels and schedule your first post in minutes. No credit card required.

Start free

Related pages

Schedule YouTube videos with TesselithYouTube upload limitsHow long can YouTube Shorts be?Tesselith REST API

More from the blog

Buffer API Alternative: What to Do Before the Legacy API Retires on February 1, 2027How to Automate Social Media Posting With an API (Node.js and Python Examples)Social Media Webhooks, Explained: Get Notified the Moment a Post Publishes or FailsChoosing a Social Media Scheduling API in 2026: A 12-Point Checklist for Developers

Free to start

One calendar for everything you post.

No credit card. Connect your first channel and schedule a post in under two minutes.

Start free
Tesselith

The social scheduler for creators, teams and agencies. One calendar, every network you post to.

Product

  • Composer
  • Calendar
  • Analytics
  • Automation
  • AI assistant
  • Posting queue
  • API & webhooks
  • MCP server
  • All features

AI agents

  • Claude
  • Claude Code
  • ChatGPT
  • Codex
  • Cursor
  • Gemini CLI
  • n8n
  • All AI agents

Solutions

  • Creators
  • Agencies
  • Small business
  • E-commerce
  • All solutions

Compare

  • Scheduler pricing 2026
  • vs Buffer
  • vs Hootsuite
  • Metricool alternatives
  • Planoly alternatives
  • SocialBee alternatives
  • All comparisons
  • All alternatives

Free tools

  • Character counter
  • Best time to post
  • UTM builder
  • Engagement rate
  • All tools

Company

  • About
  • Blog
  • Research
  • Developer docs
  • Pricing
  • Contact
  • Security
  • Status

Legal

  • Privacy
  • Terms
  • Cookies
  • Acceptable Use
  • DPA
  • Refunds

Schedule posts for

  • X (Twitter)
  • Instagram
  • Facebook Pages
  • LinkedIn
  • YouTube
  • TikTok
  • Threads
  • Bluesky
  • Mastodon
  • Pinterest
  • Reddit
  • Discord
  • Telegram
  • Dev.to
  • Hashnode

Popular guides

  • Post to all social media at once
  • Schedule Discord messages
  • Cross-post to Bluesky, Mastodon and Threads
  • Buffer pricing
  • Sprout Social pricing
  • Metricool pricing
  • Sendible pricing
  • Loomly pricing
© 2026 Tesselith. All rights reserved.
PrivacyTermsCookiesSecurityData deletion
Tesselith