searchVideos
Search YouTube videos or channels using keyword queries. Filter results by recency, duration, region, and more. Retrieves identifiers 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 |
|---|---|---|---|
| query | Yes | Search query string to find videos | |
| maxResults | No | Maximum number of results to return (1-500, default: 10) | |
| order | No | Sort order for results (default: relevance) | |
| type | No | Type of content to search for (default: video) | |
| channelId | No | Restrict search to specific channel ID | |
| 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. | |
| recency | No | Filter by recency. Possible values: 'any', 'pastHour', 'pastDay', 'pastWeek', 'pastMonth', 'pastQuarter', 'pastYear'. | |
| regionCode | No | 2-letter country code to restrict results |