- API tweak: Add new parameter or new result fields to actual API endpoints
- API extension: Add new API endpoints
Currently, the API only allows for applying one filter criteria at a time to
getAlbumList2 (e.g. if you’re getting albums by genre you can’t additionally filter to within a specific year range, or sort by recently added).
The api should be tweaked, or a new API created, to allow multiple filters and a sort order to be applied simultaneously.
If this is done with a new
getAlbumList3 endpoint, it is not a breaking change
I propose either extending the getAlbumList2 endpoint, or likely creating a new
getAlbumList3 endpoint, which allows for multiple filters and a sort order to be applied simultaneously. Server maintainers may want discussion over what exactly the API call should look like, but I think it should be basically the same as
getAlbumList2 except you don’t need to set the
type parameter to set any of the optional parameters (
For example, you could call
genre=rock, which would mean “get Rock albums from year 1990 through 2023, and sort the result by recently added”
Even better, the
genre option could be changed to
genres to allow the union of multiple genres