Reddit Subreddit Scraper
DeprecatedPricing
from $1.30 / 1,000 post scrapeds
Reddit Subreddit Scraper
DeprecatedCollect public Reddit posts, community details and optional top comments from any subreddit. Pages through the full feed, supports keyword search, and reports clearly when nothing could be collected.
Pricing
from $1.30 / 1,000 post scrapeds
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
Share
What is Reddit Subreddit Scraper?
Reddit Subreddit Scraper collects public posts from any subreddit and returns clean, source-linked rows. It pages through the whole feed up to your post limit, searches inside a community by keyword, respects the time range you pick, and can attach the top comments to every post. One extra row per community gives you subscribers, weekly visitors, weekly contributors, rules, category, icon and banner.
Use it for social listening, content and trend research, competitor and customer discovery, and feeding AI agents with real community discussion.
What data you get
| Field | Meaning |
|---|---|
recordType | post or subreddit |
postId, permalink, externalUrl, rank | Post identity, public link, linked page and position in the run |
title, body, author, flair | The discussion itself |
score, upvoteRatio, numComments, awardsCount | Engagement at collection time |
postType, mediaUrls, thumbnailUrl | Format and public media |
topComments | Optional list of top comments on the post |
subscribers, weeklyActiveUsers, weeklyContributions | Community size and activity when available (subreddit rows) |
description, rules, category, iconUrl, bannerUrl | Community details (subreddit rows) |
sort, timeRange, query, createdAt, scrapedAt | How and when the row was collected |
{"recordType": "post","postId": "example123","rank": 1,"subreddit": "r/MachineLearning","title": "Example public discussion","author": "example_author","score": 250,"numComments": 42,"permalink": "https://www.reddit.com/r/MachineLearning/comments/example123/","postType": "text","source": "reddit","createdAt": "<ISO-8601 Reddit creation time>","scrapedAt": "<ISO-8601 collection time>"}
How it compares
| This Actor | Typical Reddit scrapers | |
|---|---|---|
| Pages past the first page | Yes, up to your maxPosts | Often one page only |
| Real keyword search inside a subreddit | Yes | Often matches only the first page |
| Honors the time range for top feeds | Yes | Often ignored |
| Community stats, rules, weekly visitors | Yes | Often missing or empty |
| Top comments | Optional, billed per post that has them | Often bundled or unclear |
| Clear failure when nothing could be collected | Yes, run is marked failed and is not billed for posts | Often reports success with empty data |
How to use it
- Put one or more subreddits in Subreddits. Names like
r/MachineLearningor full links both work. - Choose a sort (hot, new, top, rising, controversial). For top, pick a time range.
- Optionally add a keyword in Search within each subreddit.
- Set Max posts. The Actor keeps loading pages until it reaches this number or the subreddit runs out.
- Run it, then read the dataset. Use
recordTypeto separate posts from community rows.
{"subreddits": ["r/MachineLearning", "https://www.reddit.com/r/programming"],"sort": "top","timeRange": "week","maxPosts": 200,"includeSubredditInfo": true,"includeTopComments": true,"maxTopCommentsPerPost": 3}
Pricing
Pay per result. You pay only for what is saved to your dataset:
- Each post row.
- Each community details row (one per subreddit, can be turned off).
- Each post that gets top comments attached (only when top comments are on and the post actually has comments).
The live Pricing tab shows the exact current price for each result type and your plan discount. Use Max posts and the run cost limit to control spend.
Run through the API
curl -X POST "https://api.apify.com/v2/acts/khadinakbar~reddit-subreddit-scraper/runs" \-H "Authorization: Bearer $APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"subreddits":["r/MachineLearning"],"sort":"new","maxPosts":50}'
Use with AI agents (MCP)
Example prompt:
Collect the 100 newest posts from r/MachineLearning and r/LocalLLaMA with community stats. Group posts by theme, keep the permalinks and report how many posts you collected.
After the run, read the OUTPUT record. It has a plain outcome (COMPLETE, PARTIAL, VALID_EMPTY or UPSTREAM_FAILED), a one-line agentSummary, the stop reason, the number of posts collected and the result for each subreddit.
FAQ
How many posts can I get from one subreddit?
As many as Reddit's public feed returns for your sort and time range, up to your maxPosts. A feed has a natural end; when it ends the Actor stops and tells you why in the summary.
What if a subreddit does not exist or is private? It is reported as having no data in the summary. If none of your subreddits return data, the run is marked failed and no post fees are charged.
Are NSFW posts included? Not by default. Turn on Include NSFW posts only when you need them.
Does it need a Reddit login or proxy? No. You do not need to supply any key or proxy.
Are comments complete threads? No. They are the top comments, up to the number you choose, as a compact preview for summaries and sentiment work.
Responsible use
Collect public Reddit data you are authorized to access and follow applicable laws, Reddit's terms and your organization's privacy and research policies.