Last.fm · Schema

Track

A music track on Last.fm with metadata, playcount, and associated album/artist info.

MusicAudioScrobblingRecommendationsChartsPublic APIsAudioScrobbler

Properties

Name Type Description
name string The track name.
mbid string The MusicBrainz ID for the track.
url string The Last.fm URL for the track.
duration string Track duration in seconds.
streamable object
listeners string Number of unique listeners.
playcount string Total number of plays.
userplaycount string Plays by the requesting user (if username parameter supplied).
userloved string Whether the requesting user has loved this track (0 or 1).
artist object
album object The album this track appears on.
toptags object
wiki object
View JSON Schema on GitHub

JSON Schema

track.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/last-fm/main/json-schema/track.json",
  "title": "Track",
  "description": "A music track on Last.fm with metadata, playcount, and associated album/artist info.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The track name."
    },
    "mbid": {
      "type": "string",
      "description": "The MusicBrainz ID for the track."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The Last.fm URL for the track."
    },
    "duration": {
      "type": "string",
      "description": "Track duration in seconds."
    },
    "streamable": {
      "type": "object",
      "properties": {
        "#text": {
          "type": "string"
        },
        "fulltrack": {
          "type": "string"
        }
      }
    },
    "listeners": {
      "type": "string",
      "description": "Number of unique listeners."
    },
    "playcount": {
      "type": "string",
      "description": "Total number of plays."
    },
    "userplaycount": {
      "type": "string",
      "description": "Plays by the requesting user (if username parameter supplied)."
    },
    "userloved": {
      "type": "string",
      "description": "Whether the requesting user has loved this track (0 or 1)."
    },
    "artist": {
      "$ref": "#/$defs/Artist"
    },
    "album": {
      "type": "object",
      "description": "The album this track appears on.",
      "properties": {
        "artist": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "mbid": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "image": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Image"
          }
        },
        "@attr": {
          "type": "object",
          "properties": {
            "position": {
              "type": "string"
            }
          }
        }
      }
    },
    "toptags": {
      "type": "object",
      "properties": {
        "tag": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          }
        }
      }
    },
    "wiki": {
      "type": "object",
      "properties": {
        "published": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      }
    }
  },
  "required": ["name"],
  "$defs": {
    "Artist": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "mbid": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": ["name"]
    },
    "Image": {
      "type": "object",
      "properties": {
        "#text": {
          "type": "string",
          "format": "uri"
        },
        "size": {
          "type": "string",
          "enum": ["small", "medium", "large", "extralarge", "mega"]
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": ["name"]
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/track"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.