The Last.fm API allows you to call methods that respond in REST style xml. Individual methods are detailed in the menu on the left.
Generally speaking, you will send a method parameter expressed as 'package.method' along with method specific arguments to the root URL. The API supports multiple transport formats but will respond in Last.fm idiom xml by default.
- Please use an identifiable User-Agent header on all requests. This helps our logging and reduces the risk of you getting banned.
- Use common sense when deciding how many calls to make. For example, if you're making a web application, try not to hit the API on page load. Your account may be suspended if your application is continuously making several calls per second. See our terms of service for more.
- We assume that you are using an RFC 3986-compliant HTTP client to access the web services. In particular, pay attention to your urlencoding. This will not be an issue for 99% of developers.