Youtube Search Videos
youtube_search_videosDiscover YouTube videos by topic with keyword search; returns video IDs, titles, channels, publish times, and page tokens. Calls draw from a 100-per-day quota.
Instructions
Search YouTube for videos by keyword. Uses a scarce quota bucket: 100 calls/day.
Returns video IDs with titles, descriptions, channels and publish times, plus
next_page_token for the following page.
Prefer other tools first. search.list has its own bucket of only 100 calls per
day, separate from everything else, and it cannot be extended. To list a channel's
videos use youtube_list_channel_videos (2 calls from the large shared pool), and to
answer a question about a video use youtube_search_in_transcript. Use this when you
genuinely need to discover videos by topic.
Each page — including one fetched with page_token — costs another call, so ask for
what you need in one go rather than paging blindly. Results carry no statistics; call
youtube_get_video_stats (its own 10,000/day bucket) for view/like counts.
order: relevance (default), date, viewCount, rating, title, videoCount —
non-relevance orders can return a smaller, incomplete set. published_after /
published_before are RFC 3339 timestamps and must be timezone-aware; naive values are
interpreted as UTC.
safe_search: moderate (default), strict, none. region_code is ISO 3166-1
alpha-2, video_category_id comes from youtube_list_categories. Like counts are
available on videos; dislike counts are not (YouTube made them private in 2021).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | ||
| query | Yes | ||
| page_token | No | ||
| max_results | No | ||
| region_code | No | ||
| safe_search | No | ||
| published_after | No | ||
| published_before | No | ||
| video_category_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| next_page_token | No |