Skip to main content

Spotify

Spotify and Automix

If your Spotify player has Automix enabled and Spotify uses it for your playlist/queue then MS cannot accurately determine when a track will end. This is because the track is "mixed" in your queue with a shorter play time than its actual length and Spotify does not report this modified play time in its API. This does not affect MS's ability to scrobble from Spotify but it will affect the accuracy of the duration MS reports was played.

Authenticate Spotify with Multi-Scrobbler

To access your Spotify history you must create a Spotify App to get a Client ID/Secret.

  1. Login to https://developer.spotify.com with your existing Spotify account and accept Developer Terms

  2. Navigate to your Spotify Developer Dashboard and start the Create App process

  3. Determine the correct Redirect URI to use and set it in your App settings

Redirect URI Instructions

A Redirect URI is the URL that Spotify will navigate your browser to after you complete authorization. The URL will contain the code necessary for multi-scrobbler to get a Spotify access token.

Spotify no longer allows insecure URIs (start with http://) unless the address is 127.0.0.1 -- so localhost and internal IPs (192.168.0.xxx) no longer work.

Use one of the following methods to specify a valid Redirect URI and complete Spotify authentication with multi-scrobbler:

Use a domain you control, with SSL certificates/HTTPS enabled, to create a valid redirect URI.

For example, if you are already running multi-scrobbler behind a reverse proxy (nginx/traefik/caddy) at https://scrobbler.mydomain.com then set the Spotify Redirect URI for your Spotify App, and multi-scrobbler SPOTIFY_REDIRECT_URI ENV, to https://scrobbler.mydomain.com/callback

Alternatively, if multi-scrobbler is not accessible behind your domain, then use the Echo method with your own domain instead of 127.0.0.1.

  1. Save your new App, then copy the Client ID/Secret from the App's Basic Information page.

  2. Add the Client ID, Secret, and Redirect URI to the respective field/ENV in the configuration section below

  3. Start multi-scrobbler, then visit the Web Dashboard and click (Re)authenticate on the Spotify card to start the auth process

Configuration

ENV Config Type

Environmental VariableRequired?DefaultDescription
SPOTIFY_CLIENT_IDYes
SPOTIFY_CLIENT_SECRETYes
SPOTIFY_REDIRECT_URINohttp://localhost:9078/callbackURI must end in callback