Answer the question
In order to leave comments, you need to log in
API last.fm how to get artist information from last fm?
public void ArtistsWeb() {
Caller.getInstance().setUserAgent("tst");
Collection<Artist> info;
String key = "d5caa39183e72b2d5d5f7f1b600c286b"; //this is the key
used in the Last.fm API examples
for(Mp3data data:mp3data) {
info = Artist.getInfo(data.getArtist(), key).getSimilar();
System.out.println(info);
}
}
Answer the question
In order to leave comments, you need to log in
The Last.fm API does not have a data.getArtist definition.
To get artist information use artist.getInfo .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question