Announcements

Help Wizard

Step 1

NEXT STEP

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

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random