Inspiration

Make Spotify stats actually actionable: insights, personality, and simple recommendations.

What it does

Displays a clean dashboard with charts and quick-read highlights. Exports all analytics as JSON.

How we built it

Flask app with Spotipy for Spotify Web API. OAuth flow with auto ngrok URL detection and token refresh. Data analysis in Python (NumPy/Pandas) for features, genres, patterns.

Challenges we ran into

Spotify API restrictions. Spotify redirect URI errors (fixed with HTTPS/ngrok and auto-detect). Token reuse/caching causing cross-user data (fixed with per-session cache and logout cleanup).

Accomplishments that we're proud of

Rock-solid OAuth that “just works” in local/dev with ngrok. Per-session token isolation preventing data leakage.

What we learned

How to use ngrok and Spotify API

What's next for SpotiStats

Playlists builder from insights (auto-generate “Focus/Energy/Chill”). Shareable, privacy-safe profile cards. Deeper temporal analysis (seasons, routines). Production hosting with custom domain and OAuth app review. Personality insights using Gemini API.

Built With

  • code
  • css-frameworks/libraries:-flask-(python)
  • git/github-(version-control)
  • html
  • javascript
  • languages:-python
  • pandas-platform/tools:-ngrok-(for-exposing-localhost)
  • spotipy-(spotify-api-wrapper)
  • vs
Share this project:

Updates