- Takes: Name
- Takes: Username
- Passive: the target is not contacted
- Cost: 1 quota unit
Returns search resources matching the query. type defaults to video, channel and playlist. Results are paged with pageToken. When type is video, a channelId filter caps results at 500 videos.
Query parameters
partMust be snippet
qSearch query; supports - (NOT) and | (OR, encoded as %7C)
typeComma-separated resource types
channelIdLimit results to one channel
maxResults0 to 50
orderSort order
publishedAfterLower bound, RFC 3339
publishedBeforeUpper bound, RFC 3339
regionCodeISO 3166-1 alpha-2 country code
pageTokenPage from nextPageToken or prevPageToken
Response fields · 7ShowHide
kind
Always youtube#searchListResponse
nextPageToken
Token for the next page
prevPageToken
Token for the previous page
regionCode
Region used for the query
totalResults
Approximate total, at most 1,000,000
resultsPerPage
Results in this response
items[]
Search resources matching the query
curl 'https://www.googleapis.com/youtube/v3/search?part=snippet&key=YOUR_API_KEY'{
"kind": "youtube#searchListResponse",
"nextPageToken": "NEXT_PAGE_TOKEN",
"regionCode": "NL",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
},
"items": [
{
"kind": "youtube#searchResult"
}
]
}