# PubNio publishing API for YouTube

Human page: https://pubnio.com/platforms/youtube
MCP guide: https://pubnio.com/youtube-mcp.md

## Summary

PubNio's YouTube Publishing API uploads videos and Shorts to authorized YouTube channels with title, description, and privacy status (public, unlisted, private) validation, reliable background delivery, and confirmed video URLs. Connect unlimited YouTube channels at $0 per account.

PubNio is a third-party service. Availability depends on platform approval and account permissions.

## Capabilities & limits

| Capability | Details |
| --- | --- |
| Supported placements | YouTube Video and Shorts upload |
| Privacy settings | public, unlisted, or private validated at preflight |
| Account prerequisite | Google / YouTube channel authorized via OAuth (Limited Use compliant) |
| Scheduling | Explicit ISO 8601 timestamp or per-account weekly queue |
| Pricing | $0/account; 100 free confirmed publishes/mo, then $5/1k (or Pro $29 / Platform $149) |

## OAuth & prerequisites

- YouTube channels connect through Google OAuth in the workspace; PubNio complies with the Google API Services User Data Policy (Limited Use).
- Users can revoke access anytime inside PubNio or at myaccount.google.com/permissions.

## Preflight validation

- Verifies uploaded or imported video readiness before starting YouTube resumable upload.
- Validates required video title and valid privacyStatus (public, unlisted, private).
- Ensures OAuth refresh tokens are healthy prior to scheduled execution.

## TypeScript SDK example

```ts
const video = await workspace.media.importUrl({
  url: "https://cdn.example.com/release-short.mp4",
});
const draft = await workspace.posts.create({
  isDraft: true,
  text: "60-second walkthrough of PubNio's hosted MCP server.",
  targets: [
    {
      accountId: youtubeChannelId,
      placement: "video",
      media: [{ mediaId: video.mediaId }],
      settings: { title: "PubNio MCP walkthrough", privacyStatus: "public" },
    },
  ],
});
const job = await workspace.posts.publish(draft.postId, {
  idempotencyKey: "yt-mcp-walkthrough",
});
```

## CLI example

```sh
pnio posts create --draft --workspace $WORKSPACE_ID \
  --account $YOUTUBE_CHANNEL_ID --placement video \
  --media $VIDEO_ID --text "PubNio MCP walkthrough" --publish
```

## FAQs

### Can PubNio upload YouTube videos as unlisted or private for review?

Yes. Pass `privacyStatus: "unlisted"` or `"private"` in the target settings so your team can review before making a video public.

### Does PubNio comply with Google's API Services User Data Policy?

Yes. See https://pubnio.com/privacy for our full Google API Services Limited Use disclosure and revocation instructions.
