P
P
Paul Fawkes2019-05-17 21:56:18
API
Paul Fawkes, 2019-05-17 21:56:18

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);
            }

}

I get something weird in the output.
5cdf03d084b56359614193.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Koryakin, 2019-05-17
@zettend

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 question

Ask a Question

731 491 924 answers to any question