CoverArtArchive Unsupported Entities

Hi everyone,

I currently try to use the coverartarchive routes of the MusicBrainz API, but unfortunately I get a response that does not really make sense to me. Can you give me a hint, what I do wrong? This is what I try (also with Postman, my Client Software)

curl https://musicbrainz.org/ws/2/release/01839c5e-6c8e-4e0d-af8a-8ff0dd9ae06a --header "Accept: application/json" --header "Host: coverartarchive.org"

The response I get:

<!doctype html>
<html lang=en>
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Only the following entities are supported: release, release-group</p>

Did I use the entity release incorrectly?

Thank you in advance!

1 Like

The URL you are trying to call is for the MusicBrainz webservice. You shouldn’t call it with a different hostname. This gets release info from MusicBrainz:

https://musicbrainz.org/ws/2/release/01839c5e-6c8e-4e0d-af8a-8ff0dd9ae06a

To query the cover art archive API for the same release use:

https://coverartarchive.org/release/01839c5e-6c8e-4e0d-af8a-8ff0dd9ae06a

See also the CAA API documentation at Cover Art Archive / API - MusicBrainz

6 Likes