Home News Notes About

Requesting a Deezer access token

This is a personal reminder about the procedure described here. You might have landed on this page from deezer-datasync. We'll request a token with no expiration – an "offline" access token.

  1. Login on Deezer and go to Deezer for developers.
  2. Click on "My Apps", then on "Create a new Application". Here I'll use example.com as an application domain. You'll need the application ID (APP_ID below) and the secret key (SECRET_KEY below), so keep them ready to paste.
  3. Go to this link:

    https://connect.deezer.com/oauth/auth.php?app_id=APP_ID&redirect_uri=https://example.com&perms=offline_access
    
  4. Authorize the permissions.
  5. You'll be redirected to example.com. Copy the code in the URL:

    https://example.com/?code=[code]
    
  6. Now visit this URL:

    https://connect.deezer.com/oauth/access_token.php?app_id=APP_ID&secret=SECRET_KEY&code=CODE_FROM_ABOVE
    

    You'll end up on a page delivering the token.

    access_token=[access-token]&expires=0
    
  7. If you're coming from deezer-datasync, add it to application.conf under deezer.token (see example config in the README or source code).