Last.fm · Example Payload

User Getrecenttracks Response

MusicAudioScrobblingRecommendationsChartsPublic APIsAudioScrobbler

User Getrecenttracks Response 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": {
    "@attr": {
      "user": "exampleuser",
      "page": "1",
      "perPage": "50",
      "totalPages": "12",
      "total": "578"
    },
    "track": [
      {
        "artist": {
          "#text": "Radiohead",
          "mbid": "a74b1b7f-71a5-4011-9441-d0b5e4122711"
        },
        "name": "Karma Police",
        "mbid": "d5e4b4c0-a2c6-4c41-a8c7-6f4e68d5af57",
        "album": {
          "#text": "OK Computer",
          "mbid": "9f7a4c2d-2a3c-4b71-a512-8a3c6be07a44"
        },
        "url": "https://www.last.fm/music/Radiohead/_/Karma+Police",
        "streamable": "0",
        "@attr": {
          "nowplaying": "true"
        }
      },
      {
        "artist": {
          "#text": "Portishead",
          "mbid": "8f6bd1e4-fbe1-45d6-8f00-f9f14d7b5e34"
        },
        "name": "Glory Box",
        "mbid": "a8c4b7f9-0931-4d2c-9b3a-5e7c8d1f0234",
        "album": {
          "#text": "Dummy",
          "mbid": "b2d4e891-2c4a-4d71-9102-6b3f4a5c7e82"
        },
        "url": "https://www.last.fm/music/Portishead/_/Glory+Box",
        "date": {
          "uts": "1718150100",
          "#text": "11 Jun 2024, 20:35"
        },
        "streamable": "0"
      }
    ]
  }
}

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/user-getRecentTracks-response"
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.