Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Getting 403 error when using sp.audio_features

Getting 403 error when using sp.audio_features

New to spotipy & trying out some simple examples to get tracks on a playlist and the audio_features for those tracks. Using my client id and client secret, I can get a playlist, get the tracks but once I try to get the audio_features I keep getting a 403 error. Code sample below. What am I doing wrong or missing to access the sp.audio_features?  

 

playlist_id = '0NvTo731cP2l4wYwGFzdQ0'
results = sp.playlist_tracks(playlist_id, limit=10)
tracks = results['items']
track_ids = [track['track']['id'] for track in tracks]
audio_features = sp.audio_features(track_ids)

Reply
1 Reply

Hi @DataAL 

 

That is caused by the deprecation of that endpoint in the past week, as you can read here and this pinned post.

 

I hope this answers your question.

 

Cheers,

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Type a product name