Youtube · Schema
ResourceId
Identifies the resource in the search result
GoogleMediaSocialStreamingVideoVideos
Properties
| Name | Type | Description |
|---|---|---|
| kind | string | Type of resource |
| videoId | string | Video ID if the result is a video |
| channelId | string | Channel ID if the result is a channel |
| playlistId | string | Playlist ID if the result is a playlist |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ResourceId",
"title": "ResourceId",
"type": "object",
"description": "Identifies the resource in the search result",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"description": "Type of resource",
"enum": [
"youtube#video",
"youtube#channel",
"youtube#playlist"
],
"example": "youtube#video"
},
"videoId": {
"type": "string",
"description": "Video ID if the result is a video",
"example": "dQw4w9WgXcQ"
},
"channelId": {
"type": "string",
"description": "Channel ID if the result is a channel",
"example": "UC_x5XG1OV2P6uZZ5FSM9Ttw"
},
"playlistId": {
"type": "string",
"description": "Playlist ID if the result is a playlist",
"example": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
}
}
}