Retrieves a list of search resources
HTTP request
GET https://youtube.googleapis.com/youtube/v3/search
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
q |
Textual search terms to match. |
type[] |
Restrict results to a particular set of resource types. |
order |
Sort order of the results. Valid values of this enum field are:
|
relevanceLanguage |
Return results relevant to this language. |
videoDimension |
Filter on 3d videos. Valid values of this enum field are:
|
videoDefinition |
Filter on the definition of the videos. Valid values of this enum field are:
|
videoLicense |
Filter on the license of the videos. Valid values of this enum field are:
|
videoDuration |
Filter on the duration of the videos. Valid values of this enum field are:
|
videoCaption |
Filter on the presence of captions on the videos. Valid values of this enum field are:
|
videoEmbeddable |
Filter on embeddable videos. Valid values of this enum field are:
|
videoSyndicated |
Filter on syndicated videos. Valid values of this enum field are:
|
videoCategoryId |
Filter on videos in a specific category. |
videoType |
Filter on videos of a specific type. Valid values of this enum field are:
|
eventType |
Filter on the livestream status of the videos. Valid values of this enum field are:
|
location |
Filter on location of the video |
locationRadius |
Filter on distance from the location (specified above). |
channelId |
Filter on resources belonging to this channelId. |
publishedAfter |
Filter on resources published after this date. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
publishedBefore |
Filter on resources published before this date. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
topicId |
Restrict results to a particular topic. |
videoPaidProductPlacement |
Valid values of this enum field are:
|
forContentOwner |
Search owned by a content owner. |
regionCode |
Display the content as seen by viewers in this country. |
channelType |
Add a filter on the channel search. Valid values of this enum field are:
|
safeSearch |
Indicates whether the search results should include restricted content as well as standard content. Valid values of this enum field are:
|
forMine |
Search for the private videos of the authenticated user. |
forDeveloper |
Restrict the search to only retrieve videos uploaded using the project id of the authenticated user. |
maxResults |
The |
pageToken |
The |
part[] |
The |
onBehalfOfContentOwner |
Note: This parameter is intended exclusively for YouTube content partners. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"kind": string,
"etag": string,
"nextPageToken": string,
"prevPageToken": string,
"regionCode": string,
"pageInfo": {
"totalResults": integer,
"resultsPerPage": integer
},
"items": [
{
object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
nextPageToken |
The token that can be used as the value of the |
prevPageToken |
The token that can be used as the value of the |
regionCode |
|
pageInfo |
General pagination information. |
pageInfo.totalResults |
The total number of results in the result set. |
pageInfo.resultsPerPage |
The number of results included in the API response. |
items[] |
A list of search results that match the search criteria. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.