Overview
The Last.fm API Extensions service lets you run Last.fm's API web services and return the results in a variety of data formats such as JSON, JSONP, and Serialized PHP. The service also works to enhance returned data with more information or provide services that don't yet exist (e.g. unauthenticated radio sessions, or other popularly requested calls). The service runs off of Google's App Engine. It is made to be as transparent and uniform as possible with the actual API.
Note: The Last.fm API Extensions service is not run by, associated with, or officially supported by Last.fm so please do not contact their staff members with questions about this service.
API calls are made in the same manner as documented on the Last.fm API page., with the addition of passing one more parameter, "outtype" specifying the data output type (defaulting to XML).
e.g. http://lastfm-api-ext.appspot.com/2.0/?method=artist.getinfo&outtype=json&api_key=b25b959554ed76058ac220b7b2e0a026&artist=Cher
Outputs Artist Info in JSON.
Supported Response Formats
Unless otherwise noted on the docs page for a specific method, the output data formats available for API calls are:
- XML : Same output that Last.fm gives for API calls. Output defaults to XML. It is reccommended to use the Last.fm API directly if you intend to use only XML.
- JSON : JavaScript Object Notation. Set outtype param to "json".
- JSONP : JSON with Padding. Allows data retrieval across domains. Set outtype param to "js".
- Serialized PHP : Serialize / Unserialize objects with PHP. Set outtype param to "php".
Changes
- 08.06.2008: Radio issue fixed! Track names now show in user.getRecentTracks (oops!)
- 07.29.2008: Added the rest of the Geo methods and the Library methods, user.getLovedTracks, and all related docs.
- 07.29.2008: Unauthenticated radio seems to be down. Looking into it.
- 07.08.2008: Added all user methods, and Unauthenticated radio calls / docs
- 07.01.2008: Added a few read-only User webservices (2.0) and docs
- 06.30.2008: Added all read-only Artist webservices (2.0) and docs