GroundsocialDocs

API · YouTube

GET /youtube/search/suggestions

YouTube search autocomplete suggestions.

RequestGET /v1/youtube/search/suggestions
Operation idyoutube.search.suggestions
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

YouTube search autocomplete suggestions.

Query parameters

NameTypeRequiredDescription
qstringyesThe partial query. Example: how to make.
regionstringnoISO 3166-1 alpha-2 country: the results a visitor there sees. Example: US.
languagestringnoISO 639-1 language code (en, es, pt-BR). Example: en.

Responses

StatusMeaningSchema
200The suggestions.YouTubeSuggestions
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The video, channel, playlist or post does not exist, was removed, or has nothing there.Error
429Too many requests. Wait for Retry-After seconds.Error
503YouTube is temporarily unavailable. Retryable; nothing was charged.Error

YouTubeSuggestions fields

FieldTypeDescription
kind"youtube#suggestions"
querystring
suggestionsstring[]

Errors use one shape everywhere; see Errors for every code and what to do.