Artist Details by Lookup api

how to get the total numbers of recordings of an artist by lookup?

Not sure how well versed you are in the way musicbrainz works but you’ll need a unique artist id because many artists can share the same name…

https://musicbrainz.org/doc/MusicBrainz_Identifier

If you had an ID for the band Underworld, you could perform a recording lookup like this.

https://musicbrainz.org/ws/2/recording?fmt=json&limit=100&artist=ba2f4f3b-0293-4bc8-bb94-2f73b5207343

To get an ID, it’s best to have nicely tagged files which your app can read them from.

If it’s a web based app or you want to search by artist name, first you’ll need to get an ID for the artist by performing a search and the retrieving the ID from the response…

https://musicbrainz.org/ws/2/artist?fmt=json&query=artist:Underworld

Blindly picking the first response might work in some cases but really you need an interface so you can pick the correct artist - the whole point of IDs is to avoid any ambiguity.

7 Likes

thanks you so much, you made my day.

1 Like