Create a new client instance.
Optional
headers: Record<string, string>Additional headers to pass.
Make a request to the API and parse the response.
The HTTP method to use.
The path to request.
Whether to paginate the response.
Optional
parent: ResourceThe parent resource.
Optional
resourceType: ResourceConstructorThe resource type.
Optional
resourceId: numberThe resource id.
Optional
params: Record<string, string>Additional parameters to pass.
Make a request to the API and parse the response.
The HTTP method to use.
The path to request.
Whether to paginate the response.
Optional
parent: ResourceThe parent resource.
Optional
resourceType: ResourceConstructorThe resource type.
Optional
resourceId: numberThe resource id.
Optional
params: Record<string, string>Additional parameters to pass.
List editorials.
PaginatedList of Editorial - An editorial object.
Get the flow of the user with the given id.
The id of the user to get.
Optional
params: Record<string, string>Additional parameters to pass.
PaginatedList of Track - A list of tracks.
Get the favourites albums for the given userId.
The user id to get the favourite albums.
PaginatedList of Album - A list of albums.
Get the favourite artists for the given userId.
The user id to get the favourite artists.
PaginatedList of Artist - A list of artists.
Get the followers for the given userId.
The user id to get followers.
PaginatedList of User - A list of followers.
Get the followings for the given userId.
The user id to get followings.
PaginatedList of User - A list of followings.
Get the favourites tracks for the given userId.
The user id to get the favourite tracks.
PaginatedList of Track - A list of tracks.
Get the playlists for the given userId.
The user id to get the playlists.
PaginatedList of Playlist - A list of playlists.
Get the podcasts for the given userId.
The user id to get the podcasts.
PaginatedList of Podcast - A list of podcasts.
Get the radios for the given userId.
The user id to get the radios.
PaginatedList of Radio - A list of radios.
Get the charts for the given userId.
The user id to get the charts.
PaginatedList of Chart - A list of charts.
Search tracks.
Advanced search is available by either formatting the query yourself or by using the dedicated keywords arguments.
the query to search for, this is directly passed as q query.
Optional
strict: booleanwhether to disable fuzzy search and enable strict mode.
Optional
ordering: stringsee Deezer API docs for possible values..
Additional parameters to pass.
Optional
artist?: stringThe artist to search for
Optional
album?: stringThe album to search for
Optional
track?: stringThe track to search for
Optional
label?: stringThe label to search for
Optional
dur_min?: numberThe minimum duration of the track
Optional
dur_max?: numberThe maximum duration of the track
Optional
bpm_min?: numberThe minimum BPM of the track
Optional
bpm_max?: numberThe maximum BPM of the track
PaginatedList of Track - A list of tracks.
Search albums matching the given query.
the query to search for, this is directly passed as q query.
Optional
strict: booleanwhether to disable fuzzy search and enable strict mode.
Optional
ordering: stringsee Deezer API docs for possible values.
Search artists matching the given query.
the query to search for, this is directly passed as q query.
Optional
strict: booleanwhether to disable fuzzy search and enable strict mode.
Optional
ordering: stringsee Deezer API docs for possible values.
Search playlists matching the given query.
the query to search for, this is directly passed as q query.
Optional
strict: booleanwhether to disable fuzzy search and enable strict mode.
Optional
ordering: stringsee Deezer API docs for possible values.
A client to retrieve some basic infos about Deezer resources.
Create a client instance with the given options. Options should be passed in to the constructor as kwargs.
Example
This client provides several methods to retrieve the content most kinds of Deezer objects, based on their json structure.
Headers can be forced by using the
headers
kwarg. For example, useAccept-Language
header to force the output language.Example
Param: headers
Additional headers to pass.