Skip to main content
GET
cURL

Authorizations

X-API-Key
string
header
required

Query Parameters

q
string
required

Search query

Required string length: 1 - 500
Example:

"fitness workout"

limit
integer
default:20

Maximum number of results to return

Required range: 1 <= x <= 50
Example:

20

country_code
string
default:US

Country code for localized results (ISO 3166-1 alpha-2)

Required string length: 2
Example:

"US"

language_code
string
default:en

Language code for results

Required string length: 2 - 5
Example:

"en"

upload_date
enum<string>
default:any

Only return results uploaded within the selected window

Available options:
any,
last_hour,
today,
this_week,
this_month,
this_year
Example:

"this_week"

sort_by
enum<string>
default:relevance

Order results by relevance or view popularity

Available options:
relevance,
popular
Example:

"popular"

content_type
enum<string>
default:all

Return all result types or only videos

Available options:
all,
videos
Example:

"videos"

duration
enum<string>
default:any

Filter videos by YouTube duration band

Available options:
any,
short,
medium,
long
Example:

"long"

cursor
string

Opaque cursor from next_cursor to fetch the next result page

Required string length: 1 - 4000

Response

Successful response

data
object
required