YouTube Shorts publishing API

PubNio has no separate Shorts placement: a short clip goes up with placement: "video" like any YouTube video. YouTube decides which videos are Shorts by its own rules: square or vertical, up to 3 minutes. YouTube's rules below were read 2026-12-05.

Live · platform rules read 2026-12-05View as Markdown

Rules for YouTube Shorts

RuleValue
Placementvideo
Mediavideo
Items per post1
Caption limit5,000 characters
  • YouTube decides which videos are Shorts by its own rules: square or vertical, up to 3 minutes. Its Help Center states the rule for uploads; it does not say how API uploads are sorted.
  • The upload needs a title and a privacyStatus, like any YouTube video.
FactValueTheir wordsSource
Short length3 minutes"Up to 3 minutes."YouTube Help: Upload YouTube Shorts, read 2026-12-05
Short shapeSquare or vertical"With a square or vertical aspect ratio"YouTube Help: Upload YouTube Shorts, read 2026-12-05
Title length (characters)100"The value has a maximum length of 100 characters"YouTube Data API: Videos resource, read 2026-12-05
Uploads per day, per project100"with default limits of 100 uploads per day and 100 per minute per project"YouTube Data API: Videos: insert, read 2026-12-05

Settings

Set these under the target's settings. All are optional unless marked required.

FieldWhat it does
titleThe title, 1 to 100 characters. Required.
descriptionUp to 5,000 characters.
privacyStatuspublic, unlisted, or private. Required.
firstCommentA comment PubNio posts under the published post.
tagsUp to 30 tags.
categoryIdA YouTube category ID.
madeForKidsDeclare the video made for kids.
containsSyntheticMediaDisclose realistic altered or synthetic content.
thumbnailMediaIdA workspace image to set as the thumbnail.
notifySubscribersNotify subscribers about the upload.
licenseyoutube or creativeCommon.
embeddableAllow embedding on other sites.
publicStatsViewableShow view counts publicly.

Publish request

A vertical clip, public and declared not made for kids.

youtube-shorts-request.http
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: youtube-short-tip
Content-Type: application/json

{
  "text": "One keyboard shortcut a day.",
  "publishNow": true,
  "targets": [
    {
      "accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
      "provider": "youtube",
      "placement": "video",
      "settings": {
        "title": "Split a pane in one keystroke",
        "privacyStatus": "public",
        "madeForKids": false
      },
      "media": [
        {
          "mediaId": "2d6e8f10-3a5b-4c7d-9e1f-a2b3c4d5e6f7"
        }
      ]
    }
  ]
}

Limits

  • PubNio does not check length or aspect ratio for Shorts; YouTube applies its own rules to the upload.

Sources