Type of change
- API tweak: Add new parameter or new result fields to actual API endpoints
- API extension: Add new API endpoints
Proposal description
There is currently no way to get the total count of artists/albums/tracks in the library other than requesting the entire list. We should expose a way for the clients to get this info either via tweaking existing APIs or adding new endpoints.
Backward compatibility impact
Can be done without breaking backward compatability, especially if done by adding new endpoint(s)
API details
This could be implemented either with new endpoints (getAlbumCount
etc) or as an additional element e.g. <total-count>890</total-count>
returned in the response payload for getArtists
, getAlbumList2
etc. In the latter case, the client could call these endpoints with the size=0
option if they simply want to request the total count.
Security impacts
N/A
Potential issues
N/A
Alternative solutions
HTTP HEAD request instead of GET to return this info?
Proposal status
Proposed / In review / Accepted / Implemented