Skip to documentation
Browse documentation

Search

Search YouTube for videos, channels, and playlists.

Capability ID youtube.search.query
Cost 1 credit per request
Maximum runtime 60 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

filter string optional

Filter supplied for this request. Allowed values: `videos`, `channels`, `playlists`, `live`, `shorts`, `today`, `week`, `month`, `year`.

Available values videoschannelsplaylistsliveshortstodayweekmonthyear
limit integer optional

Maximum number of results to return.

max_pages integer optional

Max pages supplied for this request.

query string required

Search query

Example golang tutorial

Response

Successful output is returned in results[0].data. Raw platform output is intentionally open-ended and may evolve with the upstream source.

Illustrative sample The full redacted fixture is shown in the response panel.

Illustrative output fields

Derived from the sample above for orientation only. These observed fields are not a fixed response schema.

PathObserved typeExample
pages integer 10
query string golang tutorial
results array 3 items
results array 3 items
results_count integer 185

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.