API Doc

API Methods

user.getWeeklyTrackChart

Get a track chart for a user profile, for a given date range. If no date range is supplied, it will return the most recent track chart for this user.
Original docs: user.getWeeklyTrackChart

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

Params

user (Required) : The user name to fetch top tracks for.
from (Optional) : The date at which the chart should start from. See User.getWeeklyChartList for more.
to (Optional) : The date at which the chart should end on. See User.getWeeklyChartList for more.
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",
  "weeklytrackchart": [{
      "rank": 1,
      "name": "Wellen",
      "artist": {
          "name": "Dirk Leyers",
          "mbid": "17b0d7f1-fad3-404e-87ae-874e6e158c3a"
      }
      "playcount": 3,
      "mbid: "",
      "url": "http://www.last.fm/music/Dirk+Leyers/_/Wellen"
  },
  ...
  ]
}