Subreddit Posts
reddit_subreddit_postsFetch posts from any subreddit with sort, timeframe, and pagination options to collect Reddit content for analysis.
Instructions
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. Potentially consumes paid API credits; requires confirm=true. Read-like POST requests do not publish to social platforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order | |
| trim | No | Set to true for a trimmed down version of the response | |
| after | No | After to get more posts. Get 'after' from previous response. | |
| account | No | Named private ScrapeCreators account; selects credentials, not a remote account ID. | |
| confirm | No | Must be true for the specific approved credit-consuming research call. | |
| subreddit | Yes | Subreddit name | |
| timeframe | No | Timeframe to get posts from | |
| cache_max_age | No | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching) |