Skip to main content
GET
Search Within Subreddit
Search for posts within a single subreddit.

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