Spotipy: current_user_top_songs() function returns 403

Plan

Free

Country

United Kingdom

Device

Macbook Pro (2019)

Operating System

 MacOS Monterey (12.4)

 

My Question or Issue

Hi,

 

Unfortunately I am running in to an issue with the top tracks endpoint on the Spotify API. I am using the Spotify library to build a website to display the user's top tracks as one of its primary functions. The Spotipy library allows the user to do this using the sp.current_user_top_tracks() function. Last week this worked correctly without issue but upon reloading the page, the function now returns this error. I didn't make any changes to code since it last worked, so I am unsure of whether the issue is to do with my code or the Spotify endpoint. 

 

Any help at all is greatly appreciated, thank you!

 

 

 

Child Item
Child Item
Child Item

Accepted answers

All comments

Child Item
Child Item