Skip to content
For developers

YouTube upload API: post videos and Shorts with one REST call

To upload a video to YouTube from code, you call the YouTube Data API's videos.insert method with an OAuth token that carries an upload scope. It is a solid API, but you have to run Google Cloud setup, consent screens, token refresh and a daily quota. The PostMyReels API takes the same video as one POST /posts request, with title, tags, privacy and playlist as plain JSON, and returns a status per platform. YouTube works today on every plan, Free too.

Official YouTube Data API · Test keys post nothing · Shorts and long videos
Posts natively toTikTokInstagramYouTube
Before you connect

What YouTube needs

These are the platforms' rules, not ours. We check them before the login window opens.

YouTube
  • Pick the right channel in Google's account chooser (Brand Accounts included).
  • Videos over 15 minutes need a verified YouTube account.
  • Every upload needs a title; vertical videos up to 3 minutes post as Shorts.
YouTube step-by-step guide →

How uploading to YouTube by API works

The official route is the videos.insert method of the YouTube Data API v3. You send a POST to the upload endpoint with the video file and metadata (title, description, tags, privacy status). Google's reference says the request must be authorized with one of the upload-capable OAuth scopes, for example https://www.googleapis.com/auth/youtube.upload, and it lists a maximum file size of 256 GB.

An API key alone cannot upload. Uploading acts on a channel, so it needs OAuth consent from the channel's owner. That is why "how do I get a YouTube API key" is the first search and also the wrong turn; our API key guide explains the difference.

Then there is quota. As of November 2026, Google's reference lists videos.insert at 1 unit per call from a separate upload bucket with a default of 100 calls per day, reset at midnight Pacific Time. Older posts quote very different numbers, so check the quota cost page and your Cloud Console before you plan around any figure. More in our quota guide.

One call instead of a Google Cloud project

One POST in, a webhook back
One POST in, a webhook back

What you get

Videos and Shorts

Send a public URL or an uploaded media_id. We check duration and aspect ratio on the file and tell you whether it posts as a Short before it is queued.

YouTube fields as JSON

A youtube object takes title (up to 100 characters), description (up to 5,000), tags, privacy_status, category_id, made_for_kids, thumbnail_url and playlist_id.

Large files

For big videos, upload in parts to POST /media/uploads (browser uploads up to 500 MB) and reference the finished media_id, so your request never carries the file.

Scheduling

Use scheduled_at with a timezone or add_to_queue. We hold the post and upload at the time you chose, so you do not manage a job runner.

Quota errors you can act on

If the day's YouTube quota runs out, the delivery fails with yt_quota_exhausted and retries after the reset. No raw 403 to decode.

Webhooks and retries

Signed post.published and post.failed events, plus POST /posts/{id}/retry for failed deliveries.

Example: upload a Short

Production base URL: https://api.postmyreels.com/api/v1. Keys starting with pmr_test_ validate and simulate without uploading.

curl -X POST https://api.postmyreels.com/api/v1/posts \
  -H "Authorization: Bearer pmr_live_xxx" \
  -H "Content-Type: application/json" -d '{
    "profile": "bakery-kowalski",
    "platform": ["youtube"],
    "media": [{"url": "https://cdn.example.com/short.mp4"}],
    "scheduled_at": "2027-02-20T16:00:00",
    "timezone": "America/New_York",
    "youtube": {
      "title": "Fresh sourdough every morning #Shorts",
      "description": "Baked at 5am.",
      "tags": ["bakery", "sourdough"],
      "privacy_status": "public",
      "made_for_kids": false
    }
  }'

You get 202 Accepted with a post_id. Fetch GET /posts/{id} for the delivery, which includes the video URL once YouTube has it. Add "platform": ["youtube", "tiktok", "instagram"] and the same request fans out to all three.

Direct YouTube Data API vs the PostMyReels API

YouTube Data API directlyPostMyReels API
SetupGoogle Cloud project, enable the API, OAuth consent screen, credentialsOne key from your account
Channel loginYou build the OAuth flow and store refresh tokensHosted connect link, or the dashboard
QuotaYour project's quota; extra needs a request to GoogleOur project's quota, shared by customers; yt_quota_exhausted and retry
Verification and auditYours: OAuth verification for sensitive scopes, plus Google's API audit for production useOurs, approved on 23 November 2026. Uploads publish with the privacy you choose; our daily quota is still the default while an increase request is reviewed
SchedulingUse publishAt on a private video, or run your own schedulerscheduled_at or queue
Other platformsSeparate integrationsSame request: TikTok (private until its audit), Instagram (after Meta's review)
ControlEvery YouTube API featureThe upload fields above, plus basic analytics; no comment management

If you need the full YouTube API surface, such as comments or analytics, use Google's API directly. If you only need to publish reliably, an API on top saves the setup. Prefer a dashboard? See the YouTube Shorts scheduler.

Honest status

YouTube works today: Google approved our OAuth verification and YouTube API audit on 23 November 2026. Uploads publish with the privacy you choose, and our daily YouTube upload quota is still the default while an increase request is reviewed. We do not promise a date for a higher quota. Start free

Checklist if you build the upload yourself

  1. Create a Google Cloud project and enable the YouTube Data API v3.
  2. Set up the OAuth consent screen. The upload scopes are sensitive, so Google's verification applies before you can serve the public.
  3. Send the channel owner through OAuth and store the refresh token safely.
  4. Call videos.insert with the metadata and the file. For big files use a resumable upload, so a dropped connection does not restart from zero.
  5. Watch quota and handle failures. A quota error and a revoked token need different fixes.
  6. Ask Google to review your project if uploads must be public and production-ready.

It is a day or two of work for a first upload and an ongoing task to keep it healthy. If that is your product, build it. If posting is a means to an end, a single request to ours is shorter. Either way, test with pmr_test_ keys first so nothing goes live by accident.

Who uses this

Automation builders push finished videos from a folder, Airtable or a CMS into YouTube through n8n, Make or Zapier using an HTTP Request step. Agencies post for many channels with one key and send clients a white-label connect link. Product teams add "publish to YouTube" to their app without a Google review of their own. And creators who would rather click can use the dashboard.

Moving from Upload-Post? Field names like youtube_title, tags[], privacyStatus and selfDeclaredMadeForKids are accepted as they are, and the Apikey header works, so migrating usually means a new base URL and key. Unsupported fields for other networks are ignored with a warning.

Free plan, no card: sign in with Google and start now. YouTube works today. TikTok posts publish as private ("Only me") until TikTok’s audit of our app passes. Instagram opens after Meta’s review.

See it in 40 seconds

One caption in. Three native posts out.

How it works

Three steps. The first one takes half a minute.

  1. Connect your accounts

    We show what each platform needs (Business account, linked Page, right channel) before the login window opens, then run a private test post so you know it works.

  2. Upload once, write once

    Drop a video or photos. We check ratio, length and size on upload, and only ask for platform extras that are really required.

  3. Schedule or post now

    One button: "Schedule to 3 accounts". Track every platform in one row. If one fails, you see why and retry in one click.

Developers and automations

Your first post is one request.

The same posts, from code. Test keys validate everything and post nothing.

</>Read the API docs
curl https://api.postmyreels.com/api/v1/posts \
  -H "Authorization: Bearer pmr_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "profile": "bella-bakery",
    "platform": ["tiktok", "instagram", "youtube"],
    "media": [{ "url": "https://cdn.example.com/autumn.mp4" }],
    "caption": "Autumn menu is here",
    "title": "Autumn menu at Bella Bakery",
    "tiktok": { "privacy_level": "PUBLIC_TO_EVERYONE" },
    "scheduled_at": "2026-11-20T09:30:00Z"
  }'

# 202 → { "post_id": "post_01J5", "status": "queued", "deliveries": [3] }
Pricing

Pay per brand, not per click.

Compare plans and limits →
Free$01 profile · 3 accounts · 10 posts a month
Creator$19/ mo3 profiles · 15 accounts · 1,000 posts
AgencyWhite-label$49/ mo25 profiles · 150 accounts · 10,000 posts
Business$149/ mo250 profiles · 1,500 accounts · 100,000 posts

Every plan: all platforms, scheduling, queue, API. Extra profiles from $3 down to $1 a month each, 5 more accounts per profile. Yearly: save 17%.

FAQ

Straight answers

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

Call the YouTube Data API's videos.insert method with an OAuth token that has an upload scope such as youtube.upload, the video file and the metadata. Or send one POST /posts request to PostMyReels with platform set to youtube and we do the upload.

Can I upload to YouTube with just an API key?

No. An API key identifies your project but cannot act on a channel. Uploads need OAuth consent from the channel owner.

What is the YouTube API upload quota?

As of November 2026, Google's reference lists videos.insert at 1 unit per call from a separate upload bucket with a default of 100 calls a day, reset at midnight Pacific. Check Google's quota page and your Cloud Console for your project's current numbers.

Does the API upload YouTube Shorts?

YouTube decides what counts as a Short from the video itself, mainly vertical format and short duration. We check the file and tell you whether it will post as a Short. Putting #Shorts in the title is common practice.

Can I schedule a YouTube upload through the API?

Yes. Send scheduled_at and a timezone, or add the post to the profile's queue. We upload at that time.

Will my YouTube uploads be private?

No. Uploads through PostMyReels publish with the privacy you choose (public, unlisted, private or scheduled). Our daily YouTube upload quota is still the default while our increase request is reviewed.

Start free today.

Free plan, no card: sign in with Google and start now. YouTube works today. TikTok posts publish as private ("Only me") until TikTok’s audit of our app passes. Instagram opens after Meta’s review.

Start freeAsk your AI