YTAPI.devDocs
Last updated Sep 13, 2026
||MarkdownView as Markdown|Agent setup

Get suggestions

getSuggestions(query, options?): SuggestionsResponse

GET/v1/search/suggestionsFree

Returns autocomplete strings for a partial query. Use this for search-as-you-type UIs. This endpoint is free.

API Token

The preferred authorization scheme for the YouTube Transcript API. Create a key with transcripts:read in the developer dashboard.

Example: Authorization: Bearer YOUR_API_KEY

See Authentication for scopes and rate limits.

transcripts:read
ParametersExpand Collapse
q:string

Query param:

Partial query string.

ReturnsExpand Collapse
query:string

Echoed input.

suggestions:string[]

Ranked completion strings.

Completely free

Search suggestions consume 0 credits.