Closed fhopp closed 7 years ago
( Not sure if you still need help on this one but: ) Although popularity is usually given in Spotify's track objects, when you're using the endpoint that gets an album's tracks, you're actually getting a simplified version of the track objects which doesn't include popularity.
You can check out what's included in the response at this endpoint. If you need the popularity, you may have to make separate requests for the full track information for each track using its id.
Hey @fhopp did you ever find a solution to this problem?
Has anyone found a way to get the popularity of a song, /not/ of an /artist/? The examples that give you info on tracks only deliver metadata such as duration and explicitness, but Spotify's API also provides the title popularity in their track object (https://developer.spotify.com/web-api/get-track/#disqus_thread) I know that not every song has a popularity rating, but my code below gives me NaNs for /all/ songs (and I am scraping quite a bunch). Any ideas? Here's the track-portion of the code, thanks!