Connect your Spotify account to your Last.fm account and scrobble everything you listen to, from any Spotify app on any device or platform.
Connect to Spotify
A new version of Last.fm is available, to keep everything running smoothly, please reload the site.
The API root URL is located at http://ws.audioscrobbler.com/2.0/
Generally speaking, you will send a method parameter expressed as 'package.method' along with method specific arguments to the root URL. The following parameters are required for all calls:
api_key : A Last.fm API Key. method : An API method expressed as package.method, corresponding to a documented last.fm API method name.
If you are accessing a write service, you will need to submit your request as an HTTP POST request. All POST requests should be made to the root url:
With all parameters (including the 'method') sent in the POST body. In order to perform write requests you will need to authenticate a user with the API. See authentication for more.
Responses will be wrapped in an lfm status node
Where $status is either ok or failed. If the status is failed you'll get an error code and message. You can strip the status wrapper from the response by sending a raw=true argument with your method call.
See the individual method call pages for service specific error codes. Errors will communicate a code and a message in the following format:
<error code="10">Invalid API Key</error>
You can request API responses in JSON format with the following parameters:
format=json : A Last.fm API Key. callback (Optional) : A callback function name which will wrap the JSON response.
The response is a translation of the XML response format, converted according to the following rules:
* This idiom is rarely used in our XML responses.
"name": "disco pop",
<?xml version="1.0" encoding="utf-8"?>
<results for="disco" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
<opensearch:Query role="request" searchTerms="disco" startPage="1" />
JSON errors do not follow the same transformation rules as success errors, but use the following simplified form:
"message": "Invalid API Key"