Youtube · Schema
PlaylistItem
A playlistItem resource identifies another resource, such as a video, that is included in a playlist.
GoogleMediaSocialStreamingVideoVideos
Properties
| Name | Type | Description |
|---|---|---|
| kind | string | Identifies the API resource's type. Value is youtube#playlistItem. |
| etag | string | The Etag of this resource. |
| id | string | The ID that YouTube uses to uniquely identify the playlist item. |
| snippet | object | Basic details about the playlist item such as its title and position in the playlist. |
| contentDetails | object | The contentDetails object is included in the resource if the included item is a YouTube video. |
| status | object | The status object contains information about the playlist item's privacy status. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PlaylistItem",
"title": "PlaylistItem",
"type": "object",
"description": "A playlistItem resource identifies another resource, such as a video, that is included in a playlist.",
"required": [
"kind",
"etag"
],
"properties": {
"kind": {
"type": "string",
"description": "Identifies the API resource's type. Value is youtube#playlistItem.",
"default": "youtube#playlistItem",
"example": "youtube#video"
},
"etag": {
"type": "string",
"description": "The Etag of this resource.",
"example": "XI7nbFXulYBIpL0ayR_gDh3eu1k"
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the playlist item.",
"example": "abc123def456"
},
"snippet": {
"type": "object",
"description": "Basic details about the playlist item such as its title and position in the playlist.",
"properties": {
"publishedAt": {
"type": "string",
"format": "date-time",
"description": "The date and time that the item was added to the playlist."
},
"channelId": {
"type": "string",
"description": "The ID of the user that added the video to the playlist."
},
"title": {
"type": "string",
"description": "The item title."
},
"description": {
"type": "string",
"description": "The item description."
},
"thumbnails": {
"type": "object",
"description": "A map of thumbnail images associated with the playlist item."
},
"channelTitle": {
"type": "string",
"description": "The channel title of the channel that the playlist item belongs to."
},
"playlistId": {
"type": "string",
"description": "The ID of the playlist that the playlist item is in."
},
"position": {
"type": "integer",
"description": "The order in which the item appears in the playlist."
},
"resourceId": {
"type": "object",
"description": "The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.",
"properties": {
"kind": {
"type": "string",
"description": "The kind, or type, of the referred resource."
},
"videoId": {
"type": "string",
"description": "If the snippet.resourceId.kind property has a value of youtube#video, this property is present."
}
}
}
},
"example": "example_value"
},
"contentDetails": {
"type": "object",
"description": "The contentDetails object is included in the resource if the included item is a YouTube video.",
"properties": {
"videoId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify a video."
},
"videoPublishedAt": {
"type": "string",
"format": "date-time",
"description": "The date and time that the video was published to YouTube."
}
},
"example": "example_value"
},
"status": {
"type": "object",
"description": "The status object contains information about the playlist item's privacy status.",
"properties": {
"privacyStatus": {
"type": "string",
"description": "The playlist item's privacy status."
}
},
"example": "example_value"
}
}
}