Use YouTube to search videos, retrieve video details and comments, and list channel information, channel videos, playlists, playlist items, trending videos, and video categories.
Choose the filters, region, category, and pagination fields required by the operation. Returned titles, descriptions, view counts, and engagement metrics can support a content report or help track a channel; this integration reads metadata rather than video transcripts.
Search for videos, get trending videos, get video details, get video categories, get channel information, get all videos from a channel, get channel playlists, get playlist items, and get video comments.
Get detailed information about a YouTube channel including statistics, branding, and content details.
Inputs and outputsParameter Type Required Description channelIdstring No YouTube channel ID starting with "UC" (24-character string, use either channelId or username) usernamestring No YouTube channel username (use either channelId or username) apiKeystring Yes YouTube API Key
Parameter Type Description channelIdstring YouTube channel ID titlestring Channel name descriptionstring Channel description subscriberCountnumber Number of subscribers (0 if hidden) videoCountnumber Number of public videos viewCountnumber Total channel views publishedAtstring Channel creation date thumbnailstring Channel thumbnail/avatar URL customUrlstring Channel custom URL (handle) countrystring Country the channel is associated with uploadsPlaylistIdstring Playlist ID containing all channel uploads (use with playlist_items) bannerImageUrlstring Channel banner image URL hiddenSubscriberCountboolean Whether the subscriber count is hidden
Get all public playlists from a specific YouTube channel.
Inputs and outputsParameter Type Required Description channelIdstring Yes YouTube channel ID starting with "UC" (24-character string) to get playlists from maxResultsnumber No Maximum number of playlists to return (1-50) pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of playlists from the channel ↳ playlistId string YouTube playlist ID ↳ title string Playlist title ↳ description string Playlist description ↳ thumbnail string Playlist thumbnail URL ↳ itemCount number Number of videos in playlist ↳ publishedAt string Playlist creation date ↳ channelTitle string Channel name totalResultsnumber Total number of playlists in the channel nextPageTokenstring Token for accessing the next page of results
Search for videos from a specific YouTube channel with sorting options. For complete channel video list, use channel_info to get uploadsPlaylistId, then use playlist_items.
Inputs and outputsParameter Type Required Description channelIdstring Yes YouTube channel ID starting with "UC" (24-character string) to get videos from maxResultsnumber No Maximum number of videos to return (1-50) orderstring No Sort order: "date" (newest first, default), "rating", "relevance", "title", "viewCount" pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of videos from the channel ↳ videoId string YouTube video ID ↳ title string Video title ↳ description string Video description ↳ thumbnail string Video thumbnail URL ↳ publishedAt string Video publish date ↳ channelTitle string Channel name totalResultsnumber Total number of videos in the channel nextPageTokenstring Token for accessing the next page of results
Get top-level comments from a YouTube video with author details and engagement.
Inputs and outputsParameter Type Required Description videoIdstring Yes YouTube video ID (11-character string, e.g., "dQw4w9WgXcQ") maxResultsnumber No Maximum number of comments to return (1-100) orderstring No Order of comments: "time" (newest first) or "relevance" (most relevant first) pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of top-level comments from the video ↳ commentId string Comment ID ↳ authorDisplayName string Comment author display name ↳ authorChannelUrl string Comment author channel URL ↳ authorProfileImageUrl string Comment author profile image URL ↳ textDisplay string Comment text (HTML formatted) ↳ textOriginal string Comment text (plain text) ↳ likeCount number Number of likes on the comment ↳ publishedAt string When the comment was posted ↳ updatedAt string When the comment was last edited ↳ replyCount number Number of replies to this comment totalResultsnumber Total number of comment threads available nextPageTokenstring Token for accessing the next page of results
Get videos from a YouTube playlist. Can be used with a channel uploads playlist to get all channel videos.
Inputs and outputsParameter Type Required Description playlistIdstring Yes YouTube playlist ID starting with "PL" or "UU" (34-character string). Use uploadsPlaylistId from channel_info to get all channel videos. maxResultsnumber No Maximum number of videos to return (1-50) pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of videos in the playlist ↳ videoId string YouTube video ID ↳ title string Video title ↳ description string Video description ↳ thumbnail string Video thumbnail URL ↳ publishedAt string Date added to playlist ↳ channelTitle string Playlist owner channel name ↳ position number Position in playlist (0-indexed) ↳ videoOwnerChannelId string Channel ID of the video owner ↳ videoOwnerChannelTitle string Channel name of the video owner totalResultsnumber Total number of items in playlist nextPageTokenstring Token for accessing the next page of results
Search for videos on YouTube using the YouTube Data API. Supports advanced filtering by channel, date range, duration, category, quality, captions, live streams, and more.
Inputs and outputsParameter Type Required Description querystring Yes Search query for YouTube videos maxResultsnumber No Maximum number of videos to return (1-50) pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key channelIdstring No Filter results to a specific YouTube channel ID starting with "UC" (24-character string) publishedAfterstring No Only return videos published after this date (RFC 3339 format: "2024-01-01T00:00:00Z") publishedBeforestring No Only return videos published before this date (RFC 3339 format: "2024-01-01T00:00:00Z") videoDurationstring No Filter by video length: "short" (<4 min), "medium" (4-20 min), "long" (>20 min), "any" orderstring No Sort results by: "date", "rating", "relevance" (default), "title", "videoCount", "viewCount" videoCategoryIdstring No Filter by YouTube category ID (e.g., "10" for Music, "20" for Gaming). Use video_categories to list IDs. videoDefinitionstring No Filter by video quality: "high" (HD), "standard", "any" videoCaptionstring No Filter by caption availability: "closedCaption" (has captions), "none" (no captions), "any" eventTypestring No Filter by live broadcast status: "live" (currently live), "upcoming" (scheduled), "completed" (past streams) regionCodestring No Return results relevant to a specific region (ISO 3166-1 alpha-2 country code, e.g., "US", "GB") relevanceLanguagestring No Return results most relevant to a language (ISO 639-1 code, e.g., "en", "es") safeSearchstring No Content filtering level: "moderate" (default), "none", "strict"
Parameter Type Description itemsarray Array of YouTube videos matching the search query ↳ videoId string YouTube video ID ↳ title string Video title ↳ description string Video description ↳ thumbnail string Video thumbnail URL ↳ channelId string Channel ID that uploaded the video ↳ channelTitle string Channel name ↳ publishedAt string Video publish date ↳ liveBroadcastContent string Live broadcast status: "none", "live", or "upcoming" totalResultsnumber Total number of search results available nextPageTokenstring Token for accessing the next page of results
Get the most popular/trending videos on YouTube. Can filter by region and video category.
Inputs and outputsParameter Type Required Description regionCodestring No ISO 3166-1 alpha-2 country code to get trending videos for (e.g., "US", "GB", "JP"). Defaults to US. videoCategoryIdstring No Filter by video category ID (e.g., "10" for Music, "20" for Gaming, "17" for Sports) maxResultsnumber No Maximum number of trending videos to return (1-50) pageTokenstring No Page token for pagination (from previous response nextPageToken) apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of trending videos ↳ videoId string YouTube video ID ↳ title string Video title ↳ description string Video description ↳ thumbnail string Video thumbnail URL ↳ channelId string Channel ID ↳ channelTitle string Channel name ↳ publishedAt string Video publish date ↳ viewCount number Number of views ↳ likeCount number Number of likes ↳ commentCount number Number of comments ↳ duration string Video duration in ISO 8601 format totalResultsnumber Total number of trending videos available nextPageTokenstring Token for accessing the next page of results
Get a list of video categories available on YouTube. Use this to discover valid category IDs for filtering search and trending results.
Inputs and outputsParameter Type Required Description regionCodestring No ISO 3166-1 alpha-2 country code to get categories for (e.g., "US", "GB", "JP"). Defaults to US. hlstring No Language for category titles (ISO 639-1 code, e.g., "en", "es", "fr"). Defaults to English. apiKeystring Yes YouTube API Key
Parameter Type Description itemsarray Array of video categories available in the specified region ↳ categoryId string Category ID to use in search/trending filters (e.g., "10" for Music) ↳ title string Human-readable category name ↳ assignable boolean Whether videos can be tagged with this category totalResultsnumber Total number of categories available
Get detailed information about a specific YouTube video including statistics, content details, live streaming info, and metadata.
Inputs and outputsParameter Type Required Description videoIdstring Yes YouTube video ID (11-character string, e.g., "dQw4w9WgXcQ") apiKeystring Yes YouTube API Key
Parameter Type Description videoIdstring YouTube video ID titlestring Video title descriptionstring Video description channelIdstring Channel ID channelTitlestring Channel name publishedAtstring Published date and time durationstring Video duration in ISO 8601 format (e.g., "PT4M13S" for 4 min 13 sec) viewCountnumber Number of views likeCountnumber Number of likes commentCountnumber Number of comments favoriteCountnumber Number of times added to favorites thumbnailstring Video thumbnail URL tagsarray Video tags categoryIdstring YouTube video category ID definitionstring Video definition: "hd" or "sd" captionstring Whether captions are available: "true" or "false" licensedContentboolean Whether the video is licensed content privacyStatusstring Video privacy status: "public", "private", or "unlisted" liveBroadcastContentstring Live broadcast status: "live", "upcoming", or "none" defaultLanguagestring Default language of the video metadata defaultAudioLanguagestring Default audio language of the video isLiveContentboolean Whether this video is or was a live stream scheduledStartTimestring Scheduled start time for upcoming live streams (ISO 8601) actualStartTimestring When the live stream actually started (ISO 8601) actualEndTimestring When the live stream ended (ISO 8601) concurrentViewersnumber Current number of viewers (only for active live streams) activeLiveChatIdstring Live chat ID for the stream (only for active live streams)