Skip to content

Spotify App Setup

EchoStats requires a Spotify Developer application to access the Spotify Web API.

Steps

  1. Go to the Spotify Developer Dashboard
  2. Log in with your Spotify account
  3. Click Create App
  4. Fill in the details:
    • App name: EchoStats
    • App description: Self-hosted Spotify analytics
    • Website: Your EchoStats URL (e.g., http://localhost:3000)
    • Redirect URI: http://localhost:8000/api/v1/auth/callback
    • Check Web API
  5. Click Save
  6. Go to Settings and copy your Client ID and Client Secret
  7. Add them to your .env file:
SPOTIFY_CLIENT_ID=your_client_id_here
SPOTIFY_CLIENT_SECRET=your_client_secret_here
SPOTIFY_REDIRECT_URI=http://localhost:8000/api/v1/auth/callback

Important Notes

  • The Redirect URI must match exactly what’s in your .env file
  • For production, update the redirect URI to use your domain
  • You may need to add users under User Management if your app is in development mode
  • Spotify Premium is required for some API features

API Scopes Used

EchoStats requests the following Spotify API scopes:

ScopePurpose
user-read-privateRead user profile
user-read-emailRead user email
user-top-readRead top artists and tracks
user-read-recently-playedRead recently played tracks
user-library-readRead saved tracks
user-read-currently-playingRead currently playing track
playlist-read-privateRead private playlists
playlist-modify-publicCreate/edit public playlists
playlist-modify-privateCreate/edit private playlists