How to return only official release groups from webservice

Tags: #<Tag:0x00007f756ddd0420>

How to return only official release groups from webservice? From docs: Release-groups can be filtered on type, and releases can be filtered on type and/or status. But I need filter release-groups on status (oficial). Help me.

Status is for release, not release-group. Thus, you have to query for releases, filter on status (with status=official), and include release-group information (with inc=release-groups):


But this is a bad decision. I need to get all the official albums (release groups) and sort them by date. To do this, I have to return all the releases (make dozens of requests) then filter them and sort them by date. I will have to remove the sorting for better performance, and the application will suffer because of this. Would you like to see albums on your site in random order? This is very bad.


Please, help me.

sorry for my English

1 Like

You may want to consider running a local copy of the database if the only other option is to “make dozens of requests”. That way you can make SQL queries against it and get exactly the data you want, no more and no less.


Unfortunately, this is impossible for a mobile application.

  • all […] for a given artist, right?
  • album is a specific type of release group in MusicBrainz. Add type=album parameter if you want albums only rather than release groups of any type.

For a given artist, you only need to make one request (given in my first reply), then filter release groups and sort them by first-release-date.


Erratum: This is not exact. For Queen, there are 552 album releases, you have to make 6 requests with limit=100 at different offset.


I found better decision:*)%20AND%20status:official&fmt=json return 14 official albums of Queen

1 Like

Oh ok, these are studio-recorded official albums only.