API Doc

API Methods

playlist.fetch

Fetch playlists using a lastfm playlist url. Returns in XSPF format if XML output is chosen.
Original docs: playlist.fetch

e.g. http://lastfm-api-ext.appspot.com/2.0/?method=playlist.fetch&playlistURL=lastfm://playlist/album/2026126&api_key=b25b959554ed76058ac220b7b2e0a026

Params

playlistURL (Required) : A lastfm protocol playlist url ('lastfm://playlist/...'). See 'playlists' section for more information.
streaming (Optional) : If set to "true", returns mp3 links for song previews when available. (Does not apply to radio playlists)
api_key (Required) : A Last.fm API key
outtype : The data output format (js, json, php). Default is XML. See supported response formats in the overview.
callback : Function name that will wrap the data if JSONP (outtype 'js') is used.

Sample Response (JSON Object Structure)

{
  "description": "Previews for Cher - Believe",
  "creator": "http://www.last.fm/music/Cher/Believe",
  "url": "http://www.last.fm/music/Cher/Believe",
  "title": "Cher - Believe",
  "date": "2008-07-08T18:22:13",
  "trackList": [{
      "album": {
          "url": "http://www.last.fm/music/Cher/Believe",
          "name": "Believe"
      },
      "artist": {
          "url": "http://www.last.fm/music/Cher",
          "name": "Cher"
      },
      "url": "http://www.last.fm/music/Cher/_/Believe",
      "image": "...",
      "title": "Believe",
      "duration": 240000
  },
  ...
  ]
}