Resource: SearchResult
A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.
| JSON representation |
|---|
{
"kind": string,
"etag": string,
"id": {
"kind": string,
"videoId": string,
"channelId": string,
"playlistId": string
},
"snippet": {
"publishedAt": string,
"channelId": string,
"title": string,
"description": string,
"thumbnails": {
object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
id |
The |
id.kind |
The type of the API resource. |
id.videoId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the |
id.channelId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the |
id.playlistId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the |
snippet |
The |
snippet.publishedAt |
The creation date and time of the resource that the search result identifies. The value is specified in ISO 8601 format. |
snippet.channelId |
The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies. |
snippet.title |
The title of the search result. |
snippet.description |
A description of the search result. |
snippet.thumbnails |
A map of thumbnail images associated with the search result. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. |
snippet.channelTitle |
The title of the channel that published the resource that the search result identifies. |
snippet.liveBroadcastContent |
It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's "none" if there is not any upcoming/active live broadcasts. Valid values of this enum field are:
|
Methods |
|
|---|---|
|
Retrieves a list of search resources |