include

[DEEZER API] Album's genre data on playlist/tracks method

  • 27 September 2022
  • 5 replies
  • 754 views

I would like to suggest an improvement to Deezer's <playlist/tracks> endpoint (https://developers.deezer.com/api/playlist/tracks): it would be interesting to return album's genre data on this method in order to avoid the necessity of doing another request for each track/album to retrieve these information, turning the query quota limitation difficult for developers to deal with in cases like mine where I want to give to Deezer's user some statistics about the most popular genres on your playlists and listening history. Currently, this is the album data returned on this endpoint: object containing : id, title, cover, cover_small, cover_medium, cover_big, cover_xl.


5 replies

Userlevel 7
Badge +10

Hello @nataliaspeck, Could you please send this to our developpers directly here? 

https://developers.deezer.com/api

Thanks! 

Hey @nataliaspeck , I’m having a similar issue and was wondering if you followed up with Deezer’s dev team and heard back from them?

 

Thanks

Hi,

 

I’m currently integrating Deezer with my app and have come across some roadblocks due to the current API’s design.

 

Certain resources’ attributes availability vary depending on the context they are called. For example, if you make a request to retrieve tracks from a playlist, the tracks don’t include all attributes that you get when you make a request to `/track/<id>`, these are attributes like:

  • isrc
  • disc_number
  • available_countries
  • [etc]

This makes it difficult when your app needs information from a related resource (i.e. playlist track) that’s not available in the response, forcing you to make extra API requests (not good for both parties).

 

It’d be great if we could have a param that’d allow us to control which fields to include in a response, something like:

`/playlist/<id>?fields=id,name,track.id,track.title,track.disc_number,album.name`

 

Thank you.

Was my topic merged here, @yula?

No indication of a merge ...

Hi,
Need genre information too for artist endpoint.
🤞🏻

Reply