Syncing
Sync your Spotify data with MyStats
What is Syncing?
Syncing keeps your most recent streams up to date with milestones and other general stats such as total streams, minutes streams, etc. Syncing is a good way to keep your general stats up to date without needing to export and re-import your listening history from Spotify. However, syncing is not a replacement for exporting your listening history. Syncing only updates your most recent streams, while exporting your listening history provides a complete record of all your streams.
Some drawbacks of syncing are:
- Syncing only updates your most recent streams, while exporting your listening history provides a complete record of all your streams.
- Syncing doesn't not work if your are in a private listening session or offline mode.
- Syncing cannot calculate complex data charts such as (but not limited to):
- Heatmap,
- Longest Session
- Yearly/Daily activity
- Top Tracks (lifetime)
- Top Artists (lifetime)
How to Sync
To sync your Spotify data with MyStats, you need to follow these steps:
- Login to MyStats: Go to the MyStats website and log in to your account.
- Navigate to the Sync page: Click on your user profile -> settings -> Import & Syncing.
- Click on the Sync button: This will start the syncing process. The syncing process may take a few minutes to complete, depending on the amount of data you have.
- Check the status: Once the syncing process is complete, you will see a success message and your data will be updated.
or you can upload your Spotify history and syncing will be enabled automatically.
How does it work?
Once you enable syncing (either by clicking the sync button or uploading your Spotify history), MyStats will start syncing your data from Spotify. Here is the process:
- Jobs: MyStats will kick off a job in the background to sync your data. This job will execute every 60 minutes.
- Data Retrieval: MyStats will retrieve your data from Spotify using the Spotify API.
- Data Processing: MyStats will process your
recently played tracksand will update your stats in the database. - Data Storage: MyStats will store your data in the database and will update your stats, however if there has been no new plays since the previous sync it will ignore the storage process.
Now you may be wondering how MyStats accounts for duplicate tracks. We completely wipe all data on upload and re-calculate everything from the listening history. This means no tracks or calculations will overlap.
Note: Syncing may show slightly different data than your exported history, this is because syncing only gets the songs total duration from Spotify, Spotify does not provide how long the track was actually playing, however there is a theshold that Spotify calculates. If the song is over 90% played, it will count as a full play. If the song is under 90% played, it will count as a partial play. This is not a bug, this is how Spotify calculates the data. However, the exported history will show the exact time the track was played, so it may be slightly different than the synced data.