search_videos
Search YouTube for videos, channels, or playlists with keyword queries. Filter results by type, region, order, and publication date to get targeted results.
Instructions
Search YouTube for videos, channels, or playlists.
Args: query: Search keywords or query string. max_results: Number of results to return (1 to 50, default 10). search_type: Type of resource to search for ('video', 'channel', 'playlist'). order: Sort order ('relevance', 'date', 'rating', 'viewCount', 'title'). published_after: RFC 3339 formatted date-time string (e.g. '2024-01-01T00:00:00Z'). region_code: ISO 3166-1 alpha-2 country code (e.g. 'US', 'FR'). raw: If True, returns unaltered raw YouTube Data API response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| order | No | relevance | |
| query | Yes | ||
| max_results | No | ||
| region_code | No | ||
| search_type | No | video | |
| published_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |