Skip to content
Advertisement

Is there a way to get a list of playlists containing a particular song in Spotipy (Spotify Python Api)

I want to create a recommendation system of sorts, and I’m trying to find playlists with a given song in them to see what other songs people listen alongside that. Is there a way to do that using the Spotify API in Python?

Advertisement

Answer

Nope, there isn’t. You could however use the endpoint https://api.spotify.com/v1/recommendationsto get related songs to a song. You give a song, artist and genre to Spotify and they give a playlist with similar songs back to you. That could allow you to achieve what you’re trying to do.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement