Skip to documentation
Browse documentation

Search typeahead

Return YouTube's public anonymous search suggestions for a partial query. Suggestions are surface strings, not popularity metrics.

Capability ID youtube.search.typeahead
Maximum runtime 30 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

language string optional

Optional language code for the suggestion surface

query string required

Partial search query

Example golang

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 example response is shown in the response panel.

Illustrative output fields

Values illustrate one response. Read the guidance above for missing values and limits; fields can vary with the requested operation and the data available.

PathObserved typeExample
count integer 3
query string golang
suggestions array 3 items
suggestions array 3 items

Execution behavior

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