The Deezer API can be utilized to obtain the most played songs by country by performing the following steps:
Example API Requests:
Search API request to obtain the Deezer ID for Germany: https://api.deezer.com/search?q=Germany…
Response: { "data": [ { "id": 122269, "name": "Germany", "type": "country", "picture": "", "picturesmall": "", "picturemedium": "", "picturebig": "", "picturexl": "", "tracklist": "https://api.deezer.com/playlist/122269/…", "md5_image": "" } ], "total": 1, "prev": null, "next": null }
The Deezer ID for Germany is 122269.
Chart API request to obtain the most played songs for Germany: https://api.deezer.com/chart/0/tracks?l…
Response: { "data": [ { "id": 32122285, "title": "Senorita", "link": "https://www.deezer.com/track/32122285", "duration": 190, "rank": 1, "explicitlyrics": false, "explicitcontentlyrics": 0, "explicitcontentcover": 0, "preview": "https://cdns-preview-8.dzcdn.net/stream…", "artist": { "id": 231758, "name": "Shawn Mendes", "link": "https://www.deezer.com/artist/231758", "picture": "", "picturesmall": "", "picturemedium": "", "picturebig": "", "picturexl": "", "tracklist": "https://api.deezer.com/artist/231758/to…", "type": "artist" }, "album": { "id": 3663821, "title": "Senorita", "cover": "", "coversmall": "", "covermedium": "", "coverbig": "", "coverxl": "", "md5image": "", "tracklist": "https://api.deezer.com/album/3663821/tr…", "type": "album" }, "type": "track" }, ... ] }
The API response includes the top 10 most played songs in Germany. The "title" field in the "data" array contains the name of the song.
Asked: 2022-08-21 11:00:00 +0000
Seen: 16 times
Last updated: May 24 '21