Reddit Scraper
Get Reddit Subreddit Posts
Get posts from a subreddit, sorted by hot, new, top or rising, with titles, authors, scores and comment counts.
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
}