search_youtube
Search YouTube for videos matching any query, returning titles, channels, URLs, durations, view counts, and upload dates. Get current, structured results for AI agents.
Instructions
Search YouTube for videos matching a query and return a list of matching videos with their metadata.
Performs a live YouTube search over the network, so results reflect current YouTube data and may vary between calls; it is read-only and has no side effects. Returns a list of video objects, each typically containing: title (str), channel (str), url/link (str) to the video, video_id (str), duration (str), view_count (int), and published/upload date (str). Returns an empty list when the query matches no videos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search text, as a string. Example: "model context protocol tutorial". No default (required). | |
| max_results | No | Maximum number of videos to return, as an integer. Example: 10. Default 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| errors | No | ||
| scraper | No | ||
| source_urls | No |