Adding a video to a playlist
An AddAction: you added a video (the object) to a playlist (the target). It is keyed by the video, the playlist, and the time, so the YouTube API and a Google Takeout archive produce the same key for the same addition.
{
"@type": "AddAction",
"@key": ["@type", "source", "object.sourceId", "target.sourceId", "timestamp"],
"source": "youtube",
"timestamp": "2026-05-09T20:15:00.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "youtube",
"handle": "UCexampleOwner0000000000",
"sameAs": ["@me"]
},
"object": {
"@type": "VideoObject",
"@key": ["@type", "source", "sourceId"],
"source": "youtube",
"sourceId": "vid00000001",
"url": "https://www.youtube.com/watch?v=vid00000001"
},
"target": {
"@type": "Collection",
"@key": ["@type", "source", "sourceId"],
"source": "youtube",
"sourceId": "PLexample0001",
"url": "https://www.youtube.com/playlist?list=PLexample0001",
"name": "Bike repair"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "AddAction",
"doc:key": {
"@list": ["@type", "source", "object.sourceId", "target.sourceId", "timestamp"]
},
"source": "youtube",
"timestamp": {
"@value": "2026-05-09T20:15:00.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "youtube",
"handle": "UCexampleOwner0000000000",
"sameAs": ["@me"]
},
"object": {
"@type": "VideoObject",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "youtube",
"sourceId": "vid00000001",
"url": "https://www.youtube.com/watch?v=vid00000001"
},
"target": {
"@type": "Collection",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "youtube",
"sourceId": "PLexample0001",
"url": "https://www.youtube.com/playlist?list=PLexample0001",
"name": "Bike repair"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :AddAction;
doc:key ("@type" "source" "object.sourceId" "target.sourceId" "timestamp");
:source "youtube";
:timestamp "2026-05-09T20:15:00.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "youtube";
:handle "UCexampleOwner0000000000";
:sameAs "@me"
];
:object [
a :VideoObject;
doc:key ("@type" "source" "sourceId");
:source "youtube";
:sourceId "vid00000001";
:url "https://www.youtube.com/watch?v=vid00000001"
];
:target [
a :Collection;
doc:key ("@type" "source" "sourceId");
:source "youtube";
:sourceId "PLexample0001";
:url "https://www.youtube.com/playlist?list=PLexample0001";
:name "Bike repair"
]
] .