API Doc

API Methods

geo.getTopTracks

Get the most popular tracks on Last.fm by country.
Original docs: geo.getTopTracks

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

Params

country (Required) : A country name, as defined by the ISO 3166-1 country names standard.
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)

{
  "country": "Spain",
  "toptracks": [{
      "rank": 1,
      "name": "Violet Hill",
      "playcount": 42,
      "mbid: "",
      "url": "http://www.last.fm/music/Dream+Theater/_/Learning+to+Live",
      "streamable": {
          "fulltrack": false,
          "preview": true
      },
      "artist": {
          "name": "Coldplay",
          "mbid": "cc197bad-dc9c-440d-a5b5-d52ba2e14234",
          "url": "http://www.last.fm/music/Coldplay"
      },
      "image_small": "...",
      "image_medium": "...",
      "image_large": "..."
  },
  ...
  ]
}