reeling.app

YouTube Video Upload API (2026)

To upload a video with the YouTube API, call videos.insert with an OAuth token that has the youtube.upload scope. Google's default quota is 100 videos.insert calls a day per project at 1 unit each, and since 2026-11-02 unverified projects are no longer forced to private.

Reviewed 2026-11-30 · Reeling product team

Quick Reference — TL;DR Summary

Start a resumable session, PUT the file to the session URI and read the 201 response. Public and unlisted uploads need no audit within the default quota; more quota does. With Reeling's REST API you send one JSON request with a video URL instead.

YouTube upload API at a glance (checked 2026-11-30)

TopicWhat Google documents
EndpointPOST https://www.googleapis.com/upload/youtube/v3/videos; part is required; files up to 256 GB.
ScopesAny one of youtube.upload, youtube, youtubepartner or youtube.force-ssl.
Quota100 videos.insert calls a day per project by default, 1 unit each, in their own bucket.
AuditNo API compliance audit for public or unlisted uploads within the default quota.
Default privacyPublic if privacyStatus is omitted; account settings can make some uploads private.
ShortsNo Shorts field; square or vertical videos up to three minutes are categorized as Shorts.

What you need before the first upload

You need a Google Cloud project with the YouTube Data API enabled, an OAuth 2.0 client and a channel to upload to. Google's Python guide uses a Desktop app client and asks for the youtube.upload scope once.

Google advises unlisted or private test uploads. Some of its client libraries handle resumable uploads for you; the raw requests below suit stacks without one.

Upload a video with the YouTube API in four steps

Google calls resumable uploads useful for large files and unstable connections. The protocol has four steps but only two requests on a good day: start a session with the metadata, then PUT the file to the session URI.

# 1. Start a session with the metadata
FILE_BYTES=$(wc -c < video.mp4)
curl -i -X POST "https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json; charset=UTF-8" \
  -H "X-Upload-Content-Length: $FILE_BYTES" \
  -H "X-Upload-Content-Type: video/mp4" \
  -d '{"snippet":{"title":"Upload test"},"status":{"privacyStatus":"private"}}'

# 2. Copy the Location header of the 200 response
SESSION_URI="https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&upload_id=..."

# 3. PUT the file to the session URI
curl -i -X PUT "$SESSION_URI" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: video/mp4" \
  -T video.mp4

# 4. 201 Created returns the video resource and its id

Set title, privacy and the fields Google changed in November 2026

On 2026-11-02 Google stopped forcing uploads from unverified projects into private mode, and on 2026-11-16 paid product placement stopped defaulting to false. Set privacy and placement yourself instead of relying on defaults.

FieldWhat to know (checked 2026-11-30)
snippet.titleUp to 100 characters; an empty or invalid title returns invalidTitle (400).
status.privacyStatuspublic, unlisted or private. Omitted means public, but creator account settings can default some uploads to private.
status.publishAtSchedules publishing. Only for a private video that was never published, in ISO 8601; a past time publishes at once.
paidProductPlacementDetailsSince 2026-11-16 an omitted hasPaidProductPlacement no longer counts as false. Add the part and send false to declare none.

Stay inside the 100-uploads-a-day quota

Google's default is 100 videos.insert calls a day per project at 1 unit each, in their own quota bucket. All other endpoints share a combined 10,000 units a day. Quotas reset at midnight Pacific Time.

The limit belongs to the project, so every channel you upload for shares it. Queue uploads, count your own calls and stop at 100 until the reset. More quota needs a compliance audit through Google's Audit and Quota Extension Form.

Older figures of 1,600 units per upload or 6 uploads a day are out of date.

Upload YouTube Shorts with the API

videos.insert has no Shorts field. Google's Shorts help says a video with a square or vertical aspect ratio up to three minutes is categorized as Shorts. Export 9:16, stay within three minutes and check how YouTube labels the result.

Since 2026-11-03, thumbnails.set (about 50 units) can add a custom Shorts thumbnail, but only after video processing is complete.

Fix failed and interrupted uploads

Cap your retries: Google says even invalid API requests cost at least one point.

What you seeWhat to do
Lost connection, or 500, 502, 503 or 504Back off exponentially, then check the upload with an empty PUT to the session URI and Content-Range: bytes */FILE_BYTES.
308 with Range: bytes=0-999999The first 1,000,000 bytes arrived. For a 3,000,000-byte file PUT the rest with Content-Range: bytes 1000000-2999999/3000000. No Range header means nothing arrived.
404 on the session URIThe session expired. Start again at step 1 and upload from the first byte.
Any other 4xx or 5xxPermanent failure. Read the error, fix the request, start a new session.
400 uploadLimitExceededGoogle: the user has exceeded the number of videos they may upload. That wording points at the user's limit, not your project's quota.

Send the same upload with the Reeling API (REST + MCP)

Reeling's POST /publish replaces the session and upload requests with one JSON request that carries a public video_url, and returns a post_id. Poll GET /posts/{id} rather than resubmitting, because a timeout is an unknown result. Pass channel_ids from GET /channels when a project has several YouTube channels.

In tools/list on 2026-11-30, reeling_publish_post has no youtube option object, so it cannot set privacy_status. Test visibility over REST first.

# REST
curl --fail-with-body -X POST https://api.reeling.app/api/v1/publish \
  -H "X-API-Key: $REELING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "project_id": "YOUR_PROJECT_UUID",
  "channel_ids": ["YOUR_YOUTUBE_CHANNEL_UUID"],
  "platforms": ["youtube"],
  "video_url": "https://example.com/video.mp4",
  "title": "Upload test",
  "caption": "A short description.",
  "youtube": { "privacy_status": "private", "made_for_kids": false },
  "scheduled_for": "2027-06-01T15:00:00Z"
}'

# MCP tools/call parameters
{
  "name": "reeling_publish_post",
  "arguments": {
    "project_id": "YOUR_PROJECT_UUID",
    "platforms": ["youtube"],
    "title": "Upload test",
    "content": "A short description.",
    "video_url": "https://example.com/video.mp4",
    "scheduled_at": "2027-06-01T15:00:00Z"
  }
}

What a unified API cannot do for YouTube

It cannot remove Google's rules: quota counts per Google Cloud project, and whoever owns that project owns its quota and audit status. In Reeling you connect a channel through Google OAuth, and public uploads depend on the connected channel and the app's current capability, so start with privacy_status private.

Call Google directly for tags, category, playlists, captions, the paid product placement declaration or files above 100 MiB: Reeling has no fields for those and takes MP4, MOV or WebM up to 100 MiB. Use Reeling when one request should reach several networks. API and MCP access start on Creator ($19 a month, 5,000 requests a month); Agency ($39) allows 50,000; Starter has none.

Primary sources read on 2026-11-30

Google figures above were read on these pages on 2026-11-30.

Frequently Asked Questions

How do I upload a video to YouTube using the API?

Send an authorized POST to https://www.googleapis.com/upload/youtube/v3/videos with uploadType=resumable and part=snippet,status. Copy the Location header from the 200 response, PUT the file to that session URI and expect 201 Created. The token needs the youtube.upload scope; set privacyStatus to private while you test.

What is the YouTube API upload limit per day?

Google's default is 100 videos.insert calls a day per project at 1 unit each, in a separate quota bucket. All other endpoints share 10,000 units a day, and quotas reset at midnight Pacific Time. More quota needs a compliance audit and Google's extension form.

Do I need an audit to upload public videos with the YouTube API?

No. Since 2026-11-02 videos uploaded from unverified API projects are not restricted to private, and Google says you don't need an API Compliance Audit to upload public or unlisted videos within your default quota. An audit is the route to more quota.

Can I upload YouTube Shorts with the API?

Yes, with the same videos.insert call; it has no Shorts field. Google's Shorts help says a square or vertical video up to three minutes is categorized as Shorts. Since 2026-11-03, thumbnails.set can add a custom Shorts thumbnail after processing finishes.

How do I resume a failed YouTube upload?

Send an empty PUT to the session URI with Content-Range: bytes */FILE_BYTES. A 308 response with a Range header shows how many bytes arrived, so PUT the rest from the next byte. Back off exponentially after a 500, 502, 503 or 504. A 404 means the session expired: start again.

Try it with your own workflow

Start with the offline examples, check the intended account and choose the next action deliberately.

Open the runnable examplesCreate a Reeling workspace