1. How YouTube classifies Shorts uploads
YouTube evaluates the uploaded video's aspect ratio and duration automatically on ingestion. Keep Shorts strictly vertical (9:16, 1080x1920 recommended) or square (1:1) and within 60 seconds, with a clear title under 100 characters.
| Parameter | Requirement |
|---|---|
| Title | Required; up to 100 characters |
| Description | Optional; up to 5,000 characters |
| Aspect ratio (Shorts) | Vertical 9:16 or square 1:1, <= 60 seconds |
| Privacy status | public, unlisted, or private (unverified apps lock to private) |
| YouTube quota cost | ~1,600 units per videos.insert call out of 10,000 default daily units |
2. Resumable uploads without hanging serverless functions
Uploading multi-hundred-megabyte MP4 files directly inside a short-lived HTTP request handler causes frequent timeouts. PubNio stages media first and handles resumable uploads independently of the request.
const video = await ws.media.importUrl({
url: "https://cdn.example.com/release-short-9x16.mp4",
});
const draft = await ws.posts.create({
isDraft: true,
title: "60-second MCP social publishing demo",
text: "Connect Claude Code or Codex to 7 social platforms with $0/account.",
targets: [
{
accountId: youtubeChannelId,
placement: "short",
media: [{ mediaId: video.mediaId }],
settings: { privacyStatus: "public" },
},
],
});
await ws.posts.publish(draft.postId, { idempotencyKey: "yt-short-01" });