display your current spotify listening status through a sleek web UI + simple API. built with spotipy, the spotify api, and flask
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
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 π§ππΆ
enjoy π΅π»



