API Doc

API Methods

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

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

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"
      }
  },
  ...
  ]
}