Last.fm · JSON Structure

Lastfm Track Structure

JSON Structure representation of a Last.fm track record with artist, album, listening stats, and optional scrobble date.

Type: object Properties: 12 Required: 1
MusicAudioScrobblingRecommendationsChartsPublic APIsAudioScrobbler

LastfmTrackStructure is a JSON Structure definition published by Last.fm, describing 12 properties, of which 1 is required. It conforms to the https://json-structure.org/draft/2025/schema meta-schema.

Properties

name mbid url duration artist album listeners playcount userplaycount userloved tags scrobbledAt

Meta-schema: https://json-structure.org/draft/2025/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2025/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lastfm/main/json-structure/lastfm-track-structure.json",
  "name": "LastfmTrackStructure",
  "description": "JSON Structure representation of a Last.fm track record with artist, album, listening stats, and optional scrobble date.",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "mbid": { "type": "string" },
    "url": { "type": "string" },
    "duration": { "type": "string" },
    "artist": { "$ref": "lastfm-artist-structure.json" },
    "album": {
      "type": "object",
      "properties": {
        "title": { "type": "string" },
        "mbid": { "type": "string" },
        "url": { "type": "string" }
      }
    },
    "listeners": { "type": "string" },
    "playcount": { "type": "string" },
    "userplaycount": { "type": "string" },
    "userloved": { "type": "string" },
    "tags": {
      "type": "array",
      "items": { "type": "string" }
    },
    "scrobbledAt": {
      "type": "object",
      "properties": {
        "unixtime": { "type": "string" },
        "humanReadable": { "type": "string" }
      }
    }
  },
  "required": ["name"]
}