JSON API

Trending Music API

YouTube Music trending videos across 20 countries, aggregated every 12 hours. Free & CORS-enabled.

Live · Updated automatically

Endpoints

GET/api/trending

Fetch trending music videos with optional country, search, and limit filters.

country 2-letter region code (US, IN, GB, JP, KR, DE, FR, etc). Comma-separate for multiple, e.g. country=US,IN
search Full-text search on title and channel name
limit Maximum number of results to return
// 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"
GET/api/countries

List all available countries with video counts and full names.

curl "https://your-project.vercel.app/api/countries"

Response Format

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"
    }
  ]
}