Saving an album
Saving an album to a Spotify library is a LikeAction, timed by when the album was saved. The MusicAlbum carries its release date as datePublished and its performers as artist.
{
"@type": "LikeAction",
"@key": ["@type", "source", "agent.handle", "object.sourceId", "timestamp"],
"source": "spotify",
"timestamp": "2026-04-02T12:00:00.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "spotify",
"handle": "pat",
"name": "Pat Example",
"url": "https://open.spotify.com/user/pat",
"sameAs": ["@me"]
},
"object": {
"@type": "MusicAlbum",
"@key": ["@type", "source", "sourceId"],
"source": "spotify",
"sourceId": "1bD4fG7hJ9kL2mN5pQ8rS3",
"url": "https://open.spotify.com/album/1bD4fG7hJ9kL2mN5pQ8rS3",
"name": "Morning Songs",
"datePublished": "2024-03-01",
"artist": [
{
"@type": "MusicGroup",
"@key": ["@type", "source", "sourceId"],
"source": "spotify",
"sourceId": "4kQ7wN2pR8sT1vX3yZ5bC6",
"url": "https://open.spotify.com/artist/4kQ7wN2pR8sT1vX3yZ5bC6",
"name": "The Example Band"
}
]
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "LikeAction",
"doc:key": {
"@list": ["@type", "source", "agent.handle", "object.sourceId", "timestamp"]
},
"source": "spotify",
"timestamp": {
"@value": "2026-04-02T12:00:00.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "spotify",
"handle": "pat",
"name": "Pat Example",
"url": "https://open.spotify.com/user/pat",
"sameAs": ["@me"]
},
"object": {
"@type": "MusicAlbum",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "spotify",
"sourceId": "1bD4fG7hJ9kL2mN5pQ8rS3",
"url": "https://open.spotify.com/album/1bD4fG7hJ9kL2mN5pQ8rS3",
"name": "Morning Songs",
"datePublished": "2024-03-01",
"artist": [
{
"@type": "MusicGroup",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "spotify",
"sourceId": "4kQ7wN2pR8sT1vX3yZ5bC6",
"url": "https://open.spotify.com/artist/4kQ7wN2pR8sT1vX3yZ5bC6",
"name": "The Example Band"
}
]
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :LikeAction;
doc:key ("@type" "source" "agent.handle" "object.sourceId" "timestamp");
:source "spotify";
:timestamp "2026-04-02T12:00:00.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "spotify";
:handle "pat";
:name "Pat Example";
:url "https://open.spotify.com/user/pat";
:sameAs "@me"
];
:object [
a :MusicAlbum;
doc:key ("@type" "source" "sourceId");
:source "spotify";
:sourceId "1bD4fG7hJ9kL2mN5pQ8rS3";
:url "https://open.spotify.com/album/1bD4fG7hJ9kL2mN5pQ8rS3";
:name "Morning Songs";
:datePublished "2024-03-01";
:artist [
a :MusicGroup;
doc:key ("@type" "source" "sourceId");
:source "spotify";
:sourceId "4kQ7wN2pR8sT1vX3yZ5bC6";
:url "https://open.spotify.com/artist/4kQ7wN2pR8sT1vX3yZ5bC6";
:name "The Example Band"
]
]
] .