{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["scrobble"]},"play":{"type":"object","properties":{"uid":{"type":"string"},"data":{"type":"object","properties":{"track":{"type":"object","properties":{"name":{"type":"string"},"metadata":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["musicbrainz"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string","enum":["recording","release","track","artist","release-group"]}},"required":["name","id"]},{"type":"object","properties":{"name":{"type":"string","enum":["spotify","youtube","jellyfin","plex","listenbrainz","rocksky","isrc"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string"}},"required":["name","id"]}]}},"image":{"type":"string"}},"required":["name"]},"artists":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"metadata":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["musicbrainz"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string","enum":["recording","release","track","artist","release-group"]}},"required":["name","id"]},{"type":"object","properties":{"name":{"type":"string","enum":["spotify","youtube","jellyfin","plex","listenbrainz","rocksky","isrc"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string"}},"required":["name","id"]}]}},"image":{"type":"string"}},"required":["name"]}},"albumArtists":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"metadata":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["musicbrainz"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string","enum":["recording","release","track","artist","release-group"]}},"required":["name","id"]},{"type":"object","properties":{"name":{"type":"string","enum":["spotify","youtube","jellyfin","plex","listenbrainz","rocksky","isrc"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string"}},"required":["name","id"]}]}},"image":{"type":"string"}},"required":["name"]}},"album":{"type":"object","properties":{"name":{"type":"string"},"metadata":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["musicbrainz"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string","enum":["recording","release","track","artist","release-group"]}},"required":["name","id"]},{"type":"object","properties":{"name":{"type":"string","enum":["spotify","youtube","jellyfin","plex","listenbrainz","rocksky","isrc"]},"image":{"type":"string"},"id":{"type":"string"},"idType":{"type":"string"}},"required":["name","id"]}]}},"image":{"type":"string"}},"required":["name"]},"duration":{"description":"Length of the track, in seconds","type":"number","minimum":0},"playDate":{"description":"When the track was played","type":"string","examples":["2026-11-13T14:05:00.000Z"]},"playDateCompleted":{"description":"When the track finished playing","type":"string","examples":["2026-11-13T14:05:00.000Z"]},"listenedFor":{"description":"Number of seconds the track was listened to","type":"number","minimum":0},"listenRanges":{"description":"Ranges of the track that were listened to","type":"array","items":{"type":"object","properties":{"start":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO8601 timestamp","examples":["2026-11-13T14:05:00.000Z"]},"position":{"description":"Position in the track, in seconds","type":"number"},"positionPercent":{"description":"Position in the track, as a percentage of duration","type":"number"}},"required":["timestamp"]},"end":{"type":"object","properties":{"timestamp":{"type":"string","description":"ISO8601 timestamp","examples":["2026-11-13T14:05:00.000Z"]},"position":{"description":"Position in the track, in seconds","type":"number"},"positionPercent":{"description":"Position in the track, as a percentage of duration","type":"number"}},"required":["timestamp"]}},"required":["start","end"]}},"repeat":{"description":"Play was detected as a repeat of the previous play","type":"boolean"}}},"meta":{"type":"object","properties":{"source":{"description":"Type of Source that discovered this play","type":"string"},"seenAt":{"description":"When Multi-Scrobbler first saw this play","type":"string","examples":["2026-11-13T14:05:00.000Z"]},"musicService":{"description":"Service providing the track (Spotify, Tidal, etc...)","type":"string"},"parsedFrom":{"type":"string","enum":["backlog","now playing","player","history","ingress"]},"trackId":{"description":"Unique ID for this track, given by the Source","type":"string"},"playId":{"description":"Unique ID for this track played at this time, given by the Source","type":"string"},"newFromSource":{"type":"boolean"},"user":{"type":"string"},"mediaType":{"type":"string"},"server":{"type":"string"},"library":{"type":"string"},"trackProgressPosition":{"description":"Position of the player in the track when reported, in seconds","type":"number"},"mediaPlayerName":{"type":"string"},"mediaPlayerVersion":{"type":"string"},"deviceId":{"type":"string"},"sessionId":{"type":"string"},"nowPlaying":{"type":"boolean"},"url":{"type":"object","properties":{"web":{"description":"URL where this track can be found on the service it came from","type":"string"},"origin":{"description":"URL where this play was originally played","type":"string"}}}}}},"required":["data","meta"],"title":"Play"}},"required":["type","play"],"title":"Blackbox Scrobble Payload"}