Skip to main content
GET
Subreddit Posts
💳 1 credit per request

Authorizations

X-API-Key
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx

Get your API key from the Dashboard.

Query Parameters

subreddit
string
required

Subreddit name

timeframe
enum<string>

Timeframe to get posts from.

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.

Example:

"t3_1234567890"

trim
boolean

Set to true for a trimmed down version of the response

Example:

false

Response

Successful response

Key Response Fields:

  • data.posts[n].id: Short Reddit post ID
  • data.posts[n].title: Post title text
  • data.posts[n].author: Reddit username of the poster
  • data.posts[n].subreddit: Name of the subreddit
  • data.posts[n].score: Net upvote score
  • data.posts[n].upvote_ratio: Ratio of upvotes vs total votes (0–1)
  • data.posts[n].num_comments: Comment count
  • data.posts[n].url: Full URL to the post
  • data.posts[n].created_utc: Unix timestamp of post creation
  • data.posts[n].is_video: Whether the post contains a video
  • data.after: Pagination cursor — pass as after param for the next page