Skip to main content
GET
Subreddit Posts
Returns posts with an after token to page, carrying the same fields as get_reddit_search: title, author, selftext, score, ups, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink and subreddit_subscribers. sort accepts best, hot, new, top and rising.
timeframe is only accepted together with sort=top. Every other combination returns 400, rather than ignoring the parameter.
Subreddit names are case-sensitive. Measured at about 18 KB for 24 posts. To search inside the same subreddit use get_reddit_subreddit_search; for its metadata, get_reddit_subreddit_details.

Example

Authorizations

Authorization
string
header
required

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

Query Parameters

subreddit
string
required

Subreddit name

timeframe
enum<string>

Timeframe to get posts from. Runtime requires sort=top when timeframe is provided.

Available options:
all,
day,
week,
month,
year
sort
enum<string>

Sort order

Available options:
best,
hot,
new,
top,
rising
after
string

After to get more posts. Get 'after' from previous response.

trim
boolean

Set to true for a trimmed down version of the response

Response

Successful response

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