How Spotify login works on a stats site

Spotify stats sites connect through Spotify's own authorization, a standard called OAuth. When you click the login button, the site sends you to accounts.spotify.com. You log in there, Spotify lists the permissions the site is asking for, and you approve or cancel.

If you approve, Spotify sends you back to the site with a one-time code, and the site trades that code for an access token. The token lets the site read only what you approved, through Spotify's Web API. Your password stays with Spotify the whole time.

The permissions a stats site asks for

Each permission is called a scope. These are the seven scopes our Spotify profile viewer asks for, with what each one lets a site read, based on Spotify's list of scopes.

Read-only Spotify scopes used by Music Profile Viewer
ScopeWhat it lets the site read
user-read-privateYour subscription details, meaning the type of account you have
user-read-emailYour email address
user-top-readYour top artists and tracks
user-read-recently-playedYour recently played tracks
user-follow-readThe artists and other users you follow
playlist-read-privateYour private playlists
playlist-read-collaborativeCollaborative playlists, included when the site lists your playlists

All seven are read-only. Scopes that can change your account have "modify" in the name, such as playlist-modify-private, user-library-modify and user-follow-modify. A stats site has no reason to ask for those.

What gets stored, and where

A site has to keep the access token somewhere while you use it. Music Profile Viewer keeps it in your browser's sessionStorage, which belongs to that one tab: the browser clears it when you close the tab, and logging out removes it right away. Your stats load straight from Spotify into your browser, and nothing is saved on our servers.

A stats site can also copy your data to its own servers. Before you connect one, read its privacy policy to see what it keeps and for how long.

Red flags to watch for

How to remove a site's access

  1. Go to spotify.com/account/apps and log in.
  2. Find the stats site in the list of apps.
  3. Click Remove Access next to it.

Spotify lists the same steps on its Spotify on other apps help page. Do it for any app you no longer use or don't recognize.

How Music Profile Viewer handles it

Try the free Spotify profile viewer: Spotify's own login, read-only, no signup.

Comparing other sites? See the best free Spotify stats websites and these Stats for Spotify alternatives.

Sources