|
||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||
See:
Description
| Packages | |
|---|---|
| com.echonest.api.v4 | |
This is a Java client for the Echo Nest developer API. With this API you gain access to a wide variety of artist information as well as access to detailed song and track-level information. To use this API, you need to get an API key which is available for free at developer.echonest.com
public static void main(String[] args) throws EchoNestException {
EchoNestAPI echoNest = new EchoNestAPI(API_KEY);
List<Artist> artists = echoNest.searchArtists("Weezer");
if (artists.size() > 0) {
Artist weezer = artists.get(0);
System.out.println("Similar artists for " + weezer.getName());
for (Artist simArtist : weezer.getSimilar(10)) {
System.out.println(" " + simArtist.getName());
}
}
}
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||