🎵 Free Music API

Music Infrastructure
for Developers

No ads. No subscriptions. Just structured YouTube Music data built for modern apps.

BASE https://saragama-render.onrender.com/
6
Endpoints
Free
Forever
REST
Protocol
JSON
Response

API Reference

Click any endpoint to expand, view samples, and try it live.

GET /autocomplete — Search & autocomplete tracks
Query: q
Waiting...
// Response will appear here
Request
GET /autocomplete?q=javed zind
Response
[{
  "title": "Javeda Zindagi",
  "video_url": "PNacQbYrH_E",
  "artist": ["Kshitij", "Shilpa Rao"],
  "thumbnail": "https://lh3.googleusercontent.com/...",
  "duration": "8:23"
}]
GET /recommendation — Get related track recommendations
Query: video_id
Waiting...
// Response will appear here
Request
GET /recommendation?video_id=PNacQbYrH_E
Response
[{
  "video_id": "aG7MaqtWxT8",
  "title": "Khuda Jaane",
  "artist": "Vishal and Sheykhar",
  "album": "Bachna Ae Haseeno",
  "duration": "5:34"
}]
GET /playlist — Fetch playlist tracks & metadata
Query: playid
Waiting...
// Response will appear here
Request
GET /playlist?playid=PL4fGSI1pDJn5JXkyIohg2RstsbL2SnRew
Response
{
  "title": "Top Weekly Videos Punjabi",
  "trackCount": 100,
  "duration": "5 hours, 37 minutes",
  "tracks": [{
    "videoId": "YyepU5ztLf4",
    "title": "Shararat",
    "duration": "3:49"
  }]
}
GET /mixes — Curated Gravity mood mixes
No params
Waiting...
// Response will appear here
Request
GET /mixes
Response
{
  "updated_at": "2026-06-14T10:32:00.123456+00:00",
  "mixes": {
    "focus": {
      "title": "Focus Flow",
      "image": "https://saragama-render.onrender.com/moods/focus.png",
      "trackCount": 20,
      "tracks": [
        {
          "video_id": "abc123",
          "title": "Weightless",
          "artist": "Marconi Union",
          "album": "Weightless",
          "duration": "8:10",
          "thumbnail": "https://..."
        }
      ]
    },
    "night_drive": { "title": "Night Drive", "trackCount": 20, "tracks": [] },
    "moody": { "title": "Moody", "trackCount": 20, "tracks": [] },
    "energy": { "title": "Energy", "trackCount": 20, "tracks": [] },
    "feel_good": { "title": "Feel Good", "trackCount": 20, "tracks": [] },
    "discovery": { "title": "Discovery", "trackCount": 30, "tracks": [] }
  }
}
POST /mixes/refresh — Regenerate Gravity mixes
No params
Waiting...
// Response will appear here
Request
POST /mixes/refresh
Response
{
  "success": true,
  "message": "Mixes refreshed"
}

Why We Built Saragama

Music should be accessible to everyone — not locked behind subscriptions or interrupted by ads. Saragama was built for developers creating streaming apps, discovery engines, playlist explorers, and experimental music platforms.

This is infrastructure for builders. Clean. Structured. Free to use. Music without friction.