Skip to content

Self Hosted Last.FM Alternative to keeping track of your Spotify History

Notifications You must be signed in to change notification settings

ArthurVardevanyan/Analytics-for-Spotify

Repository files navigation

Analytics for Spotify

Production: Actions StatusActions Status Coverage Status

Develop: Actions StatusActions Status Coverage Status

Work In Progress

Self Hosted Last.FM Alternative to keeping track of your Spotify History

Current Features:

  • Keeps Track of Listening History
  • Keeps Track of How Many Times a Song is Played
  • Ability to View Unplayable Songs in a Spotify Playlist
  • Includes Local Files (Hybrid & Realtime Scanning)

Notes:

  • Ignores Scrubbing Through Songs (Counts as one Play)
  • Requires Spotify Developer App to be Created

Internal Site / Local Network Use Only

Not Designed to be Public / Internet Facing.

Spotify API

Scopes

These are the scopes used by the application.

Endpoints

These are the endpoints used by the application.

Scanning Modes

Recently Played Scanning is preferred due to the significantly lower volume of requests being made.

Feature Recently Played Hybrid Currently Playing
Default Mode Yes (Preferred) No No
Offline Support Yes Not Local Songs No
Realtime No Only Local Songs Yes
Polling Frequency ~20 Minutes ~60s Local* & ~ 20m ~5-60 Seconds
Songs Returned Last 50 Local Current & Last 50 Current Song
Repeated Songs Counted Counted / Not Local Currently Ignored
Counted as Played Immediately Immediately / Local 30s After 30 Second Mark

*Hybrid: 5-15 seconds when local song is playing. 60 seconds when non local song is playing.

Sample Images

Analytics For Spotify Sample Song Play Playlist Distribution