Skip to main content
GET
Search Within Subreddit
Returns matching posts with a cursor token to page: title, author, selftext, score, ups, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink and is_video.
Despite what the sort values suggest, every sort returns posts and only posts. Comments and media were confirmed absent from all five.
Measured at about 5 KB and 2 seconds — faster than get_reddit_search, which searches all of Reddit and pages with after instead of cursor. For the replies under a result, pass its url to get_reddit_post_comments.

Example

Authorizations

Authorization
string
header
required

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

Query Parameters

subreddit
string
required

Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)

query
string

Search query to find matching content

sort
enum<string>

Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new

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

Timeframe to filter results

Available options:
all,
year,
month,
week,
day,
hour
cursor
string

Cursor to get more results. Get 'cursor' from previous response.

Response

200 - application/json

Successful response

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