Conor O'Neill
Conor O'Neill

Reputation: 1

full list of albums using spotify api

Has anyone pulled a full list of albums using Spotify's API?

I am doing analysis of band names and I need to get the following information:

Band Name,Year Founded (will use the first album release date to derive this), Genre

I was planning to use python curl, but I can only figure out how to pull information for one artist.

Upvotes: 0

Views: 502

Answers (1)

Michael Thelin
Michael Thelin

Reputation: 4830

Unless you have already, please have a look at Spotify's Developer site, and more specifically the endpoint reference. There's an API endpoint to retrieve metadata about multiple at once.

GET https://api.spotify.com/v1/artists?ids={id1},{id2},..

If you're coding in Python, I'd recommend having a look at Spotipy, an open source Python client with language bindings for the Spotify Web API. It might save you some time, but it's not required in any way of course.

As a note of caution, since Spotify doesn't have all albums by all artists, the way you're calculating the band's founding year will sometimes be incorrect.

Upvotes: 2

Related Questions