Skip to main content

A python SDK for the Deezer API

Project description

This is a python sdk to manipulate the deezer's API


pip install deezersdk


You need to create a deezer's account.

And then you need to create an app on

We will need, your Application ID, Secret Key and the Redirect URL after authentication


A pop up will open and we will be able to login to your deezer account.

You will then be redirected to the url you put in your app with an authorization code in your url.

With this code you can, request your access token

You now have your access token, and can use the SDK.

Use the sdk

Instantiate the sdk

deezer = deezersdk.Deezer(app_id=DEEZER_APP_ID,

Query the API

Get my playlists


Will return an array of Playlist objects witch contain information like the title, and is_loved_track to True if it's your loved playlist

Play a playlist with the plugins

playlists = deezer.get_my_playlists()
url = deezer.get_widget(playlist=playlists[0])

you can add the url in an iframe to display the plugin or you can open it directly with :

import webbrowser

Get my favorites artists

Play a Song

Get author information

Get albums information

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for deezersdk, version 0.17
Filename, size File type Python version Upload date Hashes
Filename, size deezersdk-0.17-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page