Reddit Scraper
Get Reddit Subreddit Posts
Fetches posts from a subreddit with sorting and filtering options. Each post includes title, author, link_flair_text when Reddit exposes it, selftext, score, ups, upvote_ratio, num_comments, created_utc, url, permalink, subreddit_subscribers, and is_video. Supports sort (best, hot, new, top, rising), timeframe filtering, pagination via the after token, and a trim parameter for lighter responses.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| subredditstring · required | string | required | Subreddit name |
| sortstring · optional | string | optional | Sort order One of: |
| trimboolean · optional | boolean | optional | Set to true for a trimmed down version of the response |
| afterstring · optional | string | optional | After to get more posts. Get 'after' from previous response. |
| limitnumber · optional | number | optional | Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more. The price is the same either way. |
| timeframestring · optional | string | optional | Timeframe to get posts from One of: |
| cache_max_agestring · optional | string | optional | See the Caching page for details. One of: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"type": "string"
},
"posts": {
"type": "array"
},
"limitApplied": {
"type": "boolean",
"description": "True when a Limit trimmed the results; there were more in this response."
}
},
"additionalProperties": true
}