All four tools are read-only. The first three use the Data API with your API key. The fourth, get_video_analytics, needs OAuth because Analytics data is only available to the authorized channel owner.
get_channel_stats
Data APIChannel metadata and statistics from the YouTube Data API v3. Pass a channelId or a forHandle like @eeyoren. Returns title, description, country, publish date, and subscriber, view, and video counts.
Arguments{
"channelId": "UC...", // optional
"forHandle": "@eeyoren" // optional, either one
}
Example call{ "name": "get_channel_stats", "arguments": {
"channelId": "UCxxxxxxxxxxxxxxxxxxxxxx"
} }
get_video_stats
Data APIMetadata and statistics for one or more video IDs, up to 50 per call. Returns title, publish date, view, like, and comment counts, and duration.
Arguments{
"videoIds": ["videoId1", "videoId2"],
"part": "snippet,statistics,contentDetails" // optional
}
Example call{ "name": "get_video_stats", "arguments": {
"videoIds": ["dQw4w9WgXcQ"]
} }
list_recent_videos
Data APIA channel's recent public uploads from its uploads playlist. Supports maxResults (1 to 50, default 10) and pageToken for pagination.
Arguments{
"channelId": "UC...",
"maxResults": 10, // optional, 1-50
"pageToken": "..." // optional
}
Example call{ "name": "list_recent_videos", "arguments": {
"channelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
"maxResults": 5
} }
get_video_analytics
Analytics (OAuth)Read-only YouTube Analytics metrics for a channel or video over a date range. Requires OAuth with the youtube.readonly and youtubeanalytics.readonly scopes and a refresh token; an API key alone is not enough.
Arguments{
"channelId": "UC...", // optional, defaults to the authorized channel
"videoId": "dQw4w9WgXcQ", // optional, restrict to one video
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"metrics": "views,estimatedMinutesWatched" // optional
}
Example call{ "name": "get_video_analytics", "arguments": {
"startDate": "2024-01-01",
"endDate": "2024-01-31"
} }