YouTubeYouTube API Guide

How to Schedule YouTube Shorts via API

Publish vertical short-form videos as YouTube Shorts using the PostFast API. Control titles, privacy, playlists, and COPPA compliance programmatically.

Last updated: January 2025
Automate your YouTube Shorts strategyGet API Key

YouTube Shorts are vertical videos up to 60 seconds (or up to 3 minutes since October 2024) that appear in the Shorts shelf and tab. Using the PostFast API, you can schedule Shorts by setting youtubeIsShort to true.

Shorts compete directly with TikTok and Instagram Reels, offering massive reach potential through YouTube's algorithm. They appear in the Shorts shelf on YouTube's homepage, the dedicated Shorts tab on mobile, and in search results and recommendations.

Key features when scheduling Shorts via API include automatic formatting (YouTube handles the vertical display), playlist integration, privacy controls (Public, Unlisted, or Private), and COPPA compliance settings for content targeting children.

API Parameters

ParameterTypeDescription
youtubeIsShortbooleanWhether it's a YouTube Short
youtubeTitlestringVideo title. If not provided, the first 100 characters of content will be used
youtubePrivacystringVideo privacy setting
PUBLICUNLISTEDPRIVATE
youtubePlaylistIdstringYouTube playlist ID to add the video to after publishing. Playlist must belong to the authenticated YouTube channel.
youtubeMadeForKidsbooleanCOPPA compliance flag - mark if content is made for kids
youtubeTagsstring[]Array of tags for the video

Code Example

const response = await fetch('https://api.postfa.st/social-posts', {
  method: 'POST',
  headers: {
    'pf-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
        "posts": [
            {
                "content": "Quick tip for developers! #shorts #coding #tech",
                "mediaItems": [
                    {
                        "key": "video/g2b3c4d5-e6f7-8901-2345-678901bcdefg.mp4",
                        "type": "VIDEO",
                        "sortOrder": 0
                    }
                ],
                "scheduledAt": "2025-01-31T10:00:00.000Z",
                "socialMediaId": "880h1722-i5ce-64g7-d049-778988772004"
            }
        ],
        "controls": {
            "youtubeIsShort": true,
            "youtubeTitle": "Quick Developer Tip #47",
            "youtubePrivacy": "PUBLIC",
            "youtubeTags": [
                "shorts",
                "coding",
                "developer tips"
            ],
            "youtubeMadeForKids": false,
            "youtubePlaylistId": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
        }
    })
});

const data = await response.json();

Did You Know?

Video Duration
Up to 3 minutes
As of October 2024, Shorts can be up to 3 minutes. Previously limited to 60 seconds.
Aspect Ratio
9:16 or 1:1
Vertical (9:16) is standard. Square (1:1) works but vertical performs better.
Title Length
Max 100 characters
Keep titles concise. If not provided, first 100 chars of description are used.
Copyrighted Music
60 seconds max
Shorts with copyrighted music from YouTube's library are limited to 60 seconds

Tips

Always set youtubeIsShort: true for vertical content under 3 minutes to get Shorts algorithm distribution

Use youtubePlaylistId to organize Shorts into themed playlists for better channel structure

Include #shorts in your description for additional discoverability (though not required)

Set youtubeMadeForKids carefully - it affects comments, notifications, and monetization

Cross-post to YouTube Shorts, TikTok, and Instagram Reels

7-day free trial
Try PostFast Free

Common Pitfalls

Forgetting youtubeIsShort

Without youtubeIsShort: true, your vertical video uploads as a regular video and misses Shorts distribution entirely.

Wrong COPPA setting

Setting youtubeMadeForKids incorrectly can result in FTC fines or channel strikes. When in doubt, set to false for general audience content.

Playlist must exist

If youtubePlaylistId doesn't match a playlist you own, the Short still publishes but won't be added to any playlist.

Horizontal video with youtubeIsShort

Setting youtubeIsShort: true on horizontal video creates an awkward viewing experience with black bars.

Frequently Asked Questions

What's the maximum duration for YouTube Shorts in 2025?

As of October 2024, YouTube Shorts can be up to 3 minutes long. However, Shorts using copyrighted music from YouTube's library are still limited to 60 seconds.

Do I need to include #shorts in the title or description?

No, setting youtubeIsShort: true is sufficient. Adding #shorts to your description can help discoverability but isn't required for Shorts classification.

Can I add a Short to multiple playlists?

The API supports adding to one playlist via youtubePlaylistId. To add to multiple playlists, you'd need to use the YouTube Data API separately after publishing.

Scale your short-form video content across all platforms

Start Free Trial
7-day free trialCancel anytime