Skip to content
Black Friday: 40% off the first year, until December 1
YouTube REST APIYouTube channels

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
Free plan: 2 accounts, 20 posts a month, no cardNeed AI agents? YouTube MCP
  • 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. 1

    Connect YouTube channels

    Authorize YouTube channels with upload, playlist and comment scopes in PostSyncer or via POST /accounts/connect-links.

  2. 2

    List playlists and send your video payload

    Read up to 500 channel playlists from GET /accounts/{id}, then call POST /posts with your video, custom cover_image.thumbnail, metadata and playlist_id.

  3. 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.

YouTube endpoints on one REST API
EndpointPermissionWhat it does
POST/api/v1/postsposts:create / schedule / publishSchedule or publish one YouTube video or Short up to 500 MB with thumbnail, playlist and first comment.
GET/api/v1/accounts/{id}accounts:readFetch the channel’s playlists array (id, title, privacy_status, video_count) up to 500 playlists.
DELETE/api/v1/posts/{id}posts:deleteCancel a scheduled upload or delete an already-published video on YouTube.
GET/api/v1/commentscomments:readList YouTube video comments synced on schedule or via POST /comments/sync.
PATCH/api/v1/comments/{id}/hidecomments:updateHold a YouTube comment for review, or pass hidden: false to publish it again.
GET/api/v1/analytics/posts/{id}analytics:readRead impressions, likes, comments and shares for a published YouTube video.

Read the full YouTube reference

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.

YouTube media and text limits
TypeFormatsLimitNotes
Video uploadMP4, MOV, WebM1 video · up to 500 MBAVI, WMV and FLV are not accepted by the API — convert to MP4 first. Photos are not accepted.
YouTube ShortsSquare or vertical videoUp to 3 minutesYouTube classifies square/vertical videos ≤ 3m as Shorts automatically; video_type: short appends #Shorts to fallback titles.
Custom thumbnailImage URL or library IDcover_image.thumbnailYouTube accepts a thumbnail picture only, never a video frame timestamp.
Title & descriptionPlain text (no < or >)100 chars title · 5,000 bytes descYouTube counts description bytes (non-ASCII takes 2–4 bytes). < and > are stripped; trimmed descriptions record text_shortened.
TagsArray or comma string500 chars totalCommas 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_delay minutes 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 /analytics endpoints.

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_id so PostSyncer inserts the video as soon as upload finishes. If YouTube refuses the playlist add, the video still goes out and the post gets a setting_not_applied note.

  • 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 with DELETE /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.

YouTube accounts[].settings keys
Setting keyValueWhat it controls
titlestring (cut at 100 chars)Video title; defaults to the start of description or post text if omitted.
descriptionstring (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_idstringChannel playlist ID from GET /accounts/{id} to add the video into once uploaded.
tagsstring[] | stringUp to 500 characters of YouTube tags (spaces add 2 chars per multi-word tag).
languagestringYouTube language code for title and description (for example en, pt-PT, zh-TW).
category_idstringNumeric YouTube video category ID.
containsSyntheticMediabooleanDiscloses realistic AI-generated or altered scenes (default false).
hasPaidProductPlacementbooleanDeclares paid product placement, sponsorship or endorsement.
selfDeclaredMadeForKidsbooleanMarks whether the video is made for kids (default false).
license"youtube" | "creativeCommon"Standard YouTube license (default) or Creative Commons Attribution.
embeddablebooleanAllow external sites to embed the player (default true).
notifySubscribersbooleanSend 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/mcp

Cross-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.

Limits by plan
PlanSocial accountsPostsAPI posts a day, per network
Free220 a monthWithin the 20
Starter$29 a month10UnlimitedUnlimited
Pro$49 a month30UnlimitedUnlimited
Agency$99 a month100, then $1/mo eachUnlimitedUnlimited

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.

Compare plans and prices

FAQ

YouTube API questions

Need help with a specific endpoint or webhook? Ask us in live chat.

Chat with us

Can 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