youtube-kit

v0.8.0
io.github.eukosh/youtube-kit Checked 4 days ago Published 14 days ago

YouTube CLI and MCP server: search and read public YouTube, and manage your own channels.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_analytics Get Analytics

YouTube Analytics for your channel: totals, or rows broken down by one dimension. Data for the last two or three days is incomplete, so recent rows keep growing. Uses the separate YouTube Analytics API and its quota; enable it in the same Google Cloud project. Quota: no YouTube Data API units.

ParameterTypeDescription
byBreak the numbers down by this dimension; its column is named as given here. Omit for totals. By month, the range widens to whole months. By elapsed: the audience retention of exactly one video, a row…
content_typeOnly long-form videos (videoOnDemand), shorts, or live streams (liveStream), as the content-type breakdown names them. Not by elapsed.
countryOnly viewers in this country, e.g. US. Not by elapsed.
limitMaximum number of rows. Breaking down by video returns at most 200, 25 by default; by traffic-source-detail, at most 25. Other breakdowns return every row by default.
metricsMetric names from https://developers.google.com/youtube/analytics/metrics, e.g. views, estimatedMinutesWatched, subscribersGained. Defaults to views, watch time, average view duration, likes, comments…
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
sinceFirst day, inclusive: 2026-01-01, or 90d / 4w before until. Defaults to 28 days before until.
sortMetric or dimension to sort by; prefix with - for descending, e.g. -views. Defaults to chronological by day, month or elapsed, and to the first metric, descending, by anything else.
traffic_sourceThe source to break down by traffic-source-detail, as the traffic-source breakdown names it, e.g. YT_SEARCH. Only with that breakdown.
untilLast day, inclusive: 2026-01-31, or 7d / 1w ago. Defaults to today.
videosOnly these videos (IDs or URLs).

setup_guide Setup Guide

What is left before the user's channel can be used: a one-time Google Cloud setup, then a Google sign-in. The steps happen in the user's browser, so walk them through one step at a time. Once ready, running the sign-in again connects another channel. Quota: no YouTube Data API units.

ParameterTypeDescription
projectGoogle Cloud project ID, once known. The links then open with that project selected.

get_channel Get Channel

Channel metadata, statistics, and uploads playlist ID. Quota: 1 unit.

ParameterTypeDescription
channelUC… channel ID, @handle, or channel URL. Omit for your own channel.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

list_my_channels List My Channels

Channels the user is logged in to, and which one is the default. Operations on the user's own channel work on the default unless told to use another. Reads stored logins only; makes no API calls. Quota: no YouTube Data API units.

list_activities List Activities

A channel's recent activity feed (uploads, playlist additions, and the like). Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
channelUC… channel ID, @handle, or channel URL. Omit for your own channel.
limitintegerMaximum number of activities.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
page_tokenContinue from a previous result's next_page_token.
sinceOnly activity at or after this date or datetime (2026-01-01), or this long ago (90d, 4w).

list_sections List Sections

The sections on a channel's home page. Quota: 1 unit.

ParameterTypeDescription
channelUC… channel ID, @handle, or channel URL. Omit for your own channel.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

list_captions List Captions

A video's caption tracks: language, name, and whether YouTube generated them from the audio. Works on any public video, though only the owner can download a transcript. Quota: 50 units.

ParameterTypeDescription
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

get_transcript Get Transcript

What is said in one of your videos, from its captions, including the ones YouTube generates. YouTube lets only a video's owner download its captions. Of several tracks in a language, one YouTube is serving is preferred over one it failed to process, then a published one you wrote over YouTube's. Quota: 252 units.

ParameterTypeDescription
video *stringVideo ID or URL.
formatstringtext: paragraphs of about 30 seconds, each starting with its [m:ss] time. srt or vtt: the caption file itself.
languageCaption language, e.g. en or en-US. Omit for the language spoken in the video.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
translate_toMachine-translate the captions into this language, e.g. de.

list_comments List Comments

Top-level comments on a video, or on all of your channel's videos. Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
limitintegerMaximum number of comments.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
orderstringNewest first, or most relevant first.
page_tokenContinue from a previous result's next_page_token.
searchOnly comments containing these words.
statusstringModeration status to list; spam is what YouTube flagged as likely spam. Anything but published is only visible on your own videos. YouTube can't list rejected comments.
videoVideo ID or URL. Omit for every video on your channel.

list_replies List Replies

Replies to a top-level comment. Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
comment *stringComment ID or link. A reply's ID or link lists its whole thread.
limitintegerMaximum number of replies.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
page_tokenContinue from a previous result's next_page_token.

list_playlists List Playlists

A channel's playlists. Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
channelUC… channel ID, @handle, or channel URL. Omit for your own channel, including private playlists.
limitintegerMaximum number of playlists.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
page_tokenContinue from a previous result's next_page_token.

get_playlists Get Playlists

Metadata of one or more playlists: title, description, privacy, and item count. Quota: 1 unit.

ParameterTypeDescription
playlists *arrayPlaylist IDs or URLs with a list= parameter. Fetched in batches of 50, 1 quota unit per batch.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

list_playlist_items List Playlist Items

Videos in a playlist, in playlist order. To list everything a channel has uploaded, pass the channel's uploads_playlist_id. Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
playlist *stringPlaylist ID or a URL with a list= parameter.
limitintegerMaximum number of entries.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
page_tokenContinue from a previous result's next_page_token.

list_subscriptions List Subscriptions

Channels the authorized user is subscribed to. Quota: 1 unit per page of up to 50 results.

ParameterTypeDescription
limitintegerMaximum number of subscriptions.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
orderstringAlphabetical, by relevance, or by activity (unread first).
page_tokenContinue from a previous result's next_page_token.

get_videos Get Videos

Full metadata, statistics, and status for one or more videos. Videos that don't exist or aren't visible to you are left out of the result; if none are found, that's a not-found error. Quota: 1 unit.

ParameterTypeDescription
videos *arrayVideo IDs or URLs. Fetched in batches of 50, 1 quota unit per batch.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

get_my_ratings Get My Ratings

Whether the authorized user liked or disliked each video. Quota: 1 unit.

ParameterTypeDescription
videos *arrayVideo IDs or URLs. Fetched in batches of 50, 1 quota unit per batch.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

list_video_categories List Video Categories

Video categories that can be assigned to uploads in a region, with the IDs to pass as category_id. Quota: 1 unit.

ParameterTypeDescription
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
regionstringISO 3166-1 alpha-2 country code.

get_processing_status Get Processing Status

Whether YouTube has finished processing one of your uploads. Quota: 1 unit.

ParameterTypeDescription
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
timeoutintegerSeconds to wait at most. Callers that can't block for long should wait briefly and check again.
waitbooleanKeep checking every 10 seconds (1 quota unit each) until processing ends, reporting progress when YouTube gives it. If it hasn't ended within timeout, that's a timeout error, so a script can chain the…

get_impressions Get Impressions

Thumbnail impressions and click-through rate for your channel, which YouTube Analytics doesn't offer. They come from YouTube's daily bulk reports. The first call asks YouTube to start making them: the first ones arrive within two days and cover the 30 days before. YouTube keeps daily reports for 60 days, those first 30 days for 30. ctr is clicks per impression: 0.05 is 5%. Uses the YouTube Reporting API; enable it in the same Google Cloud project. Quota: no YouTube Data API units.

ParameterTypeDescription
byBreak the numbers down by day or by video. Omit for totals.
limitMaximum number of rows by video, most impressions first. 25 by default.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
sinceFirst day, inclusive: 2026-01-01, or 90d / 4w before until. Defaults to 28 days before until.
untilLast day, inclusive: 2026-01-31, or 7d / 1w ago. Defaults to today.
videosOnly these videos (IDs or URLs).

update_channel Update Channel

Change your channel's about info. Only the fields you pass change. The name can only be changed in Studio. Quota: 51 units.

ParameterTypeDescription
countryISO 3166-1 alpha-2 country code.
descriptionChannel description.
keywordsChannel keywords, replacing the current ones. An empty list removes them all.
languageLanguage of the channel's title and description, e.g. en or de. If the channel has none, YouTube may pick one on any change; pass it to choose.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
trailerVideo (ID or URL) shown to visitors who aren't subscribed.

set_channel_banner Set Channel Banner

Upload and set your channel's banner. Use a 16:9 image of at least 2048x1152, at most 6 MB. Quota: 101 units.

ParameterTypeDescription
image *stringPath to a JPEG or PNG.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

set_watermark Set Watermark

Set the watermark shown over all your videos, replacing any current one. Viewers click it to subscribe. Quota: 51 units.

ParameterTypeDescription
image *stringPath to a square JPEG or PNG, at least 150x150, at most 1 MB.
cornerstringWhere it appears.
durationSeconds to show it. Until the end of the video when omitted.
from_endbooleanCount start back from the end of the video.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
startintegerSeconds from the start of the video when it appears, or from its end when counting from the end.

remove_watermark Remove Watermark

Remove the watermark from your videos. Succeeds when there is none. Quota: 51 units.

ParameterTypeDescription
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

add_section Add Section

Add a section to your channel's home page. A channel has at most 10. Quota: 52 units.

ParameterTypeDescription
kind *stringWhat the section shows. single-playlist needs one playlist, multiple-playlists several playlists and a title, multiple-channels channels and a title.
channelsChannels to show: UC… IDs, @handles, or channel URLs.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
playlistsPlaylist IDs or URLs to show.
position0-based position on the home page. Added at the end when omitted.
titleSection title, for the multiple-playlists and multiple-channels kinds.

update_section Update Section

Change a section on your channel's home page. Only the fields you pass change. Quota: 51 units.

ParameterTypeDescription
section *stringSection ID, as listed for your channel.
channelsChannels to show instead of the current ones (UC… IDs, @handles, or URLs).
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
playlistsPlaylists to show instead of the current ones (IDs or URLs).
positionNew 0-based position on the home page.
titleNew title.

delete_section Delete Section

Delete a section from your channel's home page. Its playlists and videos are not affected. Quota: 50 units.

ParameterTypeDescription
section *stringSection ID, as listed for your channel.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

upload_caption Upload Caption

Add a caption track to one of your videos from a caption file, such as SRT or VTT. Quota: 400 units.

ParameterTypeDescription
file *stringPath to the caption file, at most 100 MB.
language *stringLanguage of the captions, e.g. en or en-US.
video *stringVideo ID or URL.
draftbooleanUpload it hidden from viewers.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
namestringTrack name viewers see next to the language. Two tracks in one language need different names.

update_caption Update Caption

Replace the file of a caption track on one of your videos, or show or hide the track. Quota: 502 units.

ParameterTypeDescription
language *stringLanguage of the track, e.g. en or en-US.
video *stringVideo ID or URL.
draftWhether the track is hidden from viewers.
filePath to the new caption file, at most 100 MB.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
nameName of the track, when the video has several in that language.

delete_caption Delete Caption

Permanently delete a caption track from one of your videos. Without confirm, nothing is deleted and the error describes the track. Quota: 102 units.

ParameterTypeDescription
language *stringLanguage of the track, e.g. en or en-US.
video *stringVideo ID or URL.
confirmThe track's ID, passed only after the user has approved deleting this track.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
nameName of the track, when the video has several in that language.

post_comment Post Comment

Post a top-level comment on a video as the authorized user. Quota: 50 units.

ParameterTypeDescription
text *stringThe comment.
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

reply_to_comment Reply To Comment

Reply to a top-level comment as the authorized user. Quota: 50 units.

ParameterTypeDescription
comment *stringComment ID or link. Replying to a reply adds to the same thread.
text *stringThe reply.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

edit_comment Edit Comment

Replace the text of one of your own comments or replies. Quota: 50 units.

ParameterTypeDescription
comment *stringComment ID or link.
text *stringThe new text.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

delete_comment Delete Comment

Permanently delete one of your own comments or replies. Deleting a top-level comment deletes its replies. Others' comments on your videos can't be deleted, only rejected, which hides them. Without confirm, nothing is deleted and the error describes the comment. Quota: 52 units.

ParameterTypeDescription
comment *stringComment ID or link.
confirmThe comment ID again, passed only after the user has approved deleting this comment.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

approve_comments Approve Comments

Publish comments on your videos that are held for review or marked as likely spam. Quota: 50 units.

ParameterTypeDescription
comments *arrayComment IDs or links. 50 quota units per 50 comments.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

hold_comments Hold Comments

Hide comments on your videos until you review them. Quota: 50 units.

ParameterTypeDescription
comments *arrayComment IDs or links. 50 quota units per 50 comments.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

reject_comments Reject Comments

Reject comments on your videos, hiding them from viewers. They can still be approved later. Quota: 50 units.

ParameterTypeDescription
comments *arrayComment IDs or links. 50 quota units per 50 comments.
ban_authorbooleanAlso reject all future comments on your channel by each comment's author.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

create_playlist Create Playlist

Create a playlist on the authorized user's channel. Left out, the language is copied from your most recent public upload, as video uploads do. Quota: 57 units.

ParameterTypeDescription
title *stringPlaylist title.
descriptionstringPlaylist description.
languageLanguage of the title and description, e.g. en-US.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
privacystringPrivacy status.

update_playlist Update Playlist

Change one of your playlists. Only the fields you pass change. Quota: 51 units.

ParameterTypeDescription
playlist *stringPlaylist ID or URL.
descriptionNew description.
languageLanguage of the title and description, e.g. en-US.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
podcastWhether the playlist is a podcast. Needs a playlist image first. The result reports podcast status; YouTube leaves it out when playlists are listed or fetched.
privacyNew privacy status.
titleNew title.

delete_playlist Delete Playlist

Permanently delete one of your playlists. The videos in it are not affected. Without confirm, nothing is deleted and the error describes the playlist. Quota: 52 units.

ParameterTypeDescription
playlist *stringPlaylist ID or URL.
confirmThe playlist ID again, passed only after the user has approved deleting this playlist.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

add_video_to_playlist Add Video To Playlist

Add a video to a playlist on the authorized user's channel. Quota: 50 units.

ParameterTypeDescription
playlist *stringPlaylist ID or URL.
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
position0-based position in the playlist. Appends to the end when omitted.

remove_from_playlist Remove From Playlist

Remove a video from one of your playlists, every time it appears. The video itself is not affected. YouTube can't look up entries of a deleted video, so for a deleted or unknown video the whole playlist is read: 1 more unit per 50 entries. Quota: 51 units.

ParameterTypeDescription
playlist *stringPlaylist ID or URL.
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

move_in_playlist Move In Playlist

Move a video to another position in one of your playlists. Quota: 51 units.

ParameterTypeDescription
playlist *stringPlaylist ID or URL.
position *integerNew 0-based position.
video *stringVideo ID or URL. Refused if the video appears in the playlist more than once.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

set_playlist_thumbnail Set Playlist Thumbnail

Set the custom thumbnail of one of your playlists, replacing any current one. Quota: 101 units.

ParameterTypeDescription
image *stringPath to a square JPEG or PNG, at most 50 MB.
playlist *stringPlaylist ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

subscribe Subscribe

Subscribe the authorized user to a channel. Already being subscribed is fine. Quota: 51 units.

ParameterTypeDescription
channel *stringUC… channel ID, @handle, or channel URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

unsubscribe Unsubscribe

Unsubscribe the authorized user from a channel. Not being subscribed is fine. Quota: 51 units.

ParameterTypeDescription
channel *stringUC… channel ID, @handle, or channel URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

rate_video Rate Video

Like or dislike a video as the authorized user, or clear the rating with none. Quota: 50 units.

ParameterTypeDescription
rating *stringlike, dislike, or none.
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

upload_video Upload Video

Upload a video file from disk (resumable, reports progress). Category and languages left out are copied from your most recent public upload (among your last 150), so the video matches the rest of your channel; with none, the category is 22 (People & Blogs). YouTube keeps processing the video after this returns, and its duration and statistics appear only once that ends. Checking whether processing has finished tells you when, or why it failed. Quota: 1 of the project's 100 daily upload calls, plus up to 7 units.

ParameterTypeDescription
file *stringPath to the local video file.
title *stringVideo title.
ai_contentbooleanWhether AI made realistic content: a real person saying or doing something they didn't, altered footage of a real event or place, a realistic scene that didn't happen, or music that's the video's focu…
audio_languageLanguage spoken in the video, e.g. en-US.
category_idCategory ID (see the video categories listing).
descriptionstringVideo description.
languageLanguage of the title and description, e.g. en-US.
made_for_kidsbooleanWhether the video is made for kids (COPPA).
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
paid_promotionbooleanWhether the video includes paid promotion: a sponsorship, product placement, or endorsement.
privacystringPrivacy status. Must be private when publish_at is set.
publish_atSchedule publication at this date or datetime; YouTube makes the video public then.
tagsKeyword tags. YouTube may store them in a different order.

update_video Update Video

Change a video's metadata. Only the fields you pass change; the rest keep their values. Quota: 51 units.

ParameterTypeDescription
video *stringVideo ID or URL.
ai_contentWhether AI made realistic content: a real person saying or doing something they didn't, altered footage of a real event or place, a realistic scene that didn't happen, or music that's the video's focu…
audio_languageLanguage spoken in the video, e.g. en-US.
category_idNew category ID (see the video categories listing).
descriptionNew description.
languageLanguage of the title and description, e.g. en-US.
made_for_kidsWhether the video is made for kids (COPPA).
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.
paid_promotionWhether the video includes paid promotion: a sponsorship, product placement, or endorsement.
privacyNew privacy status. Making a scheduled video public or unlisted cancels the schedule.
publish_atSchedule publication at this date or datetime. The video must end up private.
tagsNew tags, replacing the current ones. An empty list removes all tags. YouTube may store them in a different order.
titleNew title.

set_thumbnail Set Thumbnail

Set a video's custom thumbnail. The channel must be verified. Quota: 50 units.

ParameterTypeDescription
image *stringPath to a JPEG or PNG, at most 50 MB.
video *stringVideo ID or URL.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

delete_video Delete Video

Permanently delete one of your videos. Only recent, little-watched videos can be deleted here: by default at most 100 views and, if public, uploaded within the last 7 days (the limits are set in the toolkit's config file). Anything else must be deleted in YouTube Studio. Without confirm, nothing is deleted and the error describes the video. Quota: 52 units.

ParameterTypeDescription
video *stringVideo ID or URL.
confirmThe video ID again, passed only after the user has approved deleting this video.
my_channelWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.