This task can be performed using Musicat
Spotify & Apple Music Stats App
Best product for this task

Musicat
music
Musicat lets you track your Spotify & Apple Music history, view stats, check musical memories, discover & discuss music.
What to expect from an ideal product
- Connects to your Spotify and Apple Music accounts
- Shows your complete listening history in one place
- Provides detailed stats on your music habits
- Helps you relive musical memories from the past
- Offers a platform to explore and chat about music with others