Musicbrainz artist image and information

风格不统一 提交于 2020-02-02 06:05:06

问题


I have managed to get an artist's information using the following

http://musicbrainz.org/ws/2/artist/?query=artist:michael%20jackson

Which returns the MBID (or ID). The response here returns back a lot of information but not an image of the Artist.

So further reading leads me to CoverArt (https://musicbrainz.org/doc/Cover_Art) and https://archive.org/ and to get an image its led me to this link https://musicbrainz.org/doc/Cover_Art_Archive/API, which is targeting the release and not the Artist (the way i understand it, is, the release is the artwork of an album that an artist has done, but what i require is an image of the artist itself.

I'm not sure how to obtain the artist's image or if im going the wrong way about it as I've read a lot of links but i think im missing something here and wondered if anyone could advise? As far as i know and think i need the ID of the artist to start with but using the release entity doesnt return the image of an artist and ive substituted release with artist but that returns a 404.


回答1:


With that query you get the MBID. Then you can make this lookup: http://musicbrainz.org/ws/2/artist/f27ec8db-af05-4f36-916e-3d57f91ecf5e?inc=url-rels

Note the inc=url-rels part. More details and other possibilities are given in the MusicBrainz XML Web Service Documentation.

You can't get the urls from the search directly.



来源:https://stackoverflow.com/questions/28458654/musicbrainz-artist-image-and-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!