As of March 9 2026, this program will no longer work due to changes to the Spotify API.
Please see this Spotify blog post on this change and Spotify API change log
- Docker CLI
- Spotify API Keys
- Obtain a spotify Client ID and Client Secret ID from
https://developer.spotify.com/dashboard - Add the Spotify Client ID to
src/api_keys/spotify_client_id.txt - Add the Spotify Client Secret ID to
/src/api_keys/spotify_client_secret.txt - Run the below docker build command from the command lind
docker build -t spotify-playlist-analyzer .
- Run from the command line
docker run -it --rm --name spotify-playlist-analyzer spotify-playlist-analyzer
- Right click a playlist in spotify
- Select
Share - Select
Copy Spotify URI - Example:
https://open.spotify.com/playlist/603oF0bPdW4ZwSCHF8Zs4L
- Paste the copied URI into the command window
- Press Enter
- Example output
Enter a spotify playlist URL. Formatted like: (open.spotify.com/playlist/)
URL: https://open.spotify.com/playlist/603oF0bPdW4ZwSCHF8Zs4L
Unable to loaded Saved Token requesting new one
requested new token
100%|█████████████████████████████████████████████| 1/1 [00:00<00:00, 4.00it/s]
------------------------------
Top 5 Playlist Genres
------------------------------
18 - downtempo
12 - trip hop
7 - nu jazz
5 - glitch
4 - idm
4 - ambient
Number of artists in playlist: 30
------------------------------
Top 10 Recommended Artists
------------------------------
100%|███████████████████████████████████████████| 30/30 [00:02<00:00, 13.57it/s]
1 - Emancipator
2 - RJD2
3 - Little People
4 - Bonobo
5 - The Glitch Mob
6 - Blockhead
7 - Ancient Astronauts
8 - Prefuse 73
9 - Aydio
10 - Trifonic