YouTube

Interact with YouTube videos, channels, and playlists

YouTube is the world's largest video sharing platform, hosting billions of videos and serving over 2 billion logged-in monthly users.

With YouTube's extensive API capabilities, you can:

  • Search content: Find relevant videos across YouTube's vast library using specific keywords, filters, and parameters
  • Access metadata: Retrieve detailed information about videos including titles, descriptions, view counts, and engagement metrics
  • Analyze trends: Identify popular content and trending topics within specific categories or regions
  • Extract insights: Gather data about audience preferences, content performance, and engagement patterns

In Sim, the YouTube integration enables your agents to programmatically search and analyze YouTube content as part of their workflows. This allows for powerful automation scenarios that require up-to-date video information. Your agents can search for instructional videos, research content trends, gather information from educational channels, or monitor specific creators for new uploads. This integration bridges the gap between your AI workflows and the world's largest video repository, enabling more sophisticated and content-aware automations. By connecting Sim with YouTube, you can create agents that stay current with the latest information, provide more accurate responses, and deliver more value to users - all without requiring manual intervention or custom code.

Usage Instructions

Integrate YouTube into the workflow. Can search for videos, get trending videos, get video details, get video captions, get video categories, get channel information, get all videos from a channel, get channel playlists, get playlist items, and get video comments.

Tools

youtube_captions

List available caption tracks (subtitles/transcripts) for a YouTube video. Returns information about each caption including language, type, and whether it is auto-generated.

Input

ParameterTypeRequiredDescription
videoIdstringYesYouTube video ID to get captions for
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of available caption tracks for the video
captionIdstringCaption track ID
languagestringLanguage code of the caption (e.g.,
namestringName/label of the caption track
trackKindstringType of caption track:
lastUpdatedstringWhen the caption was last updated
isCCbooleanWhether this is a closed caption track
isAutoSyncedbooleanWhether the caption timing was automatically synced
audioTrackTypestringType of audio track this caption is for
totalResultsnumberTotal number of caption tracks available

youtube_channel_info

Get detailed information about a YouTube channel including statistics, branding, and content details.

Input

ParameterTypeRequiredDescription
channelIdstringNoYouTube channel ID (use either channelId or username)
usernamestringNoYouTube channel username (use either channelId or username)
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
channelIdstringYouTube channel ID
titlestringChannel name
descriptionstringChannel description
subscriberCountnumberNumber of subscribers (0 if hidden)
videoCountnumberNumber of public videos
viewCountnumberTotal channel views
publishedAtstringChannel creation date
thumbnailstringChannel thumbnail/avatar URL
customUrlstringChannel custom URL (handle)
countrystringCountry the channel is associated with
uploadsPlaylistIdstringPlaylist ID containing all channel uploads (use with playlist_items)
bannerImageUrlstringChannel banner image URL
hiddenSubscriberCountbooleanWhether the subscriber count is hidden

youtube_channel_playlists

Get all public playlists from a specific YouTube channel.

Input

ParameterTypeRequiredDescription
channelIdstringYesYouTube channel ID to get playlists from
maxResultsnumberNoMaximum number of playlists to return (1-50)
pageTokenstringNoPage token for pagination
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of playlists from the channel
playlistIdstringYouTube playlist ID
titlestringPlaylist title
descriptionstringPlaylist description
thumbnailstringPlaylist thumbnail URL
itemCountnumberNumber of videos in playlist
publishedAtstringPlaylist creation date
channelTitlestringChannel name
totalResultsnumberTotal number of playlists in the channel
nextPageTokenstringToken for accessing the next page of results

youtube_channel_videos

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.

Input

ParameterTypeRequiredDescription
channelIdstringYesYouTube channel ID to get videos from
maxResultsnumberNoMaximum number of videos to return (1-50)
orderstringNoSort order: "date" (newest first, default), "rating", "relevance", "title", "viewCount"
pageTokenstringNoPage token for pagination
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of videos from the channel
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringVideo description
thumbnailstringVideo thumbnail URL
publishedAtstringVideo publish date
channelTitlestringChannel name
totalResultsnumberTotal number of videos in the channel
nextPageTokenstringToken for accessing the next page of results

youtube_comments

Get top-level comments from a YouTube video with author details and engagement.

Input

ParameterTypeRequiredDescription
videoIdstringYesYouTube video ID
maxResultsnumberNoMaximum number of comments to return (1-100)
orderstringNoOrder of comments: "time" (newest first) or "relevance" (most relevant first)
pageTokenstringNoPage token for pagination
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of top-level comments from the video
commentIdstringComment ID
authorDisplayNamestringComment author display name
authorChannelUrlstringComment author channel URL
authorProfileImageUrlstringComment author profile image URL
textDisplaystringComment text (HTML formatted)
textOriginalstringComment text (plain text)
likeCountnumberNumber of likes on the comment
publishedAtstringWhen the comment was posted
updatedAtstringWhen the comment was last edited
replyCountnumberNumber of replies to this comment
totalResultsnumberTotal number of comment threads available
nextPageTokenstringToken for accessing the next page of results

youtube_playlist_items

Get videos from a YouTube playlist. Can be used with a channel uploads playlist to get all channel videos.

Input

ParameterTypeRequiredDescription
playlistIdstringYesYouTube playlist ID. Use uploadsPlaylistId from channel_info to get all channel videos.
maxResultsnumberNoMaximum number of videos to return (1-50)
pageTokenstringNoPage token for pagination
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of videos in the playlist
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringVideo description
thumbnailstringVideo thumbnail URL
publishedAtstringDate added to playlist
channelTitlestringPlaylist owner channel name
positionnumberPosition in playlist (0-indexed)
videoOwnerChannelIdstringChannel ID of the video owner
videoOwnerChannelTitlestringChannel name of the video owner
totalResultsnumberTotal number of items in playlist
nextPageTokenstringToken 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.

Input

ParameterTypeRequiredDescription
querystringYesSearch query for YouTube videos
maxResultsnumberNoMaximum number of videos to return (1-50)
pageTokenstringNoPage token for pagination (use nextPageToken from previous response)
apiKeystringYesYouTube API Key
channelIdstringNoFilter results to a specific YouTube channel ID
publishedAfterstringNoOnly return videos published after this date (RFC 3339 format: "2024-01-01T00:00:00Z")
publishedBeforestringNoOnly return videos published before this date (RFC 3339 format: "2024-01-01T00:00:00Z")
videoDurationstringNoFilter by video length: "short" (<4 min), "medium" (4-20 min), "long" (>20 min), "any"
orderstringNoSort results by: "date", "rating", "relevance" (default), "title", "videoCount", "viewCount"
videoCategoryIdstringNoFilter by YouTube category ID (e.g., "10" for Music, "20" for Gaming). Use video_categories to list IDs.
videoDefinitionstringNoFilter by video quality: "high" (HD), "standard", "any"
videoCaptionstringNoFilter by caption availability: "closedCaption" (has captions), "none" (no captions), "any"
eventTypestringNoFilter by live broadcast status: "live" (currently live), "upcoming" (scheduled), "completed" (past streams)
regionCodestringNoReturn results relevant to a specific region (ISO 3166-1 alpha-2 country code, e.g., "US", "GB")
relevanceLanguagestringNoReturn results most relevant to a language (ISO 639-1 code, e.g., "en", "es")
safeSearchstringNoContent filtering level: "moderate" (default), "none", "strict"

Output

ParameterTypeDescription
itemsarrayArray of YouTube videos matching the search query
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringVideo description
thumbnailstringVideo thumbnail URL
channelIdstringChannel ID that uploaded the video
channelTitlestringChannel name
publishedAtstringVideo publish date
liveBroadcastContentstringLive broadcast status:
totalResultsnumberTotal number of search results available
nextPageTokenstringToken for accessing the next page of results

Get the most popular/trending videos on YouTube. Can filter by region and video category.

Input

ParameterTypeRequiredDescription
regionCodestringNoISO 3166-1 alpha-2 country code to get trending videos for (e.g., "US", "GB", "JP"). Defaults to US.
videoCategoryIdstringNoFilter by video category ID (e.g., "10" for Music, "20" for Gaming, "17" for Sports)
maxResultsnumberNoMaximum number of trending videos to return (1-50)
pageTokenstringNoPage token for pagination
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of trending videos
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringVideo description
thumbnailstringVideo thumbnail URL
channelIdstringChannel ID
channelTitlestringChannel name
publishedAtstringVideo publish date
viewCountnumberNumber of views
likeCountnumberNumber of likes
commentCountnumberNumber of comments
durationstringVideo duration in ISO 8601 format
totalResultsnumberTotal number of trending videos available
nextPageTokenstringToken for accessing the next page of results

youtube_video_categories

Get a list of video categories available on YouTube. Use this to discover valid category IDs for filtering search and trending results.

Input

ParameterTypeRequiredDescription
regionCodestringNoISO 3166-1 alpha-2 country code to get categories for (e.g., "US", "GB", "JP"). Defaults to US.
hlstringNoLanguage for category titles (e.g., "en", "es", "fr"). Defaults to English.
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
itemsarrayArray of video categories available in the specified region
categoryIdstringCategory ID to use in search/trending filters (e.g.,
titlestringHuman-readable category name
assignablebooleanWhether videos can be tagged with this category
totalResultsnumberTotal number of categories available

youtube_video_details

Get detailed information about a specific YouTube video including statistics, content details, live streaming info, and metadata.

Input

ParameterTypeRequiredDescription
videoIdstringYesYouTube video ID
apiKeystringYesYouTube API Key

Output

ParameterTypeDescription
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringVideo description
channelIdstringChannel ID
channelTitlestringChannel name
publishedAtstringPublished date and time
durationstringVideo duration in ISO 8601 format (e.g.,
viewCountnumberNumber of views
likeCountnumberNumber of likes
commentCountnumberNumber of comments
favoriteCountnumberNumber of times added to favorites
thumbnailstringVideo thumbnail URL
tagsarrayVideo tags
categoryIdstringYouTube video category ID
definitionstringVideo definition:
captionstringWhether captions are available:
licensedContentbooleanWhether the video is licensed content
privacyStatusstringVideo privacy status:
liveBroadcastContentstringLive broadcast status:
defaultLanguagestringDefault language of the video metadata
defaultAudioLanguagestringDefault audio language of the video
isLiveContentbooleanWhether this video is or was a live stream
scheduledStartTimestringScheduled start time for upcoming live streams (ISO 8601)
actualStartTimestringWhen the live stream actually started (ISO 8601)
actualEndTimestringWhen the live stream ended (ISO 8601)
concurrentViewersnumberCurrent number of viewers (only for active live streams)
activeLiveChatIdstringLive chat ID for the stream (only for active live streams)

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started