youtube_search
YouTube search with cursor pagination — typed hits, ids, canonical URLs, filters (2 credits/page). Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query or keywords (min 2 characters). | |
| type | No | all | videos | shorts | channels | playlists. | |
| cache | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. | |
| limit | No | Max items to return (default 20, max 200). Flat 2 credits per call. | |
| cursor | No | Pagination cursor. Leave empty for the first page; then pass the nextCursor value returned in the previous response. | |
| region | No | ISO country code for localized results (default US). | |
| sortBy | No | relevance | date | views | rating (alias: popular→views). | |
| duration | No | any | under_4 | 4_20 | over_20. Applies to long-form videos (not Shorts). | |
| uploadDate | No | any | today | this_week | this_month | this_year. |