Search YouTube
youtube_searchSearch YouTube and get structured JSON results for videos, channels, or playlists, with filters for result type, sort order, and page count.
Instructions
Searches YouTube for query and returns the results as JSON. For each video: videoId, title, url, channel (name/id/url), publishedText, viewCount (+ text), lengthSeconds (+ text), thumbnails, descriptionSnippet, badges, verified and isLive. Filter with type (video / channel / playlist / all) and sort (relevance / date / views / rating), and collect up to max_results across pages. Returns JSON. Billed like an API request; listing plugins bill one unit per result page they fetch, so keep max_results modest.
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": "youtube_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Ordering: relevance, rating, date, views. Default: relevance. | |
| type | No | Result type: video, channel, playlist, movie, all. Default: video. | |
| query | Yes | Search terms. | |
| max_results | No | How many results to collect across pages (~20 per page). Default: 20. | |
| proxy_country | No | Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE'). Defaults to US. |