YouTube Shorts Posting API
Publish vertical short videos to YouTube Shorts, or send the same clip to Shorts, Reels and TikTok in one call.
- Shorts from the same endpoint as every other post
- Length and shape checked before upload
- Channels connect through Google's login
- Cross-post one clip to Reels and TikTok too
const pk = new Postkey(process.env.POSTKEY_API_KEY);
await pk.posts.create({
content: "The 20-second version of our launch #Shorts",
mediaItems: [
{
type: "video",
url: "https://cdn.example.com/launch-vertical.mp4"
}
],
platforms: [
{
platform: "youtube",
accountId: "acc_yt_654",
platformSpecificData: {
title: "Launch in 20 seconds",
visibility: "public",
madeForKids: false
}
}
],
publishNow: true
});- YouTube Shortsprocessing
YouTube Shorts is processing it · webhook on finish
Your first YouTube Shorts post in three steps
- 1
Connect YouTube Shorts
Your customer signs in through YouTube Shorts's own login. You get an account ID, never a password.
- 2
Get the account id
List connected accounts. The id of the new account is the accountId you post with.
- 3
Post
Send the post to /v1/posts with that accountId. The YouTube Shorts result comes back in the response and by webhook.
Every YouTube Shorts format, one endpoint
Pick a format to see the exact request and what comes back. Options that only make sense on YouTube Shorts sit under "youtube".
A vertical or square clip that YouTube shows as a Short.
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6 "content": "The 20-second version of our launch #Shorts",7 "mediaItems": [8 {9 "type": "video",10 "url": "https://cdn.example.com/launch-vertical.mp4"11 }12 ],13 "platforms": [14 {15 "platform": "youtube",16 "accountId": "acc_yt_654",17 "platformSpecificData": {18 "title": "Launch in 20 seconds",19 "visibility": "public",20 "madeForKids": false21 }22 }23 ],24 "publishNow": true25}202 · publishing
YouTube Shorts processes this first. The final result arrives by webhook.
{
"success": true,
"postId": "post_3k9d2",
"status": "publishing",
"platforms": [
{
"platform": "youtube",
"accountId": "acc_yt_654",
"success": true
}
]
}Everything you need for YouTube Shorts posting
Checked against YouTube Shorts's rules
Before anything is sent, Postkey checks it against YouTube Shorts's published limits:
Same upload, Short result
YouTube has no separate Shorts API. A short vertical or square video uploaded normally becomes a Short. Postkey checks it qualifies first.
One clip, three platforms
Add Instagram and TikTok account IDs to the same request and the clip goes out as a Short, a Reel and a TikTok.
Processing tracked
YouTube processes the upload first. A webhook tells you when the Short is live, or why it failed.
Privacy and audience
Set public, unlisted or private and the made-for-kids flag in the same call.
Quota-aware queue
Uploads use YouTube API quota. Postkey queues them to stay inside it.
Also for YouTube Shorts
Built in
Connect, publish, get told
Your users connect YouTube Shorts through a connect link. If YouTube Shorts fails inside a multi-network post, the others still go out and the YouTube Shorts credits come back.
Works with your stack
Your code
Node and Python SDKs with the same calls, or plain REST from anything that speaks HTTP.
- Node
- Python
- {}REST
No-code tools
Call the REST API from an HTTP step in n8n, Make or Zapier. One request posts to every network.
- n8n
- Make
- Zapier
AI agents & MCP
The MCP server lets Claude, Cursor and other agent tools publish and schedule posts, and read the results.
- MCP server
Beyond YouTube Shorts
Same request shape on every platform. Add an account ID and the post goes there too.
- X Posting APIText · Image · Video · Thread
- Instagram Posting APIFeed post · Reel · Story · Carousel
- Facebook Posting APIText · Photo · Video
- TikTok Posting APIVideo · Photo
- LinkedIn Posting APIText · Image · Document
- YouTube Posting APIVideo
- You're hereYouTube Shorts Posting APIShort
- Pinterest Posting APIPin
- Google Business Posting APIUpdate post · Offer · Event
YouTube Shorts posting questions
Something not here? Email hello@postkey.dev.
Is there a separate YouTube Shorts API?
No. Shorts are uploaded through the normal YouTube upload. A short vertical or square video becomes a Short. Postkey checks length and shape before sending.
What makes a video count as a Short?
YouTube's own rules: a vertical or square video within the length limit listed above.
Can I post the same clip to Reels and TikTok?
Yes. Put the Instagram and TikTok account IDs in the same request. Each platform gets its own result and webhook.
Why does the response say 'processing'?
YouTube processes the upload before the Short is live. A webhook follows with the final result.
Why would a Short end up private?
YouTube locks uploads from API projects that haven't passed its audit to private, for every API app.
Can I schedule YouTube Shorts posts instead?
Yes. Add scheduledFor to the same request. See the YouTube Shorts Scheduling API page for details.
Post to YouTube Shorts for every customer.
Get a key, connect an account, send the request above.
Free while it's early. Read the docs