Reddit Subreddit Posts
reddit_subreddit_postsGet a subreddit's posts by name or URL (provide exactly one), sorted hot, new, top, rising or controversial; posted_ago sets the window for top and controversial (1h to all); flair keeps only posts with that flair. Returns title, text, author, date, score, upvote ratio, comment count, flair, shared link and video/gallery links for each post. 25 per page, up to ~1,000 posts. Billed $0.003 per page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Subreddit URL, e.g. https://www.reddit.com/r/Python/ (max 500 characters). Provide exactly one of subreddit or url. | |
| flair | No | Only posts with exactly this flair, e.g. Hiring (max 64 characters, not case-sensitive). | |
| pages | No | Number of pages to fetch, 1-40 (default: 1). Each page returns up to 25 posts. | |
| sort_by | No | Sort order: hot, most_recent, top, rising, or controversial (default: hot) | hot |
| subreddit | No | Subreddit name, with or without r/, e.g. Python. Provide exactly one of subreddit or url. | |
| posted_ago | No | Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: 24h, Reddit's own default). Rejected with any other sort_by. | |
| get_sentiment | No | Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints. |