Overview
Add YouTube to any ModuleX agent or workflow. Search videos, inspect channels and playlists, read trending videos and video categories, and fetch public comments against the YouTube Data API v3 (www.googleapis.com/youtube/v3).
Authentication
API Key Authentication
Authenticate using your YouTube Data API v3 keyStep 1
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| YouTube API Key | Your YouTube Data API v3 key from Google Cloud Console | Yes | AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
Available Actions
search — Search for videos on YouTube with advanced filtering by channel, date range, duration, category, quality, captions, and live streams.
search — Search for videos on YouTube with advanced filtering by channel, date range, duration, category, quality, captions, and live streams.
Parameters
5)Response
trending — Get the most popular/trending videos on YouTube, optionally filtered by region and video category.
trending — Get the most popular/trending videos on YouTube, optionally filtered by region and video category.
Parameters
10)Response
video_details — Get detailed information about a specific YouTube video including statistics, content details, live streaming info, and metadata.
video_details — Get detailed information about a specific YouTube video including statistics, content details, live streaming info, and metadata.
video_categories — Get the list of video categories available on YouTube to discover valid category IDs for filtering search and trending results.
video_categories — Get the list of video categories available on YouTube to discover valid category IDs for filtering search and trending results.
channel_info — Get detailed information about a YouTube channel including statistics, branding, and content details. Provide either channel_id or username.
channel_info — Get detailed information about a YouTube channel including statistics, branding, and content details. Provide either channel_id or username.
channel_videos — Search for videos from a specific YouTube channel with sorting options.
channel_videos — Search for videos from a specific YouTube channel with sorting options.
Parameters
10)Response
channel_playlists — Get all public playlists from a specific YouTube channel.
channel_playlists — Get all public playlists from a specific YouTube channel.
playlist_items — Get videos from a YouTube playlist. Can be used with a channel's uploads playlist to get all of a channel's videos.
playlist_items — Get videos from a YouTube playlist. Can be used with a channel's uploads playlist to get all of a channel's videos.
comments — Get top-level comments from a YouTube video with author details and engagement metrics.
comments — Get top-level comments from a YouTube video with author details and engagement metrics.
Limits & Quotas
- Quota model: the YouTube Data API allocates a daily quota (10,000
units by default per project).
searchcosts ~100 units per call; most read endpoints cost ~1 unit. Plan calls accordingly. - Result caps: list endpoints accept
max_resultsup to 50 (up to 100 forcomments). Usepage_token/next_page_tokento paginate. - Error model: the API returns HTTP 200 with an
{"error": {...}}envelope on failure; these (and non-2xx responses and timeouts) are caught and returned assuccess=False+errorrather than raising. Plan for retries on the agent side based on the error string.
20)relevance)