# How to upload videos with the YouTube API: quotas and OAuth

> Learn how to upload videos with the YouTube Data API, including OAuth, resumable uploads, 2026 quotas, verification, Shorts and common errors.

- Published: 2026-12-01
- Author: Luis Vidal (COO) https://www.linkedin.com/in/luis-vidal-montal/
- Canonical URL: https://apiwings.com/blog/youtube-api-upload-video
- Publisher: APIWings

![A video card with an upload arrow between a quota gauge and a shield with a check mark](https://apiwings.com/blog/youtube-api-upload-video/youtube-api-upload-video.webp)

**To upload a video with the YouTube Data API, you call videos.insert with an OAuth token that has the youtube.upload scope, usually through YouTube's resumable upload protocol: one request with the video's metadata opens an upload session, and one or more PUT requests send the file.** Since June 2026, **every Google Cloud project gets 100 videos.insert calls a day in a quota bucket of their own**, apart from the 10,000 units a day for the other methods. And since 2 November 2026, **videos uploaded from projects that YouTube has not audited are no longer locked to private.**

**Short answers:**

- **How many videos can I upload a day?** 100 per Google Cloud project by default, shared by every channel that uses your app. Each channel also has its own daily upload limit, which YouTube does not publish.

- **Do I still need an audit to publish public videos?** No. Since 2 November 2026, public and unlisted uploads work within the default quota without an audit. You need the audit to get more quota.

- **Do I need Google's OAuth verification?** To open your app to any Google account, yes, if Google classifies your scopes as sensitive. Before that, the app works for the test users you list, or for at most 100 new users behind Google's unverified app screen.

- **Which scope?** youtube.upload, the narrowest one that uploads videos and sets thumbnails.

**Contents:**

- [What changed in YouTube's upload rules in 2025 and 2026](#what-changed-in-youtube-s-upload-rules-in-2025-and-2026)

- [How a YouTube API upload works](#how-a-youtube-api-upload-works)

- [Upload a video step by step with curl](#upload-a-video-step-by-step-with-curl)

- [YouTube API quota for uploads](#youtube-api-quota-for-uploads)

- [The three reviews: OAuth verification, audit and channel verification](#the-three-reviews-oauth-verification-audit-and-channel-verification)

- [What YouTube's terms and policies require from upload apps](#what-youtube-s-terms-and-policies-require-from-upload-apps)

- [YouTube upload errors and what to do](#youtube-upload-errors-and-what-to-do)

- [Check your YouTube uploads before you send them](#check-your-youtube-uploads-before-you-send-them)

- [Where YouTube's pages disagree](#where-youtube-s-pages-disagree)

- [When a unified API is the shorter path](#when-a-unified-api-is-the-shorter-path)

- [Sources and review date](#sources-and-review-date)

- [FAQ](#faq)

**Technical review: 30 November 2026**, against the YouTube Data API (v3) reference and revision history, the YouTube API Services Terms of Service and Developer Policies, Google's OAuth documentation and YouTube Help. **How to read this guide:** "YouTube documents" or a quote means the rule is on a Google or YouTube page we link; "our calculation" and "our reading" mark what APIWings worked out from those pages.

**Key takeaways:**

- **Two quota buckets for uploads.** videos.insert: 100 calls a day, 1 per call. Everything else your upload needs (thumbnails, playlists, status reads): 10,000 units a day. Both reset at midnight Pacific Time. search.list has a third bucket of 100 calls.

- **No more private lock.** Uploads from unaudited projects keep the privacy status you send, since 2 November 2026.

- **Three reviews, three purposes.** Google's OAuth verification lets any user connect; YouTube's compliance audit raises your quota; the channel's phone verification allows videos over 15 minutes and custom thumbnails.

- **Resumable uploads can be resumed, within limits.** While the session is valid, you can ask it how many bytes arrived and whether the video was created. Once it expires, you cannot.

- **Declare paid product placement.** Since 16 November 2026, hasPaidProductPlacement no longer defaults to false.

- **Show the required notice and let the user choose.** The API Terms require a fixed warning next to the upload button, and the Developer Policies an option for public, private or unlisted.

## What changed in YouTube's upload rules in 2025 and 2026

**Most guides about the YouTube upload API describe rules that no longer apply.** These are the changes in YouTube's [revision history](https://developers.google.com/youtube/v3/revision_history) that affect uploads:

| Date          | Change                                                                              | What it means for you                                                           |
|-------------------|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| 4 December 2025   | An upload's quota cost drops "from approximately 1600 units to approximately 100 units" | Before, a project could upload about six videos a day with the default 10,000 units |
| 1 June 2026       | Granular quota: videos.insert and search.list get their own buckets                     | 100 uploads a day by default, without touching the 10,000 units for other calls     |
| 14 September 2026 | Custom thumbnails up to 50 MB (from 2 MB)                                               | Full-resolution thumbnails fit in one request                                       |
| 2 November 2026   | Uploads from unverified API projects are "no longer restricted to private viewing mode" | No audit is needed to publish public or unlisted videos within the default quota    |
| 3 November 2026   | thumbnails.set supports custom thumbnails for Shorts after processing                   | Wait until the Short has finished processing before you set its thumbnail           |
| 16 November 2026  | hasPaidProductPlacement "no longer defaults to false"                                   | Send true or false in every upload                                                  |

**The 2 November change reverses a policy from 28 July 2020**, which kept every video uploaded from an unaudited project created after that date private until the project passed an audit. YouTube's [audits page](https://developers.google.com/youtube/v3/guides/quota_and_compliance_audits) now says it directly: "you don't need an audit to upload public or unlisted videos within your default quota."

## How a YouTube API upload works

**videos.insert takes the file and its metadata in one method, and the [resumable upload protocol](https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol) splits it into steps you can repeat.** The [videos.insert reference](https://developers.google.com/youtube/v3/docs/videos/insert) accepts files up to 256 GB with any video/\* MIME type or application/octet-stream.

**Step 1: open a session.** You send the video resource as JSON, with the size and type of the file in two headers. This is the request our checker builds for one of the uploads in the worked example below (a fictional channel; the token is yours):

```http
POST https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,localizations,status,paidProductPlacementDetails
Authorization: Bearer {access_token}
Content-Type: application/json; charset=UTF-8
X-Upload-Content-Length: 920000000
X-Upload-Content-Type: video/mp4

{
  "snippet": {
    "title": "Gazpacho in ten minutes",
    "categoryId": "26",
    "defaultLanguage": "en"
  },
  "localizations": {
    "es": { "title": "Gazpacho en diez minutos", "description": "Receta completa" }
  },
  "status": {
    "privacyStatus": "private",
    "publishAt": "2026-12-04T08:00:00Z",
    "selfDeclaredMadeForKids": false
  },
  "paidProductPlacementDetails": { "hasPaidProductPlacement": true }
}
```

**YouTube answers 200 OK with the session URI in the Location header.** The part parameter lists the parts you set, and the same parts come back in the response. No video exists yet.

**Step 2: send the file.** A PUT to the session URI with the bytes. YouTube answers 201 Created with the video resource, which includes the new video ID, so the watch link is https://www.youtube.com/watch?v={id}.

**Step 3: if the answer is lost or is a server error, ask the session before you resend.** You send an empty PUT with Content-Range: bytes \*/{size}. These are the answers the resumable upload guide documents:

| Answer to the status check                   | What it means                                                                                                      | What to do                                                                         |
|--------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| 308 Resume Incomplete with Range: bytes=0-999999 | YouTube has the first 1,000,000 bytes (308 is a normal status, not an error)                                           | Send the rest, starting at byte 1,000,000. Without a Range header, nothing arrived yet |
| 200 or 201 with the video resource               | The upload had already finished; YouTube returns "the same response that it sent when the upload originally completed" | Keep the video ID. Do not upload again                                                 |
| 404 Not Found                                    | The session expired                                                                                                    | Start a new session from byte 0, but read the next section first                       |
| Any of these with a Retry-After header           | YouTube asks you to wait                                                                                               | Use that value to decide when to resume                                                |

**The bytes must arrive in order.** A resumed PUT must start at the byte after the last one YouTube confirmed; YouTube discards a request that overlaps or skips bytes. Chunks are optional: every chunk except the last must be a multiple of 256 KB (262,144 bytes), and YouTube calls chunked uploads "rarely necessary" and "discouraged" because they add requests. Use them for progress bars on unstable networks.

### How to avoid duplicate videos

**The status check only works while the session is alive.** YouTube says each session URI "has a finite lifetime and eventually expires", publishes no duration, and recommends resuming "shortly after the interruption occurs". After expiry, the session answers 404 whether or not the video was created. So:

- **Safe to start again:** the session expired before you sent the last byte, or YouTube's last answer was a 308 or a 5xx. A video needs the whole file, so none was created.

- **Not safe to start again:** you sent the last byte, got no answer (a timeout or a dropped connection) and the session expired before you could check. YouTube may have created the video. **Our recommendation:** look at the channel's recent uploads first: channels.list?part=contentDetails&mine=true gives the uploads playlist (contentDetails.relatedPlaylists.uploads), and playlistItems.list lists its videos. Each call costs 1 unit and needs a read scope. YouTube does not document how quickly a new upload appears there, so compare the title and the time and ask the user when in doubt.

**Three habits reduce the risk:** store the session URI in your database before you send bytes, check the status immediately after any interruption, and never retry an upload from scratch inside a generic HTTP retry loop. Our publishing script follows these rules and stops with outcome_unknown in the unsafe case instead of uploading again.

**Each new session uses quota.** Google's quota page says "all API requests, including invalid requests, incur a quota cost of at least one point", so **our reading** is that every session start, even one YouTube rejects, uses one of your 100 videos.insert calls.

### The fields you can set when you upload

**The video resource has many parts, but videos.insert only lets you set these**, according to the [videos.insert reference](https://developers.google.com/youtube/v3/docs/videos/insert) and the [video resource](https://developers.google.com/youtube/v3/docs/videos):

| Field                                                                                     | Rule                                                                           |
|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| snippet.title                                                                                 | Required. Up to 100 characters, no \< or \>                                        |
| snippet.description                                                                           | Up to 5,000 bytes in UTF-8, no \< or \>. Timestamps such as 00:00 create chapters  |
| snippet.tags\[\]                                                                              | Up to 500 characters in total, counted as YouTube describes below                  |
| snippet.categoryId                                                                            | A category ID as a string, such as "22"; videoCategories.list gives the valid ones |
| snippet.defaultLanguage and localizations                                                     | Translated titles and descriptions; localizations without a default language fail  |
| status.privacyStatus                                                                          | public, unlisted or private. Without it, the video defaults to public              |
| status.publishAt                                                                              | Scheduled publication; only with private and for a video that was never published  |
| status.selfDeclaredMadeForKids                                                                | Whether the video is made for kids                                                 |
| status.containsSyntheticMedia                                                                 | Realistic altered or synthetic content                                             |
| paidProductPlacementDetails.hasPaidProductPlacement                                           | Paid product placement; send it every time                                         |
| status.embeddable, status.license, status.publicStatsViewable, recordingDetails.recordingDate | Optional                                                                           |

**Notifications are a query parameter, not a field.** notifySubscribers=false stops YouTube from notifying subscribers about the new video; the default is true. YouTube suggests it for channels that upload many videos at once.

### Title, description and tags: how YouTube counts

**Titles are counted in characters, descriptions in bytes.** An emoji or a letter such as "é" is one character in a title, but takes 2 to 4 bytes of the description's 5,000. YouTube Help says 5,000 characters for descriptions; the API says bytes, so plan for bytes.

**Tags have their own count.** The video resource says commas between tags count toward the 500 characters, and a tag with a space counts as if it were wrapped in quotation marks. These are the results our checker gives, each covered by its tests:

| Tags you send           | Counted as | Why                          |
|-----------------------------|----------------|----------------------------------|
| \["Foo-Baz"\]               | 7              | YouTube's own example            |
| \["Foo Baz"\]               | 9              | A space adds two quotation marks |
| \["a", "b"\]                | 3              | One comma between the two        |
| \["api", "rest api", "go"\] | 17             | 3 + 10 + 2, plus two commas      |
| \["canción"\]               | 7              | Accents count as one character   |

**An empty tag fails.** YouTube's own Go sample warns that the API returns 400 Bad Request if tags is an empty string, so drop empty items before you send the list.

### Privacy, scheduling and Shorts

**privacyStatus defaults to public, and the user must choose it.** The videos.insert reference says a video without it is public, and the November revision note adds that "certain uploads might default to private based on creator account settings". YouTube Help says creators aged 13 to 17 default to private. YouTube's [Developer Policies](https://developers.google.com/youtube/terms/developer-policies) (section III.E) require apps that upload to "clearly display an option for the user to choose" public, private or unlisted.

**To schedule, upload as private with publishAt.** YouTube makes the video public at that time. publishAt only works when the video is private and has never been published, and a time in the past publishes the video right away. Our guide to the [social media scheduling API](https://apiwings.com/blog/social-media-scheduling-api) compares this with networks that have no scheduling, where the post waits in your own queue.

**There is no Shorts flag.** According to [YouTube Help](https://support.google.com/youtube/answer/15424877), any video uploaded since 15 October 2024 that is square or vertical and up to three minutes long is a Short. The API has no field for it: the shape and length of the file decide.

**Shorts thumbnails depend on three layers:**

| Layer | Rule                                                                                                                                                                                                                                                | Source                                                                                                                                                                         |
|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| API       | thumbnails.set works for Shorts, but only after processingDetails.processingStatus is succeeded; called earlier, "the custom thumbnail might not be applied". JPEG or PNG, up to 50 MB. The thumbnail resource returns a 9:16 shortsAspectRatio version | [thumbnails.set](https://developers.google.com/youtube/v3/docs/thumbnails/set), [thumbnails](https://developers.google.com/youtube/v3/docs/thumbnails), revision of 3 Nov 2026 |
| Channel   | Custom thumbnails need a verified account; otherwise thumbnails.set returns 403 (the user "doesn't have permissions to upload and set custom video thumbnails"). Thumbnails also have a daily limit per channel (uploadRateLimitExceeded, 429)          | [YouTube Help](https://support.google.com/youtube/answer/72431), [errors](https://developers.google.com/youtube/v3/docs/errors)                                                |
| Interface | YouTube Help recommends 9:16 for Shorts, at least 640 pixels high (2160 × 3840 ideal). A vertical video with a 16:9 thumbnail gets an auto-generated 4:5 one on the home, explore and subscription pages                                                | [YouTube Help](https://support.google.com/youtube/answer/72431)                                                                                                                  |

### Audience and disclosures

**Three fields declare what is in the video, and two of them changed recently:**

- **selfDeclaredMadeForKids:** lets the channel owner say the video is made for kids. **Our reading:** ask the user and send true or false every time rather than rely on the channel's default.

- **containsSyntheticMedia:** since October 2024, for realistic altered or synthetic content, for example a real person appearing to say something they did not say, or a realistic scene that never happened.

- **hasPaidProductPlacement:** since 16 November 2026 there is no default. If you leave it out, the video "isn't declared as free of paid product placement".

## Upload a video step by step with curl

**This is the whole flow with curl, from the OAuth code to the thumbnail.** It comes from our [youtube-upload-walkthrough.sh](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-walkthrough.sh), which you can run without any Google account against our local mock of YouTube (node youtube-mock-server.mjs 8080, then YT_API=http://127.0.0.1:8080). Placeholders in braces are yours; the mock accepts the code test-code and the token test-token.

**1. Get the user's authorization.** Send the user to Google's consent screen, then exchange the code from the redirect for tokens at Google's [token endpoint](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps). access_type=offline returns a refresh token.

```text
https://accounts.google.com/o/oauth2/v2/auth?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code&scope=https://www.googleapis.com/auth/youtube.upload%20https://www.googleapis.com/auth/youtube.readonly&access_type=offline&include_granted_scopes=true&state={random_state}
```

```bash
curl -X POST https://oauth2.googleapis.com/token \
  --data-urlencode "code={code}" --data-urlencode "client_id={client_id}" \
  --data-urlencode "client_secret={client_secret}" --data-urlencode "redirect_uri={redirect_uri}" \
  --data-urlencode "grant_type=authorization_code"
```

**2. Open the resumable session** and keep the Location header:

```bash
curl -sS -D - -o /dev/null -X POST \
  "https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status,paidProductPlacementDetails" \
  -H "Authorization: Bearer {access_token}" -H "Content-Type: application/json; charset=UTF-8" \
  -H "X-Upload-Content-Length: {size_in_bytes}" -H "X-Upload-Content-Type: video/mp4" \
  --data '{"snippet":{"title":"Test upload","categoryId":"22"},"status":{"privacyStatus":"private","selfDeclaredMadeForKids":false},"paidProductPlacementDetails":{"hasPaidProductPlacement":false}}'
```

**3. Send the file** to the session URI. -H "Expect:" stops curl from waiting for a 100 Continue first:

```bash
curl -sS -X PUT "{session_uri}" -H "Authorization: Bearer {access_token}" -H "Content-Type: video/mp4" \
  -H "Expect:" --data-binary @video.mp4
```

**4. If it fails, check the status and resume** from the byte after the Range end:

```bash
curl -sS -D - -o /dev/null -X PUT "{session_uri}" -H "Authorization: Bearer {access_token}" \
  -H "Content-Length: 0" -H "Content-Range: bytes */{size_in_bytes}"
```

```bash
tail -c +{next_byte_plus_one} video.mp4 | curl -sS -X PUT "{session_uri}" \
  -H "Authorization: Bearer {access_token}" -H "Content-Type: video/mp4" -H "Expect:" \
  -H "Content-Range: bytes {next_byte}-{size_minus_one}/{size_in_bytes}" --data-binary @-
```

**5. Read the video ID** from the 201 (or 200) body: "id": "{video_id}", and check status.privacyStatus to see what YouTube applied.

**6. Check processing** (1 unit; the owner's token, here with youtube.readonly):

```bash
curl -sS "https://www.googleapis.com/youtube/v3/videos?part=status,processingDetails&id={video_id}" \
  -H "Authorization: Bearer {access_token}"
```

**7. Set the thumbnail when it is valid:** for a Short, after processingStatus is succeeded; always on a verified account (50 units):

```bash
curl -sS -X POST "https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId={video_id}&uploadType=media" \
  -H "Authorization: Bearer {access_token}" -H "Content-Type: image/jpeg" --data-binary @thumbnail.jpg
```

**What we tested:** the script runs all seven steps against our mock, including a dropped connection during step 3 that it recovers with step 4. We did not run it against YouTube; use a test channel and private the first time.

## YouTube API quota for uploads

**Quota belongs to your Google Cloud project, not to each channel.** Every user of your app shares it. The [quota page](https://developers.google.com/youtube/v3/determine_quota_cost) sets these defaults:

| Bucket      | Default a day | Cost                                                                                                                                   |
|-----------------|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
| videos.insert   | 100 calls         | 1 per call                                                                                                                                 |
| search.list     | 100 calls         | 1 per call (not needed to upload)                                                                                                          |
| Everything else | 10,000 units      | thumbnails.set 50, playlistItems.insert 50, videos.update 50, videos.list 1, channels.list 1, playlistItems.list 1, videoCategories.list 1 |

**Quotas reset at midnight Pacific Time**, not UTC. In winter that is 08:00 UTC, and 07:00 UTC from the second Sunday of March to the first Sunday of November. Our checker groups uploads by Pacific day for that reason.

**HTTP requests and quota are different things.** An upload makes several HTTP requests, but Google documents a quota cost per API method, not per request. This is what each request of an upload costs, according to Google's pages:

| HTTP request                                                    | Quota bucket | Documented cost                                                                |
|---------------------------------------------------------------------|------------------|------------------------------------------------------------------------------------|
| POST that opens the session (videos.insert)                         | Uploads          | 1 call, also when YouTube rejects it (our reading of "including invalid requests") |
| PUT requests with the file's bytes                                  | None             | No specific cost documented                                                        |
| PUT status checks (bytes \*/size)                                   | None             | No specific cost documented                                                        |
| GET videos.list to check processing                                 | Other            | 1 unit per call                                                                    |
| POST thumbnails.set (sends the image)                               | Other            | 50 units                                                                           |
| POST playlistItems.insert                                           | Other            | 50 units                                                                           |
| channels.list + playlistItems.list to look for a possible duplicate | Other            | 1 unit each                                                                        |

**Our calculation for one upload with a thumbnail and a playlist, checked against our mock** (the test counts every request our publishing script sends): 4 HTTP requests (session, file, thumbnail, playlist) that use 1 upload call and 100 units. A Short with a thumbnail adds at least one processing check (1 unit) before the thumbnail.

**The second bucket can run out first.** 100 uploads with a thumbnail and a playlist each use exactly the 10,000 units of the default; one more status check puts you over. Without playlists, 200 thumbnails fill the bucket.

**Each channel also has an upload limit that is not your quota.** If a channel uploads too much in a day, videos.insert returns uploadLimitExceeded (400), which the [errors page](https://developers.google.com/youtube/v3/docs/errors) calls "a YouTube platform restriction" that "is entirely separate from your Google Cloud project's API quota". [YouTube Help](https://support.google.com/youtube/answer/57407) says the limit counts uploads from desktop, mobile and the API together, varies by country and channel history, and suggests trying again in 24 hours. YouTube does not publish the number.

### How to get more quota

**More quota needs a compliance audit.** The [audits page](https://developers.google.com/youtube/v3/guides/quota_and_compliance_audits) says that to get more than the default allocation, you "must first complete an audit" through the YouTube API Services Audit and Quota Extension Form, and that "a member of YouTube's API Services team will contact you as soon as possible". It gives no other timeframe. Since June 2026, YouTube can approve increases "based on specific method usage", so ask for the bucket you need: uploads, or units. You can see your usage on the Quotas page of the Google Cloud console.

**Plan for periodic audits too.** YouTube audits projects again over time, and section III.D of the Developer Policies lets YouTube reduce or remove the quota of a project that has been inactive for 90 consecutive days.

## The three reviews: OAuth verification, audit and channel verification

**"Verification" means three different things for a YouTube upload app, and each one unlocks something else:**

![Diagram of the two YouTube upload quota buckets and the three reviews an upload app meets](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-quota-and-reviews.webp)

*Two quota buckets and three reviews, each with a different purpose.*

| Review                   | Who runs it                | What it unlocks                                                               | When you need it                                                |
|------------------------------|--------------------------------|-----------------------------------------------------------------------------------|---------------------------------------------------------------------|
| Google OAuth verification    | Google Trust & Safety          | Any Google account can connect without the unverified app screen and its user cap | Before you open the app to the public, if your scopes are sensitive |
| YouTube API compliance audit | YouTube API Services           | More than the default quota                                                       | When 100 uploads or 10,000 units a day are not enough               |
| Channel verification (phone) | Each channel owner, in YouTube | Videos longer than 15 minutes and custom thumbnails                               | For each channel that needs them                                    |

### Google OAuth verification

**Google reviews apps that request sensitive or restricted scopes, and the Google Cloud console shows which ones are.** Google's [scopes page](https://developers.google.com/identity/protocols/oauth2/scopes) says "sensitive scopes require review by Google and have a sensitive indicator" on the consent screen configuration page. No Google page we read lists the classification of youtube.upload itself; the [sensitive scope verification](https://developers.google.com/identity/protocols/oauth2/production-readiness/sensitive-scope-verification) page gives "deleting a YouTube video" as an example of a sensitive scope. Check the indicator of each scope you request in your project. For a sensitive scope, Google asks for:

- **A justification for each scope**, and why a narrower one is not enough.

- **A demonstration video** of the whole OAuth flow in English, showing the app name and client ID on the consent screen and how you use each scope. Google asks you to upload it to YouTube as unlisted.

- **Brand verification:** a homepage on a verified domain, a privacy policy linked from it and from the consent screen, and up-to-date contacts.

**Where your app stands decides who can connect:**

| App status                                | Who can connect                                 | Limits                                                                                                        |
|-----------------------------------------------|-----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| Testing (publishing status)                   | Only the test users you list                        | Tester warning screen and a user cap; refresh tokens of external apps expire after 7 days                         |
| In production, sensitive scopes, not verified | Any Google account, after the unverified app screen | 100 new users in total, counted once the app presents the unverified app screen (Google may adjust it per app)    |
| In production and verified                    | Any Google account                                  | No unverified screen and no new-user cap. Changing scopes, redirect URIs or the app name may need re-verification |
| Internal (Google Workspace organization)      | Users of your organization only                     | No verification needed                                                                                            |
| Personal mode                                 | Only your own Google account                        | No unverified screen and no verification                                                                          |

These come from Google's [unverified apps page](https://support.google.com/cloud/answer/7454865), the sensitive scope verification page and the [OAuth 2.0 overview](https://developers.google.com/identity/protocols/oauth2).

**After verification, refresh tokens keep working until something stops them:** the user revokes access, the token goes unused for six months, or the user grants more than 100 refresh tokens to the same client, in which case the oldest stops working without warning. Treat invalid_grant as "ask the user to reconnect".

### Scopes: pick the narrowest

**YouTube's Developer Policies ask for the scope with the least access your app needs.** These are the scopes the upload methods accept, from each method's reference:

| Scope         | Google's description                                                              | Upload | Thumbnail | Playlist |
|-------------------|---------------------------------------------------------------------------------------|------------|---------------|--------------|
| youtube.upload    | Manage your YouTube videos                                                            | Yes        | Yes           | No           |
| youtube.force-ssl | See, edit, and permanently delete your YouTube videos, ratings, comments and captions | Yes        | Yes           | Yes          |
| youtube           | Manage your YouTube account                                                           | Yes        | Yes           | Yes          |
| youtube.readonly  | View your YouTube account                                                             | No         | No            | No           |

**If your app only uploads, youtube.upload is enough.** If it also adds videos to playlists, you need youtube.force-ssl or youtube, which also upload. **Our reading:** to read a video's processing status, add youtube.readonly; videos.list returns processing details only to the video's owner, and its reference does not say which scopes allow that.

## What YouTube's terms and policies require from upload apps

**YouTube allows apps to upload for their users, under conditions set in two documents.** The [YouTube API Services Terms of Service](https://developers.google.com/youtube/terms/api-services-terms-of-service) and the [Developer Policies](https://developers.google.com/youtube/terms/developer-policies), both last updated 6 November 2026, set these rules for a publishing app:

- **A fixed notice next to the upload button** (Terms, section 9.1): "By clicking 'upload,' you certify that the content you are uploading complies with the YouTube Terms of Service (including the YouTube Community Guidelines) at https://www.youtube.com/t/terms. Please be sure not to violate others' copyright or privacy rights." On mobile devices the Terms give the link http://m.youtube.com/terms.

- **The user's own channel.** Users must be able to upload to their own channel; if your app also uploads to your channel, that option cannot be more prominent, and you must say what rights you get (Terms, 9.1).

- **Consent for every action.** Policies section III.I forbids to "automate or trigger views, uploads, comments, likes, dislikes, or other actions without the user's prior specific and express consent".

- **The user chooses the privacy status**, and your app must not change it later "without the user's express consent" (III.E).

- **Identify the channel.** Your app must "clearly identify the YouTube channel" a request acts on (III.E).

- **Revocation and data.** Users must have an easy way to revoke access; when they do, you revoke the token at once and delete their API data within 30 calendar days (III.D). Stored API data must be refreshed or deleted every 30 days (III.E).

- **Privacy policy and terms.** Link to YouTube's Terms of Service and Google's privacy policy, and explain how users revoke access in Google's security settings (III.A).

- **Minimum functionality.** An app that uploads must let users set a title for each video, and must not cap it below YouTube's 100 characters (III.C).

**Scheduled uploads are not mentioned in these documents.** **Our reading:** the consent must cover each upload, so the user approves the file, the metadata and the time; a scheduled video is still uploaded under that approval, as private with publishAt, or by your queue at the approved time.

**Our reading, as product builders and not as lawyers:** design so that a person approves every upload in your app and your app uploads exactly what they approved. **Human approval covers the consent requirement only; it does not, by itself, make an app compliant**: the notice, the privacy choice, revocation, data storage and the rest still apply, and only YouTube decides. If an AI agent prepares your uploads, our guide on [how an AI agent can publish your social media posts safely](https://apiwings.com/blog/ai-agent-publish-social-media-posts) explains where that approval sits.

## YouTube upload errors and what to do

**Most upload errors are permanent: retrying the same request fails again.** From the [errors page](https://developers.google.com/youtube/v3/docs/errors) and the resumable upload guide:

| Error                                                        | HTTP | What to do                                                               |
|------------------------------------------------------------------|----------|------------------------------------------------------------------------------|
| quotaExceeded                                                    | 403      | Stop until midnight Pacific Time, or request more quota                      |
| uploadLimitExceeded                                              | 400      | The channel's daily limit, not your quota: try again in 24 hours             |
| invalidTitle, invalidDescription, invalidTags, invalidCategoryId | 400      | Fix the metadata; our checker catches these before sending                   |
| invalidPublishAt                                                 | 400      | Use a future ISO 8601 time with a time zone, and private                     |
| defaultLanguageNotSet                                            | 400      | Add snippet.defaultLanguage when you send localizations                      |
| mediaBodyRequired                                                | 400      | The request has no video content                                             |
| forbiddenPrivacySetting                                          | 403      | The privacy setting you sent is not allowed for this video                   |
| uploadRateLimitExceeded (thumbnails)                             | 429      | Too many thumbnails on the channel in 24 hours: try later                    |
| 500, 502, 503, 504 or a lost connection                          | n/a      | Check the session status and resume                                          |
| 404 on the session URI                                           | 404      | The session expired: start again only if no video can exist (see duplicates) |
| 401                                                              | 401      | Refresh the access token, or ask the user to reconnect                       |

**A 201 is not the end.** The video resource has status.uploadStatus, which can be uploaded, processed, rejected, failed or deleted; a rejected or failed upload comes with a reason such as duplicate, copyright, length or codec. Show the user what YouTube reports, including the privacy status YouTube applied.

## Check your YouTube uploads before you send them

**We built a free checker that reviews a plan of YouTube uploads against the rules in this guide**, in JavaScript (youtube-upload-check.mjs) and Python (youtube_upload_check.py). It checks the scopes and OAuth status, the required notice and privacy choice, both quota buckets per Pacific day, the file size, length and type, Shorts, title, description, tags, category, localizations, privacy and scheduling, the audience and disclosure fields, thumbnails, chunk sizes, refresh tokens in Testing mode and the user's approval. It prints the resumable upload request it would send and the requests each upload needs. It never calls YouTube.

```bash
node youtube-upload-check.mjs example-plan.json
python youtube_upload_check.py example-plan.json
```

**We ran it on a first plan for Postwell**, a fictional publishing app in Testing mode, with six uploads for two fictional channels. It found 21 problems (15 errors and 6 warnings) before anything reached YouTube:

![Checker results for six planned YouTube uploads from a fictional app: 21 problems in the draft, none after the fixes](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-check-worked-example.webp)

*The worked example: six planned uploads from a fictional app, checked before sending.*

- **App:** a playlist feature with only youtube.upload, no privacy choice and no required notice in the interface, and the consent screen in Testing.

- **Ana's cooking channel:** a 114-character title, tags that count as 537 characters, no privacy status, audience or paid placement declared; a horizontal video planned as a Short, with a WebP thumbnail.

- **Leo's software channel:** a 52-minute webinar from an account that is not verified, a description with HTML tags and a publishAt on a public video; an AI-made explainer with a realistic presenter, not disclosed and not approved; a refresh token issued 9 days before the upload, in Testing mode; chunks of 10,000,000 bytes.

- **A localized upload:** categoryId sent as a number and translations without defaultLanguage.

**The fixed plan returns no errors and no warnings.** The fixes were youtube.force-ssl for the playlist, the privacy choice and the notice in the interface, a verified production app, a 54-character title and 12 tags, the three declarations, a vertical Short with a JPG thumbnail, verified accounts, the webinar as private until its publishAt, the synthetic media flag and the owner's approval, categoryId as "26" with defaultLanguage, and chunks of 16 MiB.

### What a clean result means, and what it does not

**A clean result means no documented rule is broken.** It does not mean YouTube will accept the video. The checker cannot see your real quota, the channel's upload limit, whether the account is verified today, whether a category ID is valid in the channel's region, or what YouTube will decide about copyright and duplicates. Check those in the Google Cloud console and in the response of each upload.

**The publishing script avoids duplicates where the protocol allows it.** youtube-upload-example.mjs runs the checker, opens a resumable session, sends the file, checks the session's status after any interruption and resumes from the byte YouTube reports. If a session expires after the last bytes went out without an answer, it stops with outcome_unknown instead of uploading again. It waits for a Short to finish processing before setting its thumbnail, adds the video to a playlist, and reports the privacy YouTube applied. It stops without retrying on quotaExceeded, uploadLimitExceeded and metadata errors.

**What we tested, and what we did not.** On 30 November 2026 we ran every test below ourselves. **All of them run locally: the checker against its test cases, and the publishing script and the curl walkthrough against a mock of YouTube's upload API that we wrote from the documentation. We did not upload to YouTube with them, so the mock's behaviour is our reading of the docs, not YouTube's.** Try the scripts on a test channel, with a private video, before you use them with real accounts.

### Free resources

- **Checker:** [youtube-upload-check.mjs](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-check.mjs) and [youtube_upload_check.py](https://apiwings.com/blog/youtube-api-upload-video/youtube_upload_check.py), with the rules and their sources in [youtube-upload-rules.json](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-rules.json). Both give the same result, byte for byte, on the worked example.

- **Worked example:** [example-plan.json](https://apiwings.com/blog/youtube-api-upload-video/example-plan.json) (draft, 21 problems) and [example-plan-fixed.json](https://apiwings.com/blog/youtube-api-upload-video/example-plan-fixed.json) (no problems), built with [make-examples.py](https://apiwings.com/blog/youtube-api-upload-video/make-examples.py).

- **Tests:** [1,619 cases](https://apiwings.com/blog/youtube-api-upload-video/youtube-test-cases.json) (179 written by hand from YouTube's and Google's docs, 1,440 generated with [make-test-cases.mjs](https://apiwings.com/blog/youtube-api-upload-video/make-test-cases.mjs)); node test-youtube-check.mjs and python test_youtube_check.py both pass 1,619 of 1,619.

- **Publishing script:** [youtube-upload-example.mjs](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-example.mjs), with [test-upload-example.mjs](https://apiwings.com/blog/youtube-api-upload-video/test-upload-example.mjs): 34 of 34 scenarios against the mock (chunks, resuming after a 503 or a dropped connection, a lost final answer, expired sessions with and without duplicate risk, quota and channel limits, 401, Shorts processing, thumbnails, playlists, a privacy status that YouTube changed, and the curl walkthrough).

- **Mock and walkthrough:** [youtube-mock-server.mjs](https://apiwings.com/blog/youtube-api-upload-video/youtube-mock-server.mjs), a local stand-in for YouTube's upload endpoints, and [youtube-upload-walkthrough.sh](https://apiwings.com/blog/youtube-api-upload-video/youtube-upload-walkthrough.sh), the seven curl steps above.

- **Cheat sheet:** a [one-page PDF](https://apiwings.com/blog/youtube-api-upload-video/youtube-api-upload-video-cheat-sheet.pdf) with the quota buckets, reviews, scopes, metadata rules and errors. Notes in the [README](https://apiwings.com/blog/youtube-api-upload-video/README.md).

![Preview of the one-page YouTube API upload cheat sheet with quotas, reviews, scopes and metadata rules](https://apiwings.com/blog/youtube-api-upload-video/youtube-api-upload-video-cheat-sheet.webp)

*Preview of the free YouTube API upload cheat sheet (PDF).*

## Where YouTube's pages disagree

**Five differences we found while checking this guide.** None of them stops an integration, but each can cost you a debugging session:

- **Description length.** The API says 5,000 bytes; YouTube Help says 5,000 characters. Count bytes.

- **Upload cost in older pages and posts.** The 4 December 2025 revision note talks about "approximately 100 units" per upload; since June 2026 the quota page counts 1 call in a separate bucket. Many tutorials still say 1,600 units.

- **Default privacy.** The API says uploads default to public; the revision note and YouTube Help add that some accounts, such as creators aged 13 to 17, default to private. Always send privacyStatus.

- **Maximum length.** The API states 256 GB and no duration; YouTube Help says "256 GB or 12 hours, whichever is less". Our checker applies both.

- **Thumbnail size by device.** thumbnails.set accepts 50 MB; YouTube Help says limits "depend on the device", lists 50 MB for Shorts thumbnails only on desktop and mentions only video and podcast thumbnails for mobile. The API's 50 MB is the number for your app.

## When a unified API is the shorter path

**The upload itself is the easy part; reviews and upkeep take the time.** OAuth verification, the quota audit, the required notice, the Pacific Time quota day and the shared project quota are work every YouTube integration repeats, and you repeat it for every other network you add. Our comparison of [unified social media APIs vs native APIs](https://apiwings.com/blog/unified-social-media-api-vs-native) puts numbers on that work, our guide on how to [post to multiple social networks with one API call](https://apiwings.com/blog/post-to-multiple-social-networks-api) shows what changes per network, and our [comparison of social media API limits](https://apiwings.com/blog/social-media-api-limits) shows how YouTube's quota compares with other networks.

**Where APIWings stands with YouTube on 30 November 2026, according to its public status page ([llms.txt](https://apiwings.com/llms.txt)) and its [YouTube docs](https://apiwings.com/docs/youtube):** YouTube is in review and is not available yet, neither publicly nor in a beta. The [APIWings](https://apiwings.com/) social media API opens it to every customer once Google approves the integration. Today the API is live for Bluesky, LinkedIn personal profiles and X.

## Sources and review date

**Every rule in this guide was checked on 30 November 2026:**

| Page                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Last updated by Google             | What we took from it                                                                    |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|---------------------------------------------------------------------------------------------|
| [videos.insert](https://developers.google.com/youtube/v3/docs/videos/insert) and [video resource](https://developers.google.com/youtube/v3/docs/videos)                                                                                                                                                                                                                                                                                                                                                       | 23 Nov 2026                            | Fields, limits, privacy default, scheduling, disclosures, scopes, file size                 |
| [Quota costs](https://developers.google.com/youtube/v3/determine_quota_cost)                                                                                                                                                                                                                                                                                                                                                                                                                                    | 12 Nov 2026                            | Buckets, defaults, costs, Pacific Time reset, invalid requests                              |
| [Quota and compliance audits](https://developers.google.com/youtube/v3/guides/quota_and_compliance_audits)                                                                                                                                                                                                                                                                                                                                                                                                      | 23 Nov 2026                            | Audit, quota extension, no audit for public uploads                                         |
| [Revision history](https://developers.google.com/youtube/v3/revision_history)                                                                                                                                                                                                                                                                                                                                                                                                                                   | 24 Nov 2026                            | Changes from December 2025 to November 2026                                                 |
| [Resumable uploads](https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol)                                                                                                                                                                                                                                                                                                                                                                                                            | 12 Nov 2026                            | Sessions, status checks, resuming, expiry, chunks                                           |
| [Errors](https://developers.google.com/youtube/v3/docs/errors)                                                                                                                                                                                                                                                                                                                                                                                                                                                  | 18 Nov 2026                            | Upload, quota and thumbnail errors                                                          |
| [thumbnails.set](https://developers.google.com/youtube/v3/docs/thumbnails/set), [thumbnails](https://developers.google.com/youtube/v3/docs/thumbnails), [playlistItems.insert](https://developers.google.com/youtube/v3/docs/playlistItems/insert), [videos.list](https://developers.google.com/youtube/v3/docs/videos/list), [channels.list](https://developers.google.com/youtube/v3/docs/channels/list) and [playlistItems.list](https://developers.google.com/youtube/v3/docs/playlistItems/list) | 12 Nov 2026                            | Formats, sizes, costs, scopes, Shorts thumbnails, uploads playlist                          |
| [YouTube API Services Terms of Service](https://developers.google.com/youtube/terms/api-services-terms-of-service) and [Developer Policies](https://developers.google.com/youtube/terms/developer-policies)                                                                                                                                                                                                                                                                                                   | 6 Nov 2026                             | Required notice, own channel, consent, privacy choice, revocation, data storage, inactivity |
| [OAuth 2.0 overview](https://developers.google.com/identity/protocols/oauth2), [scopes](https://developers.google.com/identity/protocols/oauth2/scopes), [sensitive scope verification](https://developers.google.com/identity/protocols/oauth2/production-readiness/sensitive-scope-verification) and [web server flow](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps)                                                                                                       | 19 Nov, 14 Sep, 10 Nov and 19 Nov 2026 | Testing mode, refresh tokens, sensitive scopes, verification, endpoints                     |
| [Unverified apps](https://support.google.com/cloud/answer/7454865) and YouTube Help on [uploads](https://support.google.com/youtube/answer/57407), [long videos](https://support.google.com/youtube/answer/71673), [Shorts](https://support.google.com/youtube/answer/15424877) and [thumbnails](https://support.google.com/youtube/answer/72431)                                                                                                                                                       | Not dated                              | User cap, personal mode, channel limits, 15 minutes, 12 hours, Shorts, thumbnails           |

## FAQ

### How many videos can I upload a day with the YouTube API?

By default, 100 per Google Cloud project: since June 2026, videos.insert has its own quota bucket of 100 calls a day, each call costing 1. Every channel that uses your app shares that number, and it resets at midnight Pacific Time. Each channel also has its own daily upload limit, which YouTube does not publish and which returns uploadLimitExceeded. More quota needs a compliance audit.

### Are videos uploaded through the API still private until an audit?

No. Since 2 November 2026, videos uploaded with videos.insert from unverified API projects are no longer restricted to private viewing mode. YouTube reversed the policy it introduced on 28 July 2020. You can upload public or unlisted videos within the default quota without an audit; the audit is now about getting more quota.

### How much quota does a YouTube upload cost?

One call from the videos.insert bucket, which allows 100 a day; Google documents no specific cost for the PUT requests that carry the file. A custom thumbnail costs 50 units and adding the video to a playlist another 50, both from the separate bucket of 10,000 units a day. Before December 2025 an upload cost about 1,600 units of a single 10,000-unit quota, which is why older guides talk about six uploads a day.

### Do I need Google's app verification to upload to YouTube?

To open your app to any Google account, yes, if your scopes are classified as sensitive; the Google Cloud console shows the classification of each scope. Until Google verifies the app, it works only for the test users you list (with refresh tokens that expire after 7 days) or, in production, for at most 100 new users behind the unverified app screen. Verification asks for a justification of each scope, a demonstration video and a verified domain with a privacy policy. Internal Workspace apps and personal mode apps do not need it.

### How do I upload a YouTube Short with the API?

Upload it like any other video with videos.insert. There is no Shorts parameter: YouTube treats a square or vertical video of up to three minutes as a Short. To set a custom thumbnail on a Short, wait until processingDetails.processingStatus is succeeded, then call thumbnails.set; the channel's account must be verified.
