Search videos
One page of a YouTube search, about 20 videos in the order youtube.com shows them, each with its channel, views, duration, date, badges, chapters and thumbnails.
| Option | Takes | What it is |
|---|---|---|
| query* | string | Words to search for, as typed in YouTube's search box. |
| upload_date | any, today, this_week, this_month, this_yeardefault any | How recently the videos were uploaded, as the panel's "Upload date" filter. |
| duration | any, under_3_minutes, 3_to_20_minutes, over_20_minutesdefault any | The videos' length, as the panel's "Duration" filter. |
| type | all, videos, shortsdefault all | What the search finds: all, the search's own mix of videos and shorts (the shorts among the results say is_short); videos, videos only; shorts, shorts only. |
| features | array | What the videos must have, all of them, as the panel's "Features": live (live now), 4k, hd, subtitles (subtitles or closed captions), creative_commons (under a Creative Commons licence), 360 (360°), vr180, 3d, hdr, location (with a place), purchased (bought by the visitor: signed out, none). |
| sort | relevance, popularitydefault relevance | The order of the videos: relevance, YouTube's own search order; popularity, YouTube's ranking of the most popular, not views alone. |
| language | stringdefault en | The language YouTube speaks to the visitor (en, fr, de, es, pt-BR, ja...): the texts of the records, dates, counts and badges, are written in it ("11 months ago", "il y a 11 mois"); the counts are read in it. |
| country | stringdefault US | The visitor's country, two letters (US, GB, FR, IN...), whose people YouTube searches for. |