Platform guide · Video

YouTube

Upload videos and Shorts to YouTube. We open a resumable session, stream your file, and set the metadata — you send a title, description, and a link to the file.

OAuthYouTube Data API v3

At a glance

APIYouTube Data API v3
ConnectionOAuth — supply an access token
FormatsVideo
Character limit5,000
MediaSupported — pass a public URL

Connect YouTube

YouTube connects over OAuth. Complete the network’s OAuth to mint an access token, then connect YouTube from the dashboard’s Accounts page. These are the fields it needs:

FieldSend asRequiredWhere to find it
Access tokensecretaccessTokenRequiredyoutube.upload scope
Refresh tokensecretrefreshTokenOptional

Everything marked secret is sealed with AES-256-GCM before storage — see Connecting accounts.

Publish to YouTube

Once connected, YouTube is just another id in your platforms array. One call publishes:

curl https://postmyish.com/api/v1/posts \
  -H "Authorization: Bearer $POSTMYISH_KEY" \
  -H "Content-Type: application/json" \
  -d '{"caption":"How we shipped multi-platform publishing in a week","platforms":["youtube"]}'

The same request can fan out to TikTok, X and more — add their ids to the array. See Publish everywhere at once.

What you can do

  • Resumable upload. We init the session and stream the bytes — the correct, reliable path.
  • Shorts or long-form. A vertical clip lands as a Short; anything else as a standard video.
  • Metadata. First line becomes the title; the rest is the description.
  • Fan-out. Cross-post the same launch to TikTok and X in the same call.

Setup & review

The upload scope needs Google's OAuth verification before ~100+ users can connect, and uploads draw on a daily quota. The resumable-upload code is complete — verification and quota are Google's gates.

FAQ

Is this the official YouTube API?

Yes — the YouTube Data API v3 videos.insert endpoint with a resumable upload.

Can I upload Shorts?

Yes. YouTube classifies a vertical, short video as a Short automatically — upload it the same way.

What are the limits?

A video upload costs ~1,600 quota units against a default 10,000/day. Request more from Google for volume; we surface your usage.

Does it need review?

Google verifies apps that use the upload scope before more than ~100 users can connect. The code works today for test users; verification widens access.