searchVideos
Search YouTube videos and channels using queries with filters for recency, duration, and region. Retrieve video or channel IDs for further use.
Instructions
Universal search tool for YouTube content. Use this to find videos (default) or channels. To find a specific content creator, you MUST set type to 'channel'. Supports filtering by recency (e.g., 'pastWeek') and videoDuration. Returns videoId or channelId needed for other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of content to search for (default: video) | |
| order | No | Sort order for results (default: relevance) | |
| query | Yes | Search query string to find videos | |
| recency | No | Filter by recency. Possible values: 'any', 'pastHour', 'pastDay', 'pastWeek', 'pastMonth', 'pastQuarter', 'pastYear'. | |
| channelId | No | Restrict search to specific channel ID | |
| maxResults | No | Maximum number of results to return (1-500, default: 10) | |
| regionCode | No | 2-letter country code to restrict results | |
| videoDuration | No | Filter by video duration. 'any' (default): no duration filter. 'short': videos less than 4 minutes. 'medium': videos 4 to 20 minutes. 'long': videos longer than 20 minutes. |