YouTube
Upload videos and Shorts to YouTube via the PostPeer API.
Overview
Upload videos and Shorts to YouTube with full metadata control — titles, descriptions, tags, privacy settings, and categories. PostPeer handles YouTube's chunked upload process and OAuth.
Quick Start
1. Connect a YouTube Account
Returns a Google OAuth URL. The user authorizes video upload permissions.
2. Get the Account ID
Find the integration with "platform": "youtube" and note the id.
3. Upload a Video
Response:
Platform-Specific Data
| Field | Type | Description |
|---|---|---|
title | string | Video title (required) |
description | string | Video description |
privacyStatus | string | "public", "unlisted", or "private" |
tags | string[] | Tags for discoverability |
categoryId | string | YouTube category ID |
Shorts
Upload vertical videos (9:16, up to 60 seconds) and they'll be published as YouTube Shorts:
Supported Formats
| Type | Formats | Max Size | Max Duration |
|---|---|---|---|
| Video | MP4, MOV, AVI, WMV | 256 GB | 12 hours |
| Shorts | MP4, MOV | 256 GB | 60 seconds |
| Thumbnail | JPG, PNG | 2 MB | — |
Pass a thumbnail URL in mediaItems with "thumbnail" field to set a custom thumbnail.