spotifyr icon indicating copy to clipboard operation
spotifyr copied to clipboard

Spotify restricting API access

Open pmcharrison opened this issue 1 year ago • 5 comments

https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api

Seems like many of the API routes that we depend on will be restricted, which is a real shame, and will eliminate many academic uses of this package. These are the affected routes:

pmcharrison avatar Nov 29 '24 12:11 pmcharrison

get_track_audio_features does not appear to be working as of today

gbrlrgrs avatar Dec 01 '24 16:12 gbrlrgrs

get_playlist_tracks() not working either :(

SchmidtPaul avatar Dec 06 '24 14:12 SchmidtPaul

Well, I can only think to draft a letter to Spotify and seek clarity on potential changes to their registration rules.

antaldaniel avatar Dec 06 '24 14:12 antaldaniel

@antaldaniel In the meantime, I wonder if we can just add a warning message to the README telling users that many of the functions are now broken? I wouldn't mind drafting it if you like.

pmcharrison avatar Dec 18 '24 15:12 pmcharrison

I already started to review all of them, but indeed it makes more sense in the README, and maybe we can do it in 1-3 rounds if we do not find all at once. Unfortunately the functions are not a 1-1 mapping to the API so there will be unexpected problems, too. Actually, this is all very devastating.

antaldaniel avatar Dec 18 '24 21:12 antaldaniel

I was really sad to see this news! I teach a data visualisation in R class and we use the spotify audio features quite often as examples that students are usually interested in. Thanks to all the contributors for having made this possible.

I wrote a small script that's in this gist for using spotifyr with the current Spotify API restrictions to get artist tracklists and ids and then using ReccoBeats Database API to download audio features and popularity data. It's probably not a great alternative, but it works for my purpose of getting a static dataset for visualising/modelling the audio features and popularity. I thought I would post this here in case anyone else is in a similar situation and is finding out about the API restrictions now. Apologies if it is too off-topic.

cjrwebb avatar Oct 03 '25 09:10 cjrwebb

@cjrwebb Thanks for posting this gist! super helpful. I also have used this as a teaching tool in my data viz class, and thanks to your script, I can continue to do it!

nickreich avatar Oct 07 '25 12:10 nickreich