user.getFriends
Get a list of the user's friends on Last.fm.
Original docs: user.getFriends
Original docs: user.getFriends
Params
user (Required) : The last.fm username to fetch the friends of.recenttracks (Optional) : Whether or not to include information about friends' recent listening in the response.
limit (Optional) : An integer used to limit the number of friends returned.
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": "joanofarctan",
"friends": [{
"name": "polaroide",
"image_small": "...",
"image_medium": "...",
"image_large": "...",
"url": "http://www.last.fm/user/polaroide/",
"recenttrack": {
"artist": {
"name": "Cat Power",
"mbid": "05755bf1-380c-487f-983f-d1a02401fa28",
"url": "http://www.last.fm/music/Cat+Power"
},
"name": "Hate",
"mbid": null,
"url": "http://www.last.fm/music/Cat+Power/_/Hate"
}
},
...
]
}