library.getAlbums
A paginated list of all the albums in a user's library, with play counts and tag counts.
Original docs: library.getAlbums
Original docs: library.getAlbums
Params
user (Required) : The user whose library you want to fetch.limit (Optional) : Limit the amount of albums returned (maximum/default is 50).
page (Optional) : The page number you wish to scan to.
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",
"page": 1,
"perPage": 50,
"totalPages": 20,
"albums": [{
"name": "Images and Words",
"playcount": 174,
"tagcount": 0,
"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": "...",
},
...
]
}