PubNio publishing API for YouTube

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

Defined by PubNio's publishing contract for YouTube.

YouTube Publishing API capabilities and requirements
CapabilityDetails
Supported placementsYouTube Video and Shorts upload
Privacy settingspublic, unlisted, or private validated at preflight
Account prerequisiteGoogle / YouTube channel authorized via OAuth (Limited Use compliant)
SchedulingExplicit 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 & account connection

  • 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 before delivery

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

Publish to YouTube via SDK or CLI.

Draft once, validate before sending, and confirm live delivery with an idempotency key.

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",
});
publish-youtube.ts · @pubnio/sdkYouTube error codes

Frequently asked questions.

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.

Publish to YouTube with 100 free deliveries.

Connect unlimited YouTube accounts for $0 and confirm live delivery over REST API, SDK, CLI, or hosted MCP.