protocol7 archive
29 June 2008

last.fm does REST API, FAIL

last.fm just launched their brand new API (via Fredrik). Sporting support for both XML-RPC and REST. Now that’s a first sign of warning. And unsurprisingly it turns out that the “REST” API is just another RPC over HTTP incarnation.

For example.:

http://ws.audioscrobbler.com/2.0/?method=artist.getSimilar&api_key=xxx...

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:

http://ws.audioscrobbler.com/2.0/

WTF? Is it really that hard to get REST? To add insult to injury, they even managed to make up their own authentication protocol, despite, you know, OpenID and OAuth being fairly mainstream these days.

tags: last.fm - REST