---
title: "YouTube Shorts & Video API guide"
description: "Upload YouTube videos and Shorts reliably with privacyStatus validation, quotas, and durable workflows."
---

> 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 Shorts & Video API guide

PubNio uploads videos and Shorts to connected YouTube channels via the YouTube
Data API v3 (`videos.insert`), running upload and status confirmation inside
durable Cloudflare Workflows so long transfers finish reliably after your agent
or API caller disconnects.

## Key upload requirements

- **Video file:** Stage an MP4 or MOV video into PubNio via
  `POST /api/v1/media/import` and wait until
  `GET /api/v1/media/{mediaId}/status` reports `ready`.
- **Shorts classification:** YouTube automatically classifies vertical or
  square videos up to 3 minutes as Shorts (no separate endpoint required).
- **Title and privacy:** Every YouTube target requires a `title` and a valid
  `privacyStatus`:
  - `public`: Immediately visible on the channel.
  - `unlisted`: Accessible via direct link only (recommended for human review
    before flipping public).
  - `private`: Visible only to the channel owner.

> **Human-in-the-loop review for agents**
>
> When giving an AI agent autonomous YouTube upload access, default
> `privacyStatus` to `unlisted` so your team can inspect the rendered Short
> before publishing it publicly.

## Handling YouTube daily quotas

YouTube Data API v3 enforces daily upload quota units (resetting at midnight
Pacific Time) and per-channel 24-hour upload caps. Use PubNio's per-account
weekly queues to space uploads smoothly and avoid `quotaExceeded` or
`uploadLimitExceeded` failures.

## Google API Services Limited Use

PubNio accesses Google and YouTube APIs strictly to publish videos you
authorize, adhering to the Google API Services User Data Policy (Limited Use).
See our [Privacy Policy](https://pubnio.com/privacy) for full details and
revocation instructions.

## Related

- [YouTube error codes](https://pubnio.com/docs/errors/youtube/)
- [YouTube Publishing API](https://pubnio.com/platforms/youtube)
- [YouTube MCP Server](https://pubnio.com/youtube-mcp)

Source: https://pubnio.com/docs/guides/youtube-shorts-api/index.mdx
