Skip to main content
GET
Search Reddit
Returns posts plus an after token to page. Each post carries title, author, selftext, selftext_html, subreddit, score, ups, downs, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink, subreddit_subscribers, is_video, over_18 and spoiler. sort accepts relevance, new, top and comment_count; timeframe narrows the window. Measured at 8 to 16 seconds and 8 to 26 KB — the slowest endpoint here. To stay inside one community, get_reddit_subreddit_search is faster and pages with cursor rather than after. To read one post’s discussion, get_reddit_post_comments.

Example

Authorizations

Authorization
string
header
required

AIsa API key. Get yours at https://aisa.one

Query Parameters

query
string
required

Search query

sort
enum<string>

Sort by

Available options:
relevance,
new,
top,
comment_count
timeframe
enum<string>

Timeframe

Available options:
all,
day,
week,
month,
year
after
string

Used to paginate to next page

trim
boolean

Set to true for a trimmed down version of the response

Response

200 - application/json

Successful response

success
boolean
credits_remaining
integer
posts
object[]
after
string | null
cursor
string | null