API Doc

API Methods

user.getTopAlbums

Get the top albums listened to by a user. You can stipulate a time period. Sends the overall chart by default.
Original docs: user.getTopAlbums

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

Params

user (Required) : The user name to fetch top albums for.
period (Optional) : overall | 3month | 6month | 12month - The time period over which to retrieve top albums for.
api_key (Required) : A Last.fm API key
outtype : The data output format (js, json, php). Default is XML.
callback : Function name that will wrap the data if JSONP (outtype 'js') is used.

Sample Response (JSON Object Structure)

{
  "user": "RJ",
  "type": "overall",
  "topalbums": [{
      "rank": 1,
      "name": "Images and Words",
      "playcount": 174,
      "mbid": "f20971f2-c8ad-4d26-91ab-730f6dedafb2",
      "url": "http://www.last.fm/music/Dream+Theater/Images+and+Words",
      "artist": {
          "name": "Dream Theater",
          "mbid": "28503ab7-8bf2-4666-a7bd-2644bfc7cb1d",
          "url": "http://www.last.fm/music/Dream+Theater"
      },
      "image_small": "...",
      "image_medium": "...",
      "image_large": "...",
  },
  ...
  ]
}