blob: 23c7e31c03a4fdb1fa94ee0695b585fe16a94ceb [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.search.html">search</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list">list(part, forDeveloper=None, locationRadius=None, videoDefinition=None, order=None, forContentOwner=None, videoType=None, topicId=None, videoEmbeddable=None, videoDuration=None, forMine=None, maxResults=None, relevanceLanguage=None, publishedAfter=None, pageToken=None, q=None, regionCode=None, onBehalfOfContentOwner=None, location=None, videoDimension=None, type=None, videoSyndicated=None, channelId=None, eventType=None, publishedBefore=None, videoCategoryId=None, channelType=None, relatedToVideoId=None, videoLicense=None, safeSearch=None, videoCaption=None, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves a list of search resources</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="list">list(part, forDeveloper=None, locationRadius=None, videoDefinition=None, order=None, forContentOwner=None, videoType=None, topicId=None, videoEmbeddable=None, videoDuration=None, forMine=None, maxResults=None, relevanceLanguage=None, publishedAfter=None, pageToken=None, q=None, regionCode=None, onBehalfOfContentOwner=None, location=None, videoDimension=None, type=None, videoSyndicated=None, channelId=None, eventType=None, publishedBefore=None, videoCategoryId=None, channelType=None, relatedToVideoId=None, videoLicense=None, safeSearch=None, videoCaption=None, x__xgafv=None)</code>
<pre>Retrieves a list of search resources
Args:
part: string, The &lt;code&gt;&lt;strong&gt;part&lt;/strong&gt;&lt;/code&gt; parameter specifies a
comma-separated list of one or more &lt;code&gt;search&lt;/code&gt; resource properties
that the API response will include. Set the parameter value to
&lt;code&gt;snippet&lt;/code&gt;. (required) (repeated)
forDeveloper: boolean, Restrict the search to only retrieve videos uploaded using the project id
of the authenticated user.
locationRadius: string, Filter on distance from the location (specified above).
videoDefinition: string, Filter on the definition of the videos.
order: string, Sort order of the results.
forContentOwner: boolean, Search owned by a content owner.
videoType: string, Filter on videos of a specific type.
topicId: string, Restrict results to a particular topic.
videoEmbeddable: string, Filter on embeddable videos.
videoDuration: string, Filter on the duration of the videos.
forMine: boolean, Search for the private videos of the authenticated user.
maxResults: integer, The &lt;code&gt;&lt;strong&gt;maxResults&lt;/strong&gt;&lt;/code&gt; parameter specifies the
maximum number of items that should be returned in the result set.
relevanceLanguage: string, Return results relevant to this language.
publishedAfter: string, Filter on resources published after this date.
pageToken: string, The &lt;code&gt;&lt;strong&gt;pageToken&lt;/strong&gt;&lt;/code&gt; parameter identifies a specific
page in the result set that should be returned. In an API response, the
&lt;code&gt;nextPageToken&lt;/code&gt; and &lt;code&gt;prevPageToken&lt;/code&gt; properties
identify other pages that could be retrieved.
q: string, Textual search terms to match.
regionCode: string, Display the content as seen by viewers in this country.
onBehalfOfContentOwner: string, &lt;strong&gt;Note:&lt;/strong&gt; This parameter is intended exclusively for YouTube
content partners.&lt;br&gt;&lt;br&gt;The
&lt;code&gt;&lt;strong&gt;onBehalfOfContentOwner&lt;/strong&gt;&lt;/code&gt; parameter indicates
that the
request&#x27;s authorization credentials identify a YouTube CMS user who is
acting on behalf of the content owner specified in the parameter value.
This parameter is intended for YouTube content partners that own and manage
many different YouTube channels. It allows content owners to authenticate
once and get access to all their video and channel data, without having to
provide authentication credentials for each individual channel. The CMS
account that the user authenticates with must be linked to the specified
YouTube content owner.
location: string, Filter on location of the video
videoDimension: string, Filter on 3d videos.
type: string, Restrict results to a particular set of resource types from One Platform. (repeated)
videoSyndicated: string, Filter on syndicated videos.
channelId: string, Filter on resources belonging to this channelId.
eventType: string, Filter on the livestream status of the videos.
publishedBefore: string, Filter on resources published before this date.
videoCategoryId: string, Filter on videos in a specific category.
channelType: string, Add a filter on the channel search.
relatedToVideoId: string, Search related to a resource.
videoLicense: string, Filter on the license of the videos.
safeSearch: string, Indicates whether the search results should include restricted content as
well as standard content.
videoCaption: string, Filter on the presence of captions on the videos.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{
&quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the &lt;code&gt;pageToken&lt;/code&gt;
# parameter to retrieve the next page in the result set.
&quot;visitorId&quot;: &quot;A String&quot;, # The &lt;code&gt;visitorId&lt;/code&gt; identifies the visitor.
&quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items # General pagination information.
# available and number of resources returned in a single page.
&quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
&quot;totalResults&quot;: 42, # The total number of results in the result set.
},
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
&quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
&quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
},
&quot;prevPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the &lt;code&gt;pageToken&lt;/code&gt;
# parameter to retrieve the previous page in the result set.
&quot;regionCode&quot;: &quot;A String&quot;,
&quot;kind&quot;: &quot;youtube#searchListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string
# &lt;code&gt;&quot;youtube#searchListResponse&quot;&lt;/code&gt;.
&quot;items&quot;: [ # Pagination information for token pagination.
{ # 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.
&quot;kind&quot;: &quot;youtube#searchResult&quot;, # Identifies what kind of resource this is. Value: the fixed string
# &lt;code&gt;&quot;youtube#searchResult&quot;&lt;/code&gt;.
&quot;snippet&quot;: { # Basic details about a search result, including title, description and # The &lt;code&gt;snippet&lt;/code&gt; object contains basic details about a search
# result, such as its title or description. For example, if the search result
# is a video, then the title will be the
# video&#x27;s title and the description will be the video&#x27;s description.
# thumbnails of the item referenced by the search result.
&quot;description&quot;: &quot;A String&quot;, # A description of the search result.
&quot;channelTitle&quot;: &quot;A String&quot;, # The title of the channel that published the resource that the search result
# identifies.
&quot;publishedAt&quot;: &quot;A String&quot;, # The creation date and time of the resource that the search result
# identifies. The value is specified in &lt;a
# href=&quot;//www.w3.org/TR/NOTE-datetime&quot;&gt;ISO 8601&lt;/a&gt;
# format.
&quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # 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.
&quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
&quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
&quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
&quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
},
&quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
&quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
&quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
&quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
},
&quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
&quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
&quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
&quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
},
&quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
&quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
&quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
&quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
},
&quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
&quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
&quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
&quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
},
},
&quot;title&quot;: &quot;A String&quot;, # The title of the search result.
&quot;liveBroadcastContent&quot;: &quot;A String&quot;, # It indicates if the resource (video or channel) has upcoming/active live
# broadcast content. Or it&#x27;s &quot;none&quot; if there is not any upcoming/active
# live broadcasts.
&quot;channelId&quot;: &quot;A String&quot;, # The value that YouTube uses to uniquely identify the channel that
# published the resource that the search result identifies.
},
&quot;id&quot;: { # A resource id is a generic reference that points to another YouTube resource. # The &lt;code&gt;id&lt;/code&gt; object contains information that can be used to
# uniquely identify the resource that matches the search request.
&quot;kind&quot;: &quot;A String&quot;, # The type of the API resource.
&quot;videoId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the referred resource, if
# that resource is a video. This property is only present if the
# &lt;code&gt;resourceId.kind&lt;/code&gt; value is &lt;code&gt;youtube#video&lt;/code&gt;.
&quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the referred resource, if
# that resource is a channel. This property is only present if the
# &lt;code&gt;resourceId.kind&lt;/code&gt; value is &lt;code&gt;youtube#channel&lt;/code&gt;.
&quot;playlistId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the referred resource, if
# that resource is a playlist. This property is only present if the
# &lt;code&gt;resourceId.kind&lt;/code&gt; value is &lt;code&gt;youtube#playlist&lt;/code&gt;.
},
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>