Skip to main content
Glama
BACH-AI-Tools

BACH YouTube API MCP Server

search

Search YouTube videos, playlists, channels, or all content types using filters for duration, features, upload date, and sorting options.

Instructions

Search videos, playlists, channels, or all of them. Quota cost is 2 units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch term
tokenNoPagination token Alternatively, use X-TOKEN in header
geoNoISO 3166-2 country code of the region. Like US (default), GB, CA, IN, etc.
langNoLocale/language for request. Like en, gb, hi, etc
typeNoSearch type filter options: video channel playlist movie show shorts Sorting is not available in shorts
durationNoDuration filter options: short - less than 4 min medium - 4 to 20 min long - more than 20 min
featuresNoVideo Features options: HD subtitles CCommons 3D Live Purchased 4K 360 Location HDR VR180 Multiple features could be joined by ',' For example: HD,subtitles
upload_dateNoUpload Date filter options: hour today week month year
sort_byNoResults Sort options: relevance [default] rating date views
localNoGet localized data, the value must be 1. Works with provided value of geo, if not provided then default is US. Quota Cost +1
X-CACHEBYPASSNoCache bypass, the value must be 1 Quota Cost +1
X-TOKENNoAlternative way to pass Pagination token via headers. This will solve 414, URI too long issue.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/bachai-yt-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server