GroundsocialDocs

API · Reddit

GET /reddit/search/omni

One keyword across Reddit: posts, top comments of the leading threads, and the communities they come from.

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

One keyword across Reddit: posts, top comments of the leading threads, and the communities they come from.

Query parameters

NameTypeRequiredDescription
qstringyesSearch query. Example: standing desk.
threadsintegernoThreads to read, 1 to 8. Default 5.
commentsintegernoTop comments per thread, 1 to 15. Default 10.
subredditstringnoOnly this subreddit. Example: typescript.
sort"relevance" | "new" | "top" | "comments"noSearch order. Default relevance. One of relevance, new, top, comments.
t"hour" | "day" | "week" | "month" | "year" | "all"noTime window for top and controversial. Default day. One of hour, day, week, month, year, all.
afterstringnoCursor: the previous page's data.after. Omit for the first page.

Responses

StatusMeaningSchema
200Posts, threads with top comments, and communities.OmniSearch
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

OmniSearch fields

FieldTypeDescription
querystring
resultsLinkListing
threadsobject[]
subredditsobject[]

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