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

> 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.

Canonical: https://tesselith.com/blog/youtube-data-api-upload
Last updated: 2026-11-27

**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:

| Date | Change | What it means for you |
| --- | --- | --- |
| Dec 4, 2025 | Upload cost dropped from about 1,600 units to about 100 in the quota calculator | Uploads stopped eating most of the daily pool |
| Jun 1, 2026 | videos.insert and search.list moved to their own quota buckets | Uploads are counted as calls (100/day), not units from the shared 10,000 |
| Sep 14, 2026 | Max thumbnail file size raised from 2 MB to 50 MB | Stop compressing thumbnails to fit 2 MB |
| Nov 2, 2026 | Unverified projects no longer restricted to private | No audit needed for public uploads |
| Nov 3, 2026 | thumbnails.set works for Shorts after processing | You can set Shorts thumbnails by API |
| Nov 16, 2026 | hasPaidProductPlacement no longer defaults to false | Set 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

| Method | Cost | Bucket |
| --- | --- | --- |
| videos.insert | 1 per call | Video uploads: 100 calls/day |
| search.list | 1 per call | Search: 100 calls/day |
| videos.list, channels.list and other list calls | 1 | Shared: 10,000 units/day |
| videos.update | 50 | Shared |
| thumbnails.set | 50 | Shared |
| captions.insert | 400 | Shared |

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`).

```bash
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.

```ts
// 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](https://tesselith.com/blog/youtube-shorts-length) 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](https://tesselith.com/blog/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.

| reason | What happened | Fix |
| --- | --- | --- |
| quotaExceeded | The project's quota for the day is spent | Wait for midnight Pacific, or request an extension |
| uploadLimitExceeded | The channel hit its own daily upload limit | Wait. YouTube raises it as the channel builds history |
| youtubeSignupRequired | The Google account has no YouTube channel | Create a channel, then reconnect |
| invalidTitle / invalidDescription | Usually a < or > character, or length | Strip angle brackets, check bytes |
| invalidTags | Tag list over 500 characters | Trim tags |
| invalidCategoryId | Category not valid for uploads in that region | Use a standard category like 22 or 27 |
| invalidPublishAt | Bad time, or video isn't private | Set privacyStatus private, use ISO 8601 |
| forbidden / authorizationRequired | Token lacks access to this channel | Reconnect |

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](https://tesselith.com/blog/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](https://tesselith.com/schedule/youtube) today, including Shorts, thumbnails and scheduled releases, through the app or the [REST API](https://tesselith.com/product/api). Our [scheduling API checklist](https://tesselith.com/blog/social-media-scheduling-api) and the [API automation walkthrough](https://tesselith.com/blog/automate-social-media-posting-api) help you decide, and the [docs](https://tesselith.com/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.

---
Tesselith · https://tesselith.com · Full site index: https://tesselith.com/llms.txt
