Reddit Subreddit Scraper avatar

Reddit Subreddit Scraper

Deprecated

Pricing

from $1.30 / 1,000 post scrapeds

Go to Apify Store
Reddit Subreddit Scraper

Reddit Subreddit Scraper

Deprecated

Collect 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

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

a day ago

Last modified

Features

Limited permissions

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

FieldMeaning
recordTypepost or subreddit
postId, permalink, externalUrl, rankPost identity, public link, linked page and position in the run
title, body, author, flairThe discussion itself
score, upvoteRatio, numComments, awardsCountEngagement at collection time
postType, mediaUrls, thumbnailUrlFormat and public media
topCommentsOptional list of top comments on the post
subscribers, weeklyActiveUsers, weeklyContributionsCommunity size and activity when available (subreddit rows)
description, rules, category, iconUrl, bannerUrlCommunity details (subreddit rows)
sort, timeRange, query, createdAt, scrapedAtHow 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 ActorTypical Reddit scrapers
Pages past the first pageYes, up to your maxPostsOften one page only
Real keyword search inside a subredditYesOften matches only the first page
Honors the time range for top feedsYesOften ignored
Community stats, rules, weekly visitorsYesOften missing or empty
Top commentsOptional, billed per post that has themOften bundled or unclear
Clear failure when nothing could be collectedYes, run is marked failed and is not billed for postsOften reports success with empty data

How to use it

  1. Put one or more subreddits in Subreddits. Names like r/MachineLearning or full links both work.
  2. Choose a sort (hot, new, top, rising, controversial). For top, pick a time range.
  3. Optionally add a keyword in Search within each subreddit.
  4. Set Max posts. The Actor keeps loading pages until it reaches this number or the subreddit runs out.
  5. Run it, then read the dataset. Use recordType to 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.