user.getRecentTracks
Get a list of the recent tracks listened to by this user. Indicates now playing track if the user is currently listening.
Original docs: user.getRecentTracks
Original docs: user.getRecentTracks
Params
user (Required) : The last.fm username to fetch the recent tracks of.limit (Optional) : An integer used to limit the number of tracks 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": "RJ",
"recenttracks": [{
"nowplaying": true,
"artist": {
"name": "Arena",
"mbid": "c0b6a3ee-ec0e-4d15-95b4-4d45c2bb3d89"
},
"streamable": true,
"mbid": "",
"album": {
"name": "Pepper's Ghost",
"mbid": "a88389fc-df1f-4261-97a4-9f4cd17f6fdf"
},
"url": "http://www.last.fm/music/Arena/_/Smoke+and+Mirrors",
"image_small": "...",
"image_medium": "...",
"image_large": "...",
"date": {
"uts": 1214922911,
"text": "1 Jul 2008, 14:35"
}
},
...
]
}