GroundsocialDocs

API · Reddit

GET /reddit/search/typeahead

Search-as-you-type: query suggestions and communities, or post titles in one subreddit.

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

Search-as-you-type: query suggestions and communities, or post titles in one subreddit.

Query parameters

NameTypeRequiredDescription
qstringyesSearch query. Example: pyth.
subredditstringnoOnly this subreddit. Example: typescript.
limitintegernoSuggestions, 1 to 20. Default 8.

Responses

StatusMeaningSchema
200The suggestions.Typeahead
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 subreddit, post or user does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Reddit is temporarily unavailable. Retryable; nothing was charged.Error

Typeahead fields

FieldTypeDescription
queriesstring[]
subredditsSubreddit[]
postsLink[]With subreddit: posts whose titles match.

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