[Python] Is there an alternative to the audio features function in Spotipy?

Discussão em 'Python' iniciado por Stack, Março 30, 2025.

  1. Stack

    Stack Membro Participativo

    The function (audio-features) has been deprecated on the Spotify Web API. I need to be able to extract the 12 metrics Spotify uses such as (energy, danceability etc) and I am not sure how else to go about this since the feature is now gone.

    I am using this feature to create a Song Recommendation system in Python using Spotipy for my A level coursework. If anyone can help, it would be really appreciated!

    artist = "Metallica"
    track = "Enter Sandman"

    track_id = sp.search(q='artist:' + artist + ' track:' + track)['tracks']['items'][0]['id']
    print(track_id)

    track_features = sp.audio_analysis(track_id)[0]

    print(track_features)

    Continue reading...

Compartilhe esta Página