#How to get artist image with last.fm API

11 messages · Page 1 of 1 (latest)

violet peak
#

I was wondering if anyone could give any insight on a way that I should get artist images, since last.fm API doesn't provide them (it just returns a gray star icon). I've tried the like one stackoverflow post I could find on this but the answer isn't very helpful since not all urls are wikimedia commons image urls.

exotic dune
#

It's not possible, Last.fm removed artist image access a while ago due to copyright reasons

#

we use Spotify images

violet peak
#

ah, so should i use the mbid provided in the response from last.fm api to get the url to the artist's spotify from musicbrainz and then use spotify api to get the image?

exotic dune
#

you can just get the artist directly from Spotify using the name

#

no need to go through musicbrainz

violet peak
#

ok, i'll look into spotify's api, thanks for the help

exotic dune
#

np

#

if you have future questions about the lastfm api u can probably ask better in discord.gg/lastfm

#

the #help-api-tools channel also has other devs