Music API
Search and download from the Hep.gg high-quality music library by ISRC, plus a unified downloader for YouTube, SoundCloud, Instagram, TikTok, and Facebook, with cached streaming and artwork.
Music API
The Hep.gg Music API (Music Prime) has two halves. The high-quality music library resolves tracks by ISRC and returns lossless or high-bitrate audio, with live search and cover artwork. The unified downloader takes any YouTube, SoundCloud, Instagram, TikTok, or Facebook link and returns audio or video (YouTube Shorts and Reels included). Every call is authenticated with an API key you mint in the dashboard.
Authentication
There is no public "create a key" endpoint. Keys are minted in the Hep.gg dashboard under the Music app (after your account is approved for it). Once you have a key, send it on each request using whichever of the three methods is convenient:
Precedence, if you somehow send more than one, is: key query param, then Authorization, then X-API-Key. Three endpoints need no key at all: GET / (global stats), GET /artwork/:isrc (cover art), and GET /client (the desktop app download). Everything else requires a key.
Auth errors
No API Key Provided{ "error": "Unauthorized: No API Key Provided" } - no key was sent on a protected route.Invalid API Key{ "error": "Unauthorized: Invalid API Key" } - the key does not exist or has been disabled in the dashboard.Quickstart
Download a single track from the library by ISRC. The default quality is 128; pass quality=320 for HQ.
Endpoints
Error model
Errors are returned as a JSON envelope with an error string. Some routes add a hint or details field when it helps you fix the request.
{ "error": "Invalid ISRC. Must be 12 characters." }| Status | Meaning |
|---|---|
400 | Bad request: missing or invalid params, wrong ISRC length, playlist URL on /download, malformed source URL. |
401 | Missing or invalid (or disabled) API key. |
404 | Track, quality, or artwork not found for the given identifier. |
422 | The unified downloader could not fetch the media (private, removed, age-restricted, or login-walled). |
500 | Worker-side failure. |
Rate limits and quotas
There is no published public rate limit or quota. Hep.gg keeps per-key usage counters (downloads broken down by network, plus library pulls and searches) which are visible in the dashboard. Be a good neighbor: cache results you reuse, and note that HQ library downloads are already cached server-side for 24 hours.