API Doc

API Methods

artist.getTopAlbums

Get the top albums for an artist on Last.fm, ordered by popularity.
Original docs: artist.getTopAlbums

e.g. http://lastfm-api-ext.appspot.com/2.0/?method=artist.getTopAlbums&artist=cher&api_key=b25b959554ed76058ac220b7b2e0a026

Params

artist (Required) : The Artist name in question
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)

{
  "artist": "Cher",
  "topalbums": [{
      "rank": 1,
      "name": "Believe",
      "playcount": 64192,
      "mbid": "61bf0388-b8a9-48f4-81d1-7eb02706dfb0",
      "url": "http://www.last.fm/music/Cher/Believe",
      "artist": {
          "name": "Cher",
          "mbid": "bfcc6d75-a6a5-4bc6-8282-47aec8531818",
          "url": "http://www.last.fm/music/Cher"
      },
      "image_small": "http://cdn.last.fm/coverart/50x50/2026126-648749258.jpg",
      "image_medium": "http://cdn.last.fm/coverart/130x130/2026126-648749258.jpg",
      "image_large": "http://cdn.last.fm/coverart/300x300/2026126-648749258.jpg"
  },
  ...
  ]
}