youtube_search
Search YouTube videos by query, channel, date range, duration, and sort order. Automatically switches between the Data API and yt-dlp to deliver results.
Instructions
Search YouTube videos. Uses Data API v3 when YOUTUBE_API_KEY is set, falls back to yt-dlp. Filters: date range, channel, duration, order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10, max 50) | |
| order | No | Sort: date, rating, relevance, viewCount, title (API only) | |
| query | Yes | Search query | |
| channel_id | No | Restrict to channel ID (API only) | |
| video_duration | No | short, medium, long (API only) | |
| published_after | No | ISO 8601 date filter (API only) | |
| published_before | No | ISO 8601 date filter (API only) |