youtube_search
Search YouTube and filter videos by view count, recency, length, and channel subscribers to get video IDs for transcript retrieval.
Instructions
Search YouTube and filter the results on view count, how recently they were posted, video length, and the channel's subscriber count. Filters combine: a video about X with over 50,000 views, posted in the last month, from a channel with over 80,000 subscribers. Free, no API key. Returns video ids you can pass to youtube_transcript.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many results to return after filtering. Defaults to 10. | |
| query | Yes | What to search for, in plain language. | |
| maxPages | No | How many result pages to read before giving up. Defaults to 4. Raise it when a narrow filter returns too few. | |
| maxViews | No | Drop videos with more views than this. Useful for finding smaller creators. | |
| minViews | No | Drop videos with fewer views than this. | |
| minSubscribers | No | Drop videos from channels with fewer subscribers than this. Costs one extra request per distinct channel, so it runs last, after the free filters have cut the set. | |
| maxDurationSeconds | No | Drop videos longer than this. | |
| minDurationSeconds | No | Drop videos shorter than this. 60 excludes most Shorts. | |
| publishedWithinDays | No | Drop videos older than this many days. COARSE: YouTube gives a relative string ("3 weeks ago"), not a date, so anything inside the current month reads as weeks. Good for "the past month", not for "since the 14th". |