Help - How to use Api to lookup album releases for an artist

Tags: #<Tag:0x00007f05094392b0> #<Tag:0x00007f0509439120> #<Tag:0x00007f0509438f90>


Noob here, so sorry for asking stupid questions, but here goes!

I’m trying to work out how to query the musicbrainz api in order to get back a given artists main studio albums, much like you can see on the this page:

I know I can lookup the artist ID by using the artist endpoints:

I can get from that query the artists “id” which I assumed I’d be able to use on the /release-group address. I couldn’t work out how I could use that ID on the other address :frowning:

Instead I thought I would just use the artist query on the release-group address to see what I got, like so:

but I end up with a bunch of hits that are tribute/bootleg albums. Even then, they don’t look like studio/main releases and I’m not sure how to reduce the results to get that. I’ve tried to find API documentation and found this, which has given me clues but not answers:

I’d like to be able to identify the artist and then use that ID to look up all studio releases.

Can anyone help me with this?


So first do a search for the artist, note that sometimes there are several artists with the same name so you may need to work out if you have the right one.

Once you have the artist id you want to run a query like the below to get the list of release groups:

You change what you include by using inc= parameters for example release-groups or url-rels etc.

There is a “search” version of the api and a lookup api, you probably want to search for the artist and then use the artist id to look up more information.