Search YouTube
youtube_search_videosSearch YouTube: videos, Shorts, channels or playlists, with sort, date, duration and feature filters.
YouTube search as the site runs it, about 20 results a page. type=all (default), video, short, channel, playlist or movie; sort=relevance (default), popular, date or rating; upload_date=hour|today|week|month|year; duration=short (<3 min), medium (3–20) or long (>20); features (comma list): live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased; region and language localise. Search operators like intitle:"…" work in q. details=true fills each video result with exact counts and dates (slower).
Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
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": {
"q": "<q>"
},
"name": "youtube_search_videos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | What to search for. | |
| sort | No | ||
| type | No | ||
| after | No | The previous page’s `nextPageToken`. Tokens last 6 hours. | |
| region | No | ISO 3166-1 alpha-2 country: the results a visitor there sees. | |
| details | No | ||
| duration | No | ||
| features | No | Comma list of: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased. | |
| language | No | ISO 639-1 language code (en, es, pt-BR). | |
| upload_date | No |