https://spotify-web-api-demo.herokuapp.com/
This demo shows how to access the Spotify Web API using Kotlin and Spring Boot.
Start the service with:
./gradlew bootRun
Ensure the required environment variables are configured before running.
Set these values when deploying (e.g., to Cloud Run) so callback URLs and API credentials are available at runtime:
BASE_URL
– Public URL of the running service (used as a fallback for callbacks)SPOTIFY_CLIENT_ID
– Spotify application client IDSPOTIFY_CLIENT_SECRET
– Spotify application client secretLASTFM_API_KEY
– Last.fm API keyLASTFM_API_SECRET
– Last.fm API secret- Last.fm endpoints default to HTTPS. Override
LASTFM_API_URL
andLASTFM_AUTHORIZE_URL
only if custom values are required.
Enter your Last.fm login on the main page and click LAST.FM to refresh yearly playlists. The refresh runs in the background and logs progress to the application console. To avoid overwhelming Last.fm, yearly charts are fetched sequentially rather than all at once.