# YouTube API without Google OAuth verification

Upload and schedule YouTube videos and Shorts via REST API with custom thumbnails, playlists, tags, AI disclosures, comment moderation and analytics.

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.

**REST API:** https://postsyncer.com/api/v1 · **MCP server:** https://postsyncer.com/mcp · **Docs:** https://postsyncer.com/docs/platforms/youtube

## Example YouTube request

```bash
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
        }
      }
    ]
  }'
```

```json
{
  "id": 81420,
  "status": "SCHEDULED",
  "platforms": [
    {
      "account_id": 16241,
      "platform": "youtube",
      "status": "PENDING",
      "settings": {
        "title": "How we pour a clean rosetta",
        "privacyStatus": "unlisted",
        "playlist_id": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
      }
    }
  ],
  "skipped_accounts": [],
  "needs_media": []
}
```

## Quick start

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 call POST /posts with your video, custom cover_image.thumbnail, metadata and playlist_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.

## YouTube endpoints

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

## YouTube media and text specs

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

## YouTube capabilities and settings

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

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

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

Related pages: [YouTube MCP](https://postsyncer.com/youtube-mcp), [YouTube scheduler](https://postsyncer.com/youtube-scheduler), [Unified social media API](https://postsyncer.com/unified-social-media-api).

## Limits and plans

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

## FAQ

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

---

Page: https://postsyncer.com/youtube-api · Updated 2026-11-27
