YouTube API without Google OAuth verification
Google’s YouTube Data API locks unverified apps to private uploads until they pass OAuth verification, and forces resumable byte-range upload sessions plus separate playlist and thumbnail requests. PostSyncer uploads videos and Shorts, sets the thumbnail and adds the playlist from one POST /api/v1/posts call.
- Upload long-form videos and Shorts up to 500 MB with custom thumbnail images
- Assign channel playlists, tags, language, license, privacyStatus and AI disclosures
- Delete live videos, hold or publish comments and track impressions and shares
- Cancel anytime
- Unlimited posts on paid plans
curl -X POST "https://postsyncer.com/api/v1/posts" \
-H "Authorization: Bearer $POSTSYNCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 4815,
"schedule_type": "schedule",
"schedule_for": {
"date": "2026-12-04",
"time": "15:00",
"timezone": "America/Los_Angeles"
},
"content": [
{
"text": "Two-minute breakdown of dialing in a washed Guji espresso at Halden Coffee.",
"media": [
"https://cdn.postsyncer.com/examples/rosetta-pour.mp4"
],
"cover_image": {
"thumbnail": "https://cdn.postsyncer.com/examples/rosetta-cover.jpg"
}
},
{
"text": "Grind settings and full brew recipe: haldencoffee.example/guide",
"is_first_comment": true,
"first_comment_delay": 1
}
],
"accounts": [
{
"id": 16241,
"settings": {
"video_type": "video",
"title": "How we pour a clean rosetta",
"privacyStatus": "unlisted",
"tags": [
"latte art",
"espresso",
"coffee"
],
"playlist_id": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf",
"language": "en",
"containsSyntheticMedia": false,
"selfDeclaredMadeForKids": false,
"notifySubscribers": true
}
}
]
}'PostSyncer uploads the video at the scheduled time, attaches the custom thumbnail, adds it to the playlist and posts the first comment.
01 Quick start
Live on YouTube in three steps
- 1
Connect YouTube channels
Authorize YouTube channels with upload, playlist and comment scopes in PostSyncer or via
POST /accounts/connect-links. - 2
List playlists and send your video payload
Read up to 500 channel playlists from
GET /accounts/{id}, then callPOST /postswith your video, customcover_image.thumbnail, metadata andplaylist_id. - 3
Moderate comments and pull channel metrics
Sync comments, reply as the channel, hold spam for review or publish held comments, and query
GET /analytics/posts/{id} for views and engagement.
02 Endpoints
YouTube endpoints on one REST API
Every YouTube operation runs on https://postsyncer.com/api/v1 with Bearer API keys and resource:action permissions.
| Endpoint | Permission | What it does |
|---|---|---|
POST/api/v1/posts | posts:create / schedule / publish | Schedule or publish one YouTube video or Short up to 500 MB with thumbnail, playlist and first comment. |
GET/api/v1/accounts/{id} | accounts:read | Fetch the channel’s playlists array (id, title, privacy_status, video_count) up to 500 playlists. |
DELETE/api/v1/posts/{id} | posts:delete | Cancel a scheduled upload or delete an already-published video on YouTube. |
GET/api/v1/comments | comments:read | List YouTube video comments synced on schedule or via POST /comments/sync. |
PATCH/api/v1/comments/{id}/hide | comments:update | Hold a YouTube comment for review, or pass hidden: false to publish it again. |
GET/api/v1/analytics/posts/{id} | analytics:read | Read impressions, likes, comments and shares for a published YouTube video. |
03 Media and text specs
What you can publish to YouTube
Verified media limits, text caps and platform behaviors PostSyncer enforces when sending to YouTube.
| Type | Formats | Limit | Notes |
|---|---|---|---|
| Video upload | MP4, MOV, WebM | 1 video · up to 500 MB | AVI, WMV and FLV are not accepted by the API — convert to MP4 first. Photos are not accepted. |
| YouTube Shorts | Square or vertical video | Up to 3 minutes | YouTube classifies square/vertical videos ≤ 3m as Shorts automatically; video_type: short appends #Shorts to fallback titles. |
| Custom thumbnail | Image URL or library ID | cover_image.thumbnail | YouTube accepts a thumbnail picture only, never a video frame timestamp. |
| Title & description | Plain text (no < or >) | 100 chars title · 5,000 bytes desc | YouTube counts description bytes (non-ASCII takes 2–4 bytes). < and > are stripped; trimmed descriptions record text_shortened. |
| Tags | Array or comma string | 500 chars total | Commas count, and multi-word tags with spaces count 2 extra quote chars; over 500 returns 422. |
Platform behavior
YouTube at a glance
- platform key
- youtube
- Media required
- Yes — exactly one video (MP4, MOV or WebM up to 500 MB). Photos are refused.
- First comment
- Supported as a text-only comment posted
first_comment_delayminutes after upload (media returns 422). - Deleting posts
- Supported —
DELETE /posts/{id} asks YouTube to delete the uploaded video. - Comments API
- Synced on schedule; text replies, hold for review / republish (hide), and permanent rejection (delete).
- Analytics metrics
- impressions, likes, comments and shares via
/analyticsendpoints.
04 Capabilities and settings
Everything the YouTube API handles for you
Uploading a production YouTube video usually takes three separate Google API calls and careful byte counting. PostSyncer runs the upload, thumbnail and playlist steps for you, in order, from one request.
Video & Shorts uploads up to 500 MB
Upload long-form tutorials or vertical YouTube Shorts up to 500 MB from a media library ID or public link without building resumable chunk upload clients.
Automatic playlist assignment
Fetch your channel’s playlists from
GET /accounts/{id} and pass settings.playlist_idso PostSyncer inserts the video as soon as upload finishes. If YouTube refuses the playlist add, the video still goes out and the post gets asetting_not_appliednote.Compliance & disclosure flags
Set containsSyntheticMedia for AI-altered realistic content, hasPaidProductPlacement for sponsorships and selfDeclaredMadeForKids for COPPA compliance.
Byte-safe titles, tags & descriptions
PostSyncer strips forbidden < and > characters, validates YouTube’s exact 500-character tag formula (including quote overhead for spaces), and trims descriptions safely at UTF-8 byte boundaries.
Custom thumbnails & subscriber control
Attach
cover_image.thumbnail, select youtube or creativeCommon licensing, control embeddable playback, and toggle notifySubscribers for quiet catalog uploads.Comment moderation & hold-for-review
Reply as the channel, hold abusive comments for review with
PATCH /comments/{id}/hide(and restore with hidden: false), or permanently reject third-party comments withDELETE /comments/{id}.
YouTube per-post settings keys
Pass any of these optional keys inside accounts[].settings on POST /posts or PATCH /posts/{id}. Keys for other networks are ignored when cross-posting.
| Setting key | Value | What it controls |
|---|---|---|
title | string (cut at 100 chars) | Video title; defaults to the start of description or post text if omitted. |
description | string (cut at 5,000 bytes) | YouTube-specific description overriding the shared post text. |
privacyStatus | "public" | "unlisted" | "private" | Sets video visibility at upload time (defaults to public). |
video_type | "video" | "short" | Appends #Shorts to auto-generated fallback titles when set to short. |
playlist_id | string | Channel playlist ID from GET /accounts/{id} to add the video into once uploaded. |
tags | string[] | string | Up to 500 characters of YouTube tags (spaces add 2 chars per multi-word tag). |
language | string | YouTube language code for title and description (for example en, pt-PT, zh-TW). |
category_id | string | Numeric YouTube video category ID. |
containsSyntheticMedia | boolean | Discloses realistic AI-generated or altered scenes (default false). |
hasPaidProductPlacement | boolean | Declares paid product placement, sponsorship or endorsement. |
selfDeclaredMadeForKids | boolean | Marks whether the video is made for kids (default false). |
license | "youtube" | "creativeCommon" | Standard YouTube license (default) or Creative Commons Attribution. |
embeddable | boolean | Allow external sites to embed the player (default true). |
notifySubscribers | boolean | Send upload notification to channel subscribers (default true). |
Skip Google OAuth verification and resumable upload code
Google locks every video uploaded through an unverified YouTube Data API project to private until the project passes an OAuth compliance review. Even after that, a working upload client needs resumable byte-range sessions, a separate thumbnail call and a separate playlist insert, each with its own error cases.
PostSyncer runs verified YouTube production credentials with resumable upload management, thumbnail attachment and playlist insertion built in. Your service sends one POST /api/v1/posts call and lets PostSyncer publish right on schedule at your chosen privacyStatus. Uploads go through PostSyncer’s Google project, whose daily YouTube upload quota all PostSyncer customers share: on a day it runs out, uploads fail until Google resets it at midnight Pacific time, and POST /posts/{id}/retry sends a failed post again.
Handling YouTube’s strict byte limits, tags and product placement
YouTube’s validation traps catch almost every custom integration: descriptions are capped at 5,000 UTF-8 bytes (not characters), angle brackets < and > trigger instant rejection, and multi-word tags with spaces silently add two quote characters toward the 500-character budget. PostSyncer validates tag lengths synchronously with 422, strips forbidden brackets, and trims descriptions cleanly without splitting multi-byte characters — logging a text_shortened note if anything was trimmed.
For compliance, pass containsSyntheticMedia and hasPaidProductPlacement explicitly when applicable; PostSyncer only transmits hasPaidProductPlacement when set so YouTube never misinterprets an omitted field.
Playlists, reconnect diagnostics and YouTube comment moderation
To keep list endpoints fast, GET /accounts omits playlists while GET /accounts/{id} returns up to 500 channel playlists with IDs, titles and video counts. If a channel was connected before playlist scopes were granted, PostSyncer flags playlists_reconnect: true so your UI can prompt a quick reconnect.
Under the hood, YouTube treats comment moderation uniquely: hiding a comment holds it for review (reversible with hidden: false), while deleting another user’s comment permanently rejects it from the channel. Channels connected without comment access return an actionable 422 prompting reconnection.
05 Response and MCP
Same YouTube rules over REST and MCP
Use the REST API from your backend or connect an AI agent to the YouTube MCP server using the same accounts, permissions and rate limits.
AI agent alternative
Upload YouTube Shorts, pick playlists and answer comments via MCP
Connect your AI agent to PostSyncer’s MCP server so it can inspect channel playlists with get-account, schedule Shorts with custom thumbnails and reply to viewer comments.
“List my YouTube channel playlists, then schedule the espresso clip as an unlisted video in the Tutorials playlist for Friday at 3 PM.”
PostSyncer MCP server
https:// postsyncer.com/ mcpCross-posting
Ship YouTube plus all 12 networks from one schema
Add more account IDs to the same POST /posts request to publish to YouTube, Instagram, YouTube, LinkedIn, X and the rest together. Each account reads its own settings block while sharing the media upload and schedule.
Limits and plans
What each plan allows
The YouTube REST API is available on every PostSyncer plan, Free included. Paid plans remove the monthly post cap; every plan shares 60 requests a minute.
| Plan | Social accounts | Posts | API posts a day, per network |
|---|---|---|---|
| Free | 2 | 20 a month | Within the 20 |
| Starter$29 a month | 10 | Unlimited | Unlimited |
| Pro$49 a month | 30 | Unlimited | Unlimited |
| Agency$99 a month | 100, then $1/mo each | Unlimited | Unlimited |
Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.
401The API key is missing, wrong or past its end date.403The key lacks the resource:action permission, or the plan limit was reached (plan_limit_reached).422A field failed validation or the network’s rules refused a file, setting or text length.429Too many requests: more than 60 in a minute across your user’s keys, API and MCP together.
Docs
Read more in the docs
- YouTube platform guideMedia limits, settings, comments and analytics on YouTube
- Create a postFull POST /posts request schema and platform settings
- QuickstartAPI keys, workspace IDs and your first scheduled post
- Authentication and permissionsBearer API keys and resource:action permissions
- Media uploads and video coversURL imports, file uploads and cover frames
- Compare all 12 networksSide-by-side matrix of media, threads, comments and deletes
All 12 networks
Explore every platform API on PostSyncer
FAQ
YouTube API questions
Need help with a specific endpoint or webhook? Ask us in live chat.
Chat with usCan the YouTube API upload both regular videos and YouTube Shorts?
Yes. Upload any MP4, MOV or WebM video up to 500 MB. YouTube automatically treats square or vertical videos up to 3 minutes as Shorts, and setting video_type: short appends #Shorts to fallback titles.
How do I add an uploaded video to a YouTube playlist?
Call GET /api/v1/accounts/{id} to read the channel’s playlists array, then pass the chosen playlist_id inside accounts[].settings on POST /posts.
Can I upload a custom YouTube thumbnail via the API?
Yes. Pass cover_image.thumbnail on the first content[] item as a media library ID or public image link. YouTube takes a picture thumbnail, not a video frame timestamp.
Why does YouTube cap descriptions in bytes instead of characters?
YouTube enforces a 5,000-byte UTF-8 limit where accented letters, CJK characters and emojis take 2 to 4 bytes each. PostSyncer truncates safely on character boundaries and notes text_shortened if trimmed.
Can I delete a published YouTube video through PostSyncer?
Yes. Calling DELETE /api/v1/posts/{id} requests YouTube to delete the live video as well as removing PostSyncer’s record.
Does PostSyncer set a YouTube native Premiere or scheduled publish time?
PostSyncer uploads the video to YouTube at the post’s scheduled time (schedule_for) with your chosen privacyStatus rather than pre-uploading as a YouTube Studio scheduled Premiere.
Automate YouTube videos, Shorts and playlists from one API.
Create an API key in Settings → API and ship your first scheduled YouTube upload in minutes.
- No card for free
- Cancel anytime
- Unlimited posts on paid plans