last.fm API bindings for Java


This Project is now hosted on Google Code. Click here to go directly to the project page or read on for more information and documentation.

The last.fm API bindings for java are a BSD-licensed wrapper for the new last.fm api and the last.fm submission service.
It provides classes and methods to invoke last.fm API methods as well as scrobbling songs and streaming radio from within Java applications.

Documentation

A getting started documentation can be found here.
Javadoc is bundled in the download below.

Example

Example source code to list a user's weekly top 10 artists:
	String key = "b25b959554ed76058ac220b7b2e0a026"; //this is the key used in the last.fm API examples online.
	String user = "JRoar";
	Chart<Artist> chart = User.getWeeklyArtistChart(user, 10, key);
	DateFormat format = DateFormat.getDateInstance();
	String from = format.format(chart.getFrom());
	String to = format.format(chart.getTo());
	System.out.printf("Charts for %s for the week from %s to %s:%n", user, from, to);
	Collection<Artist> artists = chart.getEntries();
	for (Artist artist : artists) {
		System.out.println(artist.getName());
	}
More examples are available in the examples package in the source download.

Download

Download the newest version here,
or check out the latest source code.
Issue tracker is available here.
Hosted on Google Code.

Contact /

For questions, bug reports, feature requests, contributions and everything else contact me (Janni Kovacs)
either via last.fm (JRoar) or email (jannikovacs,gmail.com) or post into the last.fm Web Services Group
If this project helped you, you can get me a last.fm gift subscription, Thank You! :-)