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.
At a glance
| API | YouTube Data API v3 |
| Connection | OAuth — supply an access token |
| Formats | Video |
| Character limit | 5,000 |
| Media | Supported — 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:
| Field | Send as | Required | Where to find it |
|---|---|---|---|
| Access tokensecret | accessToken | Required | youtube.upload scope |
| Refresh tokensecret | refreshToken | Optional | — |
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
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.