Search YouTube videos
search_videosSearch YouTube by keyword and apply filters for upload date, duration, sort order, and features such as captions; returns video metadata to support discovery and transcript workflows.
Instructions
Search YouTube videos by keyword (YouTube's InnerTube search API, the same one the website uses). Returns video id, title, channel, duration, views, relative publish time, description snippet, thumbnail and badges. Optional filters: upload_date, duration (short <4 min, medium 4-20 min, long >20 min), sort_by, and features (e.g. 'subtitles' = only videos with captions).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_videos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Region (2-letter country code). Default US. | US |
| hl | No | Interface language for result text. Default en. | en |
| limit | No | Max results (1-50). Default 10. | |
| query | Yes | Search keywords | |
| sort_by | No | Result order. Default relevance. | relevance |
| duration | No | short (< 4 min), medium (4-20 min) or long (> 20 min) | |
| features | No | Feature filters, e.g. ['subtitles'] for videos with captions, ['live'], ['hd'], ['creative_commons'] | |
| upload_date | No | Only videos uploaded within the last hour/today/week/month/year |