Chart - antoineraulin/deezer-api GitHub Wiki
Retrieve information from a chart
deezer.get("chart")
Result :
Name | Description | Type |
---|---|---|
tracks | list of track | list |
id | The track's Deezer id | int |
title | The track's fulltitle | string |
title_short | The track's short title | string |
title_version | The track version | string |
link | The url of the track on Deezer | url |
duration | The track's duration in seconds | int |
rank | The track's Deezer rank | int |
explicit_lyrics | Whether the track contains explicit lyrics | boolean |
preview | The url of track's preview file. This file contains the first 30 seconds of the track | url |
position | The position of the track in the charts | int |
artist | artist object containing : id, name, link, picture, picture_small, picture_medium, picture_big, picture_xl, radio | object |
album | album object containing : id, title, cover, cover_small, cover_medium, cover_big, cover_xl | object |
albums | list of album | list |
id | The Deezer album id | int |
title | The album title | string |
link | The url of the album on Deezer | url |
cover | The url of the album's cover. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' | url |
cover_small | The url of the album's cover in size small. | url |
cover_medium | The url of the album's cover in size medium. | url |
cover_big | The url of the album's cover in size big. | url |
cover_xl | The url of the album's cover in size xl. | url |
record_type | The record type of the album (EP / ALBUM / etc..) | string |
explicit_lyrics | Whether the album contains explicit lyrics | boolean |
position | The position of the album in the charts | int |
artist | artist object containing : id, name, link, picture, picture_small, picture_medium, picture_big, picture_xl, radio | object |
artists | list of artist | list |
id | The artist's Deezer id | int |
name | The artist's name | string |
link | The url of the artist on Deezer | url |
picture | The url of the artist picture. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' | url |
picture_small | The url of the artist picture in size small. | url |
picture_medium | The url of the artist picture in size medium. | url |
picture_big | The url of the artist picture in size big. | url |
picture_xl | The url of the artist picture in size xl. | url |
radio | true if the artist has a smartradio | boolean |
position | The position of the artist in the charts | int |
playlists | list of playlist | list |
id | The playlist's Deezer id | int |
title | The playlist's title | string |
public | If the playlist is public or not | boolean |
link | The url of the playlist on Deezer | url |
picture | The url of the playlist's cover. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' | url |
picture_small | The url of the playlist's cover in size small. | url |
picture_medium | The url of the playlist's cover in size medium. | url |
picture_big | The url of the playlist's cover in size big. | url |
picture_xl | The url of the playlist's cover in size xl. | url |
position | The position of the playlist in the charts | int |
user | user object containing : id, name | object |
podcasts | list of podcast | list |
id | The podcast's Deezer id | int |
title | The podcast's title | string |
description | The podcast's description | string |
available | If the podcast is available or not | boolean |
rating | The playlist's rate | int |
fans | The number of playlist's fans | int |
link | The url of the podcast on Deezer | url |
share | The share link of the podcast on Deezer | url |
picture | The url of the podcast's cover. | url |
picture_small | The url of the podcast's cover in size small. | url |
picture_medium | The url of the podcast's cover in size medium. | url |
picture_big | The url of the podcast's cover in size big. | url |
picture_xl | The url of the podcast's cover in size xl. | url |
position | The position of the podcasts in the charts | int |
-
Returns the Top tracks.
deezer.get("chart",{method:"tracks"})
Name Description Type id The track's Deezer id int title The track's fulltitle string title_short The track's short title string title_version The track version string link The url of the track on Deezer url duration The track's duration in seconds int rank The track's Deezer rank int explicit_lyrics Whether the track contains explicit lyrics boolean preview The url of track's preview file. This file contains the first 30 seconds of the track url position The position of the track in the charts int artist artist object containing : id, name, link, picture, picture_small, picture_medium, picture_big, picture_xl, radio object album album object containing : id, title, cover, cover_small, cover_medium, cover_big, cover_xl object -
Returns the Top albums.
deezer.get("chart",{method:"albums"})
Name Description Type id The Deezer album id int title The album title string link The url of the album on Deezer url cover The url of the album's cover. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' url cover_small The url of the album's cover in size small. url cover_medium The url of the album's cover in size medium. url cover_big The url of the album's cover in size big. url cover_xl The url of the album's cover in size xl. url record_type The record type of the album (EP / ALBUM / etc..) string explicit_lyrics Whether the album contains explicit lyrics boolean position The position of the album in the charts int artist artist object containing : id, name, link, picture, picture_small, picture_medium, picture_big, picture_xl, radio object -
Returns the Top artists.
deezer.get("chart",{method:"artists"})
Name Description Type id The artist's Deezer id int name The artist's name string link The url of the artist on Deezer url picture The url of the artist picture. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' url picture_small The url of the artist picture in size small. url picture_medium The url of the artist picture in size medium. url picture_big The url of the artist picture in size big. url picture_xl The url of the artist picture in size xl. url radio true if the artist has a smartradio boolean position The position of the artist in the charts int -
Returns the Top playlists.
deezer.get("chart",{method:"playlists"})
Name Description Type id The playlist's Deezer id int title The playlist's title string public If the playlist is public or not boolean nb_tracks Nb tracks in the playlist int link The url of the playlist on Deezer url picture The url of the playlist's cover. Add 'size' parameter to the url to change size. Can be 'small', 'medium', 'big', 'xl' url picture_small The url of the playlist's cover in size small. url picture_medium The url of the playlist's cover in size medium. url picture_big The url of the playlist's cover in size big. url picture_xl The url of the playlist's cover in size xl. url checksum The checksum for the track list string position The position of the playlist in the charts int user user object containing : id, name object -
Returns the Top podcasts.
deezer.get("chart",{method:"podcasts"})
Name Description Type id The podcast's Deezer id int title The podcast's title string description The podcast's description string available If the podcast is available or not boolean rating The playlist's rate int fans The number of playlist's fans int link The url of the podcast on Deezer url share The share link of the podcast on Deezer url picture The url of the podcast's cover. url picture_small The url of the podcast's cover in size small. url picture_medium The url of the podcast's cover in size medium. url picture_big The url of the podcast's cover in size big. url picture_xl The url of the podcast's cover in size xl. url position The position of the podacst in the charts int