Last.fm · Example Payload

Lastfm User Getrecenttracks Example

MusicAudioScrobblingRecommendationsChartsPublic APIsAudioScrobbler

Lastfm User Getrecenttracks Example is an example object payload from Last.fm, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

recenttracks

Example Payload

Raw ↑
{
  "recenttracks": {
    "track": [
      {
        "artist": { "mbid": "a74b1b7f-71a5-4011-9441-d0b5e4122711", "#text": "Radiohead" },
        "streamable": "0",
        "image": [
          { "size": "small", "#text": "https://lastfm.freetls.fastly.net/i/u/34s/abcd.png" }
        ],
        "mbid": "63b3a8ca-26f2-4e2b-b867-647a6ec2bebd",
        "album": { "mbid": "0b6b4ba0-d36f-47bd-b4ea-6a5b91842d29", "#text": "OK Computer" },
        "name": "Karma Police",
        "@attr": { "nowplaying": "true" },
        "url": "https://www.last.fm/music/Radiohead/_/Karma+Police"
      },
      {
        "artist": { "mbid": "20244d07-534f-4eff-b4d4-930878889970", "#text": "Taylor Swift" },
        "name": "Anti-Hero",
        "album": { "mbid": "", "#text": "Midnights" },
        "url": "https://www.last.fm/music/Taylor+Swift/_/Anti-Hero",
        "date": { "uts": "1716910230", "#text": "28 May 2026, 16:50" }
      }
    ],
    "@attr": {
      "user": "rj",
      "page": "1",
      "perPage": "50",
      "totalPages": "184932",
      "total": "9246589"
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/lastfm-user-getrecenttracks-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.