Audio

MusicBrainz API

by musicbrainz.org

Audio Added on November 7th, 2026 Checked and working on November 7th, 2026
Visit musicbrainz.org →

What it does

The MusicBrainz API gives open music metadata: artists, releases, recordings, labels and their identifiers, for example to tag a music library or show album details. Requests are GET calls that answer in XML or, with fmt=json, in JSON. Free, no key needed, at about one request per second per IP address. Every request needs a User-Agent with the application's name and a contact address, or it is throttled.
  • API
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Not needed · More APIs with no key
Pricing
Free, no key needed, at about one request per second per IP address.
From the browser
Yes (CORS)
Formats
JSON, XML
Interface
REST, HTTP-GET
Provider
musicbrainz.org
Last checked
Working on November 7th, 2026

More information: https://musicbrainz.org/doc/MusicBrainz_API

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

musicbrainz.org
MusicBrainz API

Example request

curl

curl 'https://musicbrainz.org/ws/2/artist/?query=artist:radiohead&fmt=json&limit=1' \
  -H 'User-Agent: YourApp/1.0 ( https://example.com )'

JavaScript

const response = await fetch("https://musicbrainz.org/ws/2/artist/?query=artist:radiohead&fmt=json&limit=1", {
  headers: {
    "User-Agent": "YourApp/1.0 ( https://example.com )",
  },
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://musicbrainz.org/ws/2/artist/?query=artist:radiohead&fmt=json&limit=1",
    headers={
        "User-Agent": "YourApp/1.0 ( https://example.com )",
    },
    timeout=30,
)
print(response.json())

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried MusicBrainz API.