mupini
mupini

Reputation: 11

Getting most listened to tracks by country using Deezer api

I am trying to get the top 5 listened to (trending) tracks in deezer via the api. I do not see anything on the api exploration tool; http://developers.deezer.com/api/explorer

Is it actually possible to retrieve trending tracks by country?

Upvotes: 1

Views: 1241

Answers (2)

You have to search for the top wordwide playlist and then access to that playlist and get the top five songs

https://api.deezer.com/search/playlist/name?q='Top WorldWide' enter image description here As you see in the picture you have to ge

And then in the result you will have the id and the link to the playlist in the playlist object with the title 'Top WorldWide'

As well you can see the link to the top traks that you can use to get the top tracks as you see in the next picture

enter image description here

Upvotes: 0

Pierrickouw
Pierrickouw

Reputation: 4704

You have to call /chart in the API to retrieve the top songs.

I think you can't choose a specific country.

Upvotes: 6

Related Questions