[API Request] Endpoint to retrieve metadata about multiple songs at once #6
Replies: 2 comments 10 replies
-
Do not forget to select the proper type of change. Not sure about the naming, this is one of the global missing feature that for example force me to use Maybe something more like With that said, I like the idea, the less request the more efficient things are. But we should maybe also first define that api extension supporting servers must support post queries, to allow sending larger list of ids? |
Beta Was this translation helpful? Give feedback.
-
I actually don't need this API anymore at the moment since I figured out how to properly update state in my local play queue model. ;) But it still would be a nice API for any clients that save a play queue, or local playlists, across restarts, and need to fetch updated play counts, ratings, etc. for those tracks. |
Beta Was this translation helpful? Give feedback.
-
Type of change
API Extension
Proposal description
I am proposing a new endpoint,
GetSongs
which should behave exactly like the existingGetSong
, except that it accepts multiple IDs and returns info for all the songs requested.This is useful for clients to refresh metadata on an arbitrary set of songs at once, e.g. for a local play queue.
Backward compatibility impact
New API, no backward compatability impact
Backward compatibility
API details
The response payload should be the same as
GetSong
except with multiple nested song elements instead of just one.Security impacts
No response
Potential issues
No response
Alternative solutions
Other suggested name could be
GetSongsInfo
. Or an alternate solution is to just extend the existingGetSong
endpoint to accept multiple IDs, and keep the naming even though it could now be used to get multiple songs.Beta Was this translation helpful? Give feedback.
All reactions