wavy / wavyfm-docs

wavy.fm developer documentation
https://wavy.fm/developers
Other
7 stars 1 forks source link

List of albums from user top tracks endpoint #26

Open jivison opened 3 years ago

jivison commented 3 years ago

Use-Case Description

I am trying to display list of most scrobbled tracks on an album, like on last.fm: image Unfortunately because no album information is returned from a users top tracks on last.fm, I cannot cache it with album metadata, which means all of a user's cached top tracks have no album associated with them.

I would also like to display a breakdown of what albums a song has been scrobbled on, as described in the semantics

Semantics

It would be nice if a list of albums was returned when I ask for a user's top tracks. For example, I have scrobbled the track Peek-a-boo by Red Velvet on three different albums. From the last.fm api I get something like

{
  "name": "Peek-a-boo",
  "artist": "Red Velvet",
  "playcount": 157
}

it would be cool if from wavy, we could get a response like:

{
  "name": "Peek-a-boo",
  "artist": "Red Velvet",
  "playcount": 157,
  "albums": [
    { "name": "Perfect Velvet", "playcount": 122 },
    { "name": "The Perfect Red Velvet", "playcount": 34 },
    { "name": "Perfect Velvet - The 2nd Album", "playcount": 1 }
  ]
}

If this isn't possible, any other way to get album information about a top track would be nice (but the solution I outlined would be most convenient)