Schedule YouTube uploads via API
Upload now and let YouTube publish later, or queue the upload itself.
- Schedule video posts
- A local time plus a time zone
- Reschedule or cancel until it goes out
- Same results, refunds and webhooks as posting now
const pk = new Postkey(process.env.POSTKEY_API_KEY);
await pk.posts.create({
content: "Full walkthrough of the v2 dashboard, chapters in the description.",
mediaItems: [
{
type: "video",
url: "https://cdn.example.com/walkthrough.mp4"
}
],
platforms: [
{
platform: "youtube",
accountId: "acc_yt_654",
platformSpecificData: {
title: "Postkey v2 dashboard walkthrough",
visibility: "public",
madeForKids: false
}
}
],
scheduledFor: "2026-12-01T09:00:00",
timezone: "America/New_York"
});- YouTubequeued
Queued for Dec 1, 09:00 New York time
Schedule your first YouTube post
- 1
Connect YouTube
Your customer signs in through YouTube'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
Schedule
Add scheduledFor and timezone to the same request. It goes to YouTube at that time, and a webhook tells you how it went.
Every YouTube format, one endpoint
Pick a format to see the exact request with a publish time and what comes back. Options that only make sense on YouTube sit under "youtube".
A regular upload with title, description and privacy.
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6 "content": "Full walkthrough of the v2 dashboard, chapters in the description.",7 "mediaItems": [8 {9 "type": "video",10 "url": "https://cdn.example.com/walkthrough.mp4"11 }12 ],13 "platforms": [14 {15 "platform": "youtube",16 "accountId": "acc_yt_654",17 "platformSpecificData": {18 "title": "Postkey v2 dashboard walkthrough",19 "visibility": "public",20 "madeForKids": false21 }22 }23 ],24 "scheduledFor": "2026-12-01T09:00:00",25 "timezone": "America/New_York"26}202 · scheduled
Queued. It goes to YouTube at the time you set, in that time zone.
{
"success": true,
"postId": "post_3k9d2",
"status": "scheduled",
"scheduledFor": "2026-12-01T14:00:00Z",
"platforms": [
{
"platform": "youtube",
"accountId": "acc_yt_654",
"success": true
}
]
}Everything you need for YouTube scheduling
Checked against YouTube's rules
Before anything is sent, Postkey checks it against YouTube's published limits:
One extra field
Every YouTube format you can post now can be scheduled with scheduledFor. Nothing else changes.
Move or cancel
Change the time or cancel the post with one call before it goes out.
Checked when queued
Text and media are checked against YouTube's rules when you schedule, so problems show up now.
Resumable uploads
Big files go up in chunks and pick up where they stopped if the connection drops. You just send a URL or a file.
Privacy and audience
Set public, unlisted or private, and the made-for-kids flag YouTube requires, in the same call.
Also for YouTube
Built in
Connect, publish, get told
Your users connect YouTube through a connect link. If YouTube fails inside a multi-network post, the others still go out and the YouTube 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
Same request shape on every platform. Add an account ID and the post goes there too.
- X Scheduling APIText · Image · Video · Thread
- Instagram Scheduling APIFeed post · Reel · Story · Carousel
- Facebook Scheduling APIText · Photo · Video
- TikTok Scheduling APIVideo · Photo
- LinkedIn Scheduling APIText · Image · Document
- You're hereYouTube Scheduling APIVideo
- YouTube Shorts Scheduling APIShort
- Pinterest Scheduling APIPin
- Google Business Scheduling APIUpdate post · Offer · Event
YouTube scheduling questions
Something not here? Email hello@postkey.dev.
What can I upload to YouTube?
Regular videos with title, description, privacy and the made-for-kids setting. For vertical short clips, see the YouTube Shorts page.
Why does the response say 'processing'?
YouTube processes every upload before it's watchable. The call returns right away and a webhook follows when it's done.
Why would an upload end up private?
YouTube locks uploads from API projects that haven't passed its audit to private. It's a YouTube rule for all API apps.
Can I set the publish time on YouTube itself?
Yes. Use the scheduling API and the video is uploaded as private with a publish time, so YouTube makes it public on time.
Do large files work?
Yes. Uploads are resumable, so a dropped connection doesn't mean starting over.
How do I schedule a YouTube post?
Send the normal post request with scheduledFor and timezone. You can cancel or move it until it goes out.
Schedule to YouTube for every customer.
Get a key, connect an account, send the request above.
Free while it's early. Read the docs