Query Parameters
Search keywords.
Restrict results to a single result type.
| Value | Description |
|---|---|
all | All result types (default) |
video | Videos only |
channel | Channels only |
playlist | Playlists only |
movie | Movies only |
Sort order for results.
| Value | Description |
|---|---|
relevance | Best match (default) |
date | Most recently uploaded |
views | Most viewed |
rating | Highest rated |
Filter by upload recency:
hour, today, week, month, or year.Filter by video length:
short (< 4 min), medium (4-20 min), or long (> 20 min).Comma-separated feature filters, e.g.
hd,4k,subtitles,live,creative_commons.Content region (ISO 3166-1 alpha-2 country code). Examples:
US, GB, DE, JP.UI / interface language (BCP-47). Examples:
en, de, fr, ja.Continuation token from a previous response to fetch the next page.
Response
The search query that was executed.
Array of matching results (polymorphic, keyed by
type).Reported total result count (nullable).
Estimated result count (nullable).
Filter chips / refinements with
title, is_selected, continuation.Spelling suggestion, if any (nullable).
Corrected query actually searched (nullable).
Suggested query refinements.
Related search objects.
Token to fetch the next page (nullable when no more pages).
Example Response
Each search request costs 5 credits. Failed requests are not charged.

