Skip to content
Integration

YouTube integrations and automation

Say what should happen in YouTube, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

YouTube on Whenever

About YouTube

YouTube is a video-sharing platform with user-generated content, live streaming, and monetization opportunities, widely used for marketing, education, and entertainment

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the YouTube workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your YouTube workflow

Most YouTube automations start from one question: what did this channel publish, and how is it performing? The YouTube Data API answers the first through the channel’s uploads playlist, which every channel has and which lists videos newest first. Reading that playlist with playlistItems.list is far cheaper than running a search, and it is the pattern to ask for when you want to react to new uploads. Video details such as title, description, duration, view and like counts come from videos.list, which accepts up to fifty video IDs in one request.

Budget is the constraint people discover late. Google gives each project a default daily allocation of ten thousand units shared by most methods, where a list read costs one unit and writes such as playlist or comment changes cost fifty. search.list and videos.insert sit in their own buckets, capped by default at one hundred calls a day each, so a workflow that searches every few minutes runs out of searches long before the day ends. Prefer reading known playlists and video IDs, batch the IDs, and schedule checks at an interval that matches how often the channel actually posts. Remember that each scheduled check is a run even when no video appeared.

The catalogue template “Announce new YouTube videos in Discord” follows exactly this shape. Every fifteen minutes it checks the channel ID you supply for uploads since the previous run, writes a one-line teaser from each new video’s title and description, and posts the teaser with the video link to a Discord channel. The teaser is optional AI writing, so its wording can change between runs; the video link and title come straight from YouTube.

Reading public channel and video data needs only an API key, but anything tied to an account, such as your own private or unlisted uploads, playlist edits, comment replies or captions, needs OAuth consent from the channel owner. Viewer-level analytics like watch time and audience retention live in the separate YouTube Analytics API rather than the Data API, so name it when you need those figures. Comment moderation is possible through the commentThreads and comments resources, though comments can be disabled on a video.

YouTube workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Post new uploads to a Discord channel

The catalogue template as written: one teaser and link per new video, checked on a fifteen-minute schedule.

Build this workflow

Weekly performance table for your own videos

A low-quota report that reads public statistics for recent uploads instead of using search.

Build this workflow

Digest of unanswered comments

Surfaces viewer questions on recent videos for a person to answer; nothing is posted back to YouTube.

Build this workflow

YouTube workflows to start from

Real briefs for this app. Pick one; Whenever writes it for your accounts.

Related apps for your workflows

All integrations

YouTube FAQs

How much YouTube API quota will a new-upload check use?

Reading a channel’s uploads playlist costs one unit per request, so a fifteen-minute check uses under a hundred of the ten thousand default daily units. Doing the same job with search.list would use 96 of the default one hundred searches a day, leaving almost nothing for anything else.

Does YouTube send a webhook when a channel uploads a video?

YouTube offers push notifications through PubSubHubbub: you subscribe a public callback to a channel’s feed and receive an Atom message when the channel uploads a video or changes a title or description. Subscriptions have a lease and must be renewed, so a scheduled playlist check is the simpler starting point.

Can I get watch time and retention from the Data API?

No. Those metrics come from the YouTube Analytics API and require the channel owner’s authorization. The Data API exposes public counters such as views, likes and comments.

Do I need OAuth or is an API key enough?

An API key is enough for public channel, playlist and video data. Private or unlisted videos, playlist changes, comment replies and uploads need OAuth access granted by the channel’s account.

Why do I get a quotaExceeded error halfway through the day?

One of the project’s daily allocations is spent: the shared units, or the separate search or upload bucket. Check for search calls, per-video requests that could be batched, and schedules that run more often than needed. Quotas reset at midnight Pacific Time.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.