How to get artists within specific genres?

I’m trying to use the api to get artists by genre, and sometimes the results don’t match up. For example, if I query tags:punk%20rock I’d expect results like this, but the top 5 results are Rock, Aesop Rock, Kid Rock, R.O.C.K., and meg rock.

I’d like to use the genre mbid, but I haven’t found a way to make that work. Is that an option? Or what can I do to get better results?

The search searches for artist name containing “rock”, hence the result. Enclose punk rock in quotes:

https://musicbrainz.org/ws/2/artist?query=tag:“punk%20rock”&limit=5

4 Likes

Thank you. Looking back I had tried single quotes, but not double quotes. I appreciate your help.

1 Like