Media Guidelines

YouTube

Video upload requirements for YouTube videos and Shorts

Video Types

YouTube automatically detects content type based on duration:

DurationTypeNotes
≤ 3 minutesYouTube ShortsVertical format, no custom thumbnails via API
> 3 minutesRegular VideoSupports custom thumbnails

Video Requirements

PropertyShortsRegular Video
Max Duration3 minutes12 hours
Min Duration1 second1 second
Max File Size256 GB256 GB
FormatsMP4, MOV, AVI, WMV, FLV, 3GPMP4, MOV, AVI, WMV, FLV, 3GP
Aspect Ratio9:16 (vertical)16:9 (horizontal)
Resolution1080 × 1920 px1920 × 1080 px (1080p)
PropertyShortsRegular Video
Resolution1080 × 1920 px3840 × 2160 px (4K)
Frame Rate30 fps24-60 fps
CodecH.264H.264 or H.265
AudioAAC, 128 kbpsAAC, 384 kbps
Bitrate10 Mbps35-68 Mbps (4K)

Upload Example

{
  "content": "My Latest Video\n\nIn this video, I share my thoughts on...\n\n#tutorial #howto",
  "mediaItems": [
    { "url": "https://example.com/video.mp4" }
  ],
  "platforms": [
    {
      "platform": "youtube",
      "accountId": "acc_123",
      "platformSpecificData": {
        "title": "My Latest Video",
        "visibility": "public"
      }
    }
  ]
}

Title and Description

PropertyLimitNotes
Title100 charactersDefaults to first line of content
Description5000 charactersFull content used

The content field becomes the video description. The title is either:

  1. Specified in platformSpecificData.title
  2. Auto-extracted from first line of content
  3. "Untitled Video" as fallback

Visibility Options

Control who can see your video:

VisibilityDescription
publicAnyone can search and watch (default)
unlistedOnly people with link can watch
privateOnly you and shared users
{
  "platformSpecificData": {
    "visibility": "unlisted"
  }
}

Custom Thumbnails

For regular videos (>3 min), add a custom thumbnail:

{
  "mediaItems": [
    {
      "url": "https://example.com/video.mp4",
      "thumbnail": {
        "url": "https://example.com/thumbnail.jpg"
      }
    }
  ]
}

Thumbnail Requirements

PropertyRequirement
FormatJPEG, PNG, GIF
Max Size2 MB
Resolution1280 × 720 px (16:9)
Min Width640 px

Note: Custom thumbnails are not supported for Shorts via API.

First Comment

Add an automatic pinned comment:

{
  "platformSpecificData": {
    "firstComment": "Thanks for watching! Don't forget to subscribe. What topics should I cover next? 👇"
  }
}
  • Max 10,000 characters
  • Posted immediately after upload
  • Can include links

Scheduled Videos

When scheduling a YouTube video:

  1. Video uploads immediately with specified visibility
  2. Stays in that state until scheduled time
  3. At scheduled time, may change to "public" if originally set
{
  "scheduledFor": "2024-12-25T10:00:00Z",
  "platforms": [
    {
      "platform": "youtube",
      "platformSpecificData": {
        "visibility": "private"
      }
    }
  ]
}

Supported Formats

FormatExtensionNotes
MPEG-4.mp4Recommended
QuickTime.movWell supported
AVI.aviSupported
WMV.wmvWindows Media
FLV.flvFlash Video
3GPP.3gpMobile format
WebM.webmSupported
MPEG-PS.mpgSupported

Common Issues

Video stuck processing

Large videos (>1 GB) may take 30+ minutes to process. Use scheduled posts for async handling.

Wrong video type detected

  • Shorts: ≤3 min + vertical aspect ratio
  • Regular: >3 min OR horizontal aspect ratio
  • Ensure aspect ratio matches intent

Thumbnail rejected

  • Must be exactly 16:9 aspect ratio
  • Max 2 MB file size
  • Min 640 px width
  • Not available for Shorts

Audio issues

  • Use AAC codec
  • Avoid copyright-protected music
  • Ensure audio bitrate is at least 128 kbps

Resolution too low

Minimum recommended:

  • Shorts: 720 × 1280 px
  • Regular: 1280 × 720 px (720p)