Skip to content

cabinfvr/spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 spotify

display your current spotify listening status through a sleek web UI + simple API. built with spotipy, the spotify api, and flask

Deploy with Vercel

πŸ“Έ examples

screenshot 1 screenshot 2 screenshot 3


🧠 api reference

these endpoints return live spotify data from your current playback:

  • GET /api/title πŸ‘‰ returns the current track title

  • GET /api/artist πŸ‘‰ returns the current artist

  • GET /api/image πŸ‘‰ returns the current album artwork


πŸš€ deploying with vercel tutorial

you can get all your spotify credentials from πŸ‘‰ spotify.dev to generate a refresh token, go here πŸ‘‰ spotify-refresh-token-generator.netlify.app

after you deploy, head to your vercel dashboard πŸ‘‰ go to your project β†’ settings β†’ environment variables add these:

SPOTIFY_USERNAME = your spotify username

SPOTIFY_REDIRECT_URI = https://spotify-refresh-token-generator.netlify.app/
# (can technically be anything valid, it’s not used in prod but required for token gen)

SPOTIFY_CLIENT_ID = your client id from spotify.dev

SPOTIFY_CLIENT_SECRET = your client secret from spotify.dev

SPOTIFY_REFRESH_TOKEN = your refresh token from spotify-refresh-token-generator.netlify.app

once that’s done, redeploy + boom 🎧🌈🎢


spotify refresh token generator basic setup

screenshot 4


enjoy πŸŽ΅πŸ’»