---
title: "YouTube upload video API: POST /upload/youtube/v3/videos"
description: "When PubNio calls YouTube's upload video request, POST /upload/youtube/v3/videos: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# YouTube upload video API: POST /upload/youtube/v3/videos

PubNio calls YouTube's `POST /upload/youtube/v3/videos` (`youtube.videos.insert`) to upload a video to a YouTube channel. Values checked 2026-12-05.

## How PubNio calls it

- Publishing: [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) (unless it saves a draft), [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish), or [`POST /api/v1/posts/{postId}/targets/{targetId}/retry`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/targets/{targetId}/retry) starts the delivery.
- PubNio opens a resumable session with `uploadType=resumable` and `part=snippet,status`, then sends 8-MiB chunks to the session URL, which must stay on Google's upload host and path.
- Each chunk but the last is a multiple of 256 KiB. A `308` answer carries the committed range, so a resumed step reads the offset first and sends only what is missing.
- The snippet carries title, description, tags, and category; the status carries privacy, made-for-kids, synthetic-media, license, embeddable, and public-stats settings.

| Value           | Official value                                                   | Source                                                                                              | Checked    |
| --------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ---------- |
| Upload cost     | 1 call from the 100-per-day upload bucket                        | [YouTube Data API: Quota Calculator](https://developers.google.com/youtube/v3/determine_quota_cost) | 2026-12-05 |
| Uploads per day | 100                                                              | [YouTube Data API: Videos: insert](https://developers.google.com/youtube/v3/docs/videos/insert)     | 2026-12-05 |
| Video size      | 256 GiB; another official page: 256 GB or 12h, whichever is less | [YouTube Data API: Videos: insert](https://developers.google.com/youtube/v3/docs/videos/insert)     | 2026-12-05 |

## Scopes

- The pinned spec accepts any one of 4 scopes: `https://www.googleapis.com/auth/youtube`, `https://www.googleapis.com/auth/youtube.force-ssl`, `https://www.googleapis.com/auth/youtube.upload`, and `https://www.googleapis.com/auth/youtubepartner`.
- PubNio's Google sign-in requests `https://www.googleapis.com/auth/youtube.force-ssl` and `https://www.googleapis.com/auth/youtube.upload`, which satisfies it.
- Before a delivery makes this call, PubNio checks that the account granted `https://www.googleapis.com/auth/youtube.upload`.

## Errors

PubNio has no YouTube error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`youtube.videos.insert` in the pinned spec, revision `20261124`. YouTube reference: [youtube.videos.insert reference](https://developers.google.com/youtube/v3/docs/videos/insert).

PubNio's generated YouTube client leaves this method out (media upload requires a dedicated transport), so a hand-written adapter sends it.

Checked weekly; no change to `POST /upload/youtube/v3/videos` recorded since this revision. [Change tracker](https://pubnio.com/docs/changes/).

## Limits

- PubNio uploads only from stored media with a known size and a `video/*` type.

## Sources

- [YouTube Data API v3 discovery document](https://youtube.googleapis.com/$discovery/rest?version=v3)
- [youtube.videos.insert reference](https://developers.google.com/youtube/v3/docs/videos/insert)
- [YouTube Data API: Quota Calculator](https://developers.google.com/youtube/v3/determine_quota_cost), checked 2026-12-05
- [YouTube Data API: Videos: insert](https://developers.google.com/youtube/v3/docs/videos/insert), checked 2026-12-05
- [YouTube Help: Upload videos longer than 15 minutes](https://support.google.com/youtube/answer/71673), checked 2026-12-05

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [YouTube rate limits and quota](https://pubnio.com/docs/providers/youtube/quota/)

Source: https://pubnio.com/docs/providers/youtube/operations/videos-insert/index.mdx
