YouTube API for developers and AI agents

YouTube publishing without rebuilding channel connection, resumable uploads, metadata checks, queues, and webhook status events.

No credit card required

import { KavenioClient } from "@kavenio/sdk";

const kavenio = new KavenioClient({
  authToken: process.env.KAVENIO_API_KEY,
});

// Send your user to this URL to connect their YouTube channel.
const { authorizationUrl } = await kavenio.connect.begin({
  platform: "youtube",
});

// Publish a video to the selected YouTube channel.
await kavenio.posts.create({
  title: "Launch video",
  content: "Product walkthrough and launch notes.",
  publishNow: true,
  mediaItems: [{ type: "video", url: "https://cdn.example.com/launch.mp4" }],
  platforms: [
    {
      platform: "youtube",
      accountId: "acct_youtube_123",
      platformSpecificData: {
        visibility: "unlisted",
        madeForKids: false,
        containsSyntheticMedia: false,
        thumbnailUrl: "https://cdn.example.com/thumbnail.jpg",
        playlistId: "PL123",
        firstComment: "Links and resources: https://example.com/launch",
      },
    },
  ],
});

How it works

Connect the channel, publish a selected YouTube video, and run the workflow with REST, the CLI, or the SDK.
  1. kavenio.connect.begin(...)

    Create a YouTube connect URL and send the user through authorization for the channel they want to publish from.

  2. kavenio.posts.create(...)

    Publish now or schedule a YouTube video with the selected channel, video file, metadata, thumbnail, playlist, and first comment.

  3. kavenio.webhooks.create(...)

    Trigger your automation when YouTube publishing succeeds, fails, or needs attention instead of polling for state.

Formats

Publish the YouTube formats your product needs

Let customers upload videos with metadata, thumbnails, playlists, visibility settings, and first comments without building a separate YouTube-only path.
Video uploads
Visibility settings
Custom thumbnails
Playlist insertion
Tags and category
First comments
Made for kids
Synthetic media
Developer workflow

Build YouTube publishing without upload plumbing

Keep your product focused on the customer workflow while the API handles channel connection, upload sessions, metadata, thumbnails, playlists, and status changes.

Channel connection and selection

Send users through YouTube connection once, store offline access, and publish to the selected channel.

Resumable video upload

Pass one public video URL and let the publish workflow handle the YouTube upload session before creating the video.

Metadata and compliance settings

Set title, description, visibility, made-for-kids, synthetic-media, category, and tags in the request.

Thumbnail, playlist, and comments

Attach a custom thumbnail, add the video to a playlist, and create the first comment after upload.

App keys

Bring your own YouTube app when you need control

Use the Kavenio-managed YouTube app to get started, or connect through your own YouTube app when your team owns approvals, branding, and policy setup.

Use the Kavenio-managed YouTube app

Start testing YouTube channel connection and video publishing without configuring your own YouTube app first.

Bring your own YouTube app

Use your YouTube app credentials when your team owns approvals, branding, and policy setup.

Build the YouTube publishing workflow once

Stop rebuilding channel connection, resumable uploads, metadata checks, thumbnails, playlists, first comments, retries, and status events for every product surface.

Reuse the same connect and publishing workflow for the next supported platform.

YouTube API questions

Practical details for building YouTube publishing into your product.

Can I publish YouTube videos through Kavenio?

Yes. Connect a YouTube channel, pass one public video URL, and publish through the same posts API used for other platforms.

What metadata is required?

YouTube publishing requires a title plus explicit made-for-kids and synthetic-media settings for the video.

Can I add thumbnails and playlists?

Yes. Pass a thumbnail URL and playlist ID in the YouTube platform-specific data when the video needs those follow-up steps.

Can I add a first comment?

Yes. First comments are supported when the connected YouTube credential includes the comment permission scope.