Skip to documentation
Browse documentation

Search posts

Search public posts globally or within selected subreddits, with Reddit sort and time filters and cursor pagination. May take up to 60 seconds.

Capability ID reddit.posts.search
Maximum runtime 60 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

after string optional

Opaque cursor from a previous result's next field.

limit integer optional

Page size (default 50). From 1 to 100. Default: `50`.

Example 25
q string required

Search query passed to Reddit's public post search.

Example supabase alternative
sort string optional

Reddit search order. Allowed values: `relevance`, `hot`, `top`, `new`, `comments`. Default: `new`.

Example new
Available values relevancehottopnewcomments
subreddits string optional

Comma-separated individual community names. Aggregate feeds all and popular are unavailable; omit this field for global post search.

time string optional

Search time window. Allowed values: `hour`, `day`, `week`, `month`, `year`, `all`. Default: `all`.

Example all
Available values hourdayweekmonthyearall

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
items array 3 items
items array 3 items
next string t3_1vlrox1

Execution behavior

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