How to download multipage search results?

The search page updates every time I reload (send an GET request).

The updating of the page causes the release group names to get mixed, even with different pages.

So, how to download a multipage search result while ensuring that all the values in the search result are downloaded.

Example:

Try reloading the following link:
https://musicbrainz.org/search?query=firstreleasedate%3A[1900%20TO%202020]%20AND%20type%3A(Album%20OR%20EP)%20AND%20status%3Aofficial%20AND%20arid%3A72c536dc-7137-4477-a521-567eeb840fa8&type=release_group&limit=100&method=advanced&page=2

it will change after a few reloads.

1 Like

This is annoying indeed. It is due to search results being currently sorted by score only, and all of these results have the same score (84). Here is the corresponding ticket to follow/vote:

I recommend you to use the web service instead; See https://musicbrainz.org/doc/MusicBrainz_API/Search.

To follow your example, you can get all search results either in XML (here) or in JSON (here).

5 Likes

Unfortunately same problem with web service.

Click the JSON link, press F5 several times, you will see a different subset of 25 items among 156 total, not always the same (first item will alternate between Things Have Changed and Melancholy Mood, same for the others).

You cannot paginate this result set to get all items without duplicate and without missing any.
So this bug (MBS-12154) is also happening with release groups:

Thanks @aerozol for reminding me this topic.

Web service query search results should be ordered by entity row ID to ensure a working pagination with offset and limit, as documented.

1 Like