# work.mattriley.listen

> Published by [mattriley.work](https://lexicon.garden/identity/did:plc:g5frjlzwnpjtxlc6chaqbl4o)

## Description

The most recent track Matt listened to, synced from Last.fm.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:g5frjlzwnpjtxlc6chaqbl4o/work.mattriley.listen)
- [Documentation](https://lexicon.garden/lexicon/did:plc:g5frjlzwnpjtxlc6chaqbl4o/work.mattriley.listen/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:g5frjlzwnpjtxlc6chaqbl4o/work.mattriley.listen/examples)

## Definitions

### `work.mattriley.listen`

**Type**: `record`

Singleton record holding the latest listened track.

**Key**: `literal:latest`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `url` | `string` (uri) | No | Track URL on the upstream source. |
| `album` | `string` | No | Album title, if known. |
| `track` | `string` | Yes | Track title. |
| `artist` | `string` | Yes | Artist name. |
| `source` | `string` | No | Upstream source of the listen data (e.g. lastfm). |
| `imageUrl` | `string` (uri) | No | Album art URL. |
| `syncedAt` | `string` (datetime) | Yes | When this record was last synced from the upstream source. |
| `listenedAt` | `string` (datetime) | No | When the track was scrobbled. Absent while now playing. |
| `nowPlaying` | `boolean` | No | True when the track was playing at sync time. |

## Raw Schema

```json
{
  "id": "work.mattriley.listen",
  "defs": {
    "main": {
      "key": "literal:latest",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "track",
          "artist",
          "syncedAt"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Track URL on the upstream source."
          },
          "album": {
            "type": "string",
            "description": "Album title, if known."
          },
          "track": {
            "type": "string",
            "description": "Track title."
          },
          "artist": {
            "type": "string",
            "description": "Artist name."
          },
          "source": {
            "type": "string",
            "description": "Upstream source of the listen data (e.g. lastfm)."
          },
          "imageUrl": {
            "type": "string",
            "format": "uri",
            "description": "Album art URL."
          },
          "syncedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was last synced from the upstream source."
          },
          "listenedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the track was scrobbled. Absent while now playing."
          },
          "nowPlaying": {
            "type": "boolean",
            "description": "True when the track was playing at sync time."
          }
        }
      },
      "description": "Singleton record holding the latest listened track."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "The most recent track Matt listened to, synced from Last.fm."
}
```
