Skip to main content
Glama

get_trending_videos

Retrieve popular YouTube videos by region and category using YouTube Data API v3. Specify country codes and categories like Music, Gaming, or Movies to access trending content.

Instructions

Returns currently popular YouTube videos for a given region and category. NOTE: As of July 2025, YouTube removed its global Trending page. Results now come from category-specific charts (Music, Movies, Gaming). Use category_id 10 for Music, 20 for Gaming, 43 for Movies. category_id 0 returns a mixed set across all categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_codeNoISO 3166-1 alpha-2 country code (e.g. US, GB, IN). Defaults to US.US
category_idNoYouTube video category ID. Use '0' for all categories. Defaults to '0'.0
limitNoNumber of trending videos to return. Max 50. Defaults to 25.

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/Yashkashte5/youtube-mcp'

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