YouTube Music trending videos across 20 countries, aggregated every 12 hours. Free & CORS-enabled.
Fetch trending music videos with optional country, search, and limit filters.
country=US,IN
// Get top 10 US videos curl "https://your-project.vercel.app/api/trending?country=US&limit=10" // Search for BTS across all countries curl "https://your-project.vercel.app/api/trending?search=BTS" // Get India + Japan trending curl "https://your-project.vercel.app/api/trending?country=IN,JP"
List all available countries with video counts and full names.
curl "https://your-project.vercel.app/api/countries"
Every video item looks like this:
{
"updatedAt": "2026-07-26T13:02:43.540Z",
"category": "Music",
"countries": 20,
"count": 400,
"items": [
{
"id": "YNwmYliuUfE",
"title": "Moneybagg Yo - I See Why",
"channelTitle": "MoneybaggYoVEVO",
"thumbnail": "https://i.ytimg.com/vi/.../hqdefault.jpg",
"duration": "PT3M5S",
"publishedAt": "2026-07-24T17:00:06Z",
"region": "US"
}
]
}