You can export both as GDPR requests on the Account -> Privacy pane of Spotify's settings or through the public APIs here: developer.spotify.net
As I mentioned in a previous comment in this thread, I work for Spotify and specifically on these APIs, we don't block you from extracting your data if you wish.
As I mentioned in a previous comment in this thread, I work for Spotify and specifically on these APIs, we don't block you from extracting your data if you wish.