Carabain Digital Apify Actors

Reddit Scraper

Reddit Scraper extracts posts, comments, subreddit info, user posts and search results from Reddit without a login or API key. Posts come with title, text, author, score, upvote ratio and comment count, and comments with depth and parent, for brand monitoring, market research and AI training data.

Run it on ApifyCreate a free Apify account

The Apify Free plan includes $5 of credit every month, no credit card needed.

One item in your dataset
dataType
post, comment or community
username
Author
title
Post title, or community name
body
Text of the post or comment (community: description)
upVotes
Score (upvotes minus downvotes)
numberOfComments
Posts: number of comments
communityName
Subreddit with r/
createdAt
Created (ISO, UTC)

and 25 more fields, see Output

Who it is for

Marketers and community managers who track mentions of a brand or product. Product and market researchers who read what a niche asks for and complains about. Data teams who collect threads for sentiment models or retrieval, including users of Reddit Scraper Lite who want the same output fields.

What you can do with the data

Daily brand and competitor mentions

Put your brand and competitor names in searches, set sort to new and schedule a daily run. Compare post ids with yesterday to keep only new mentions, each with its subreddit, score and the first comments.

Learn what a niche complains about

Pull the top posts of a subreddit for the past month with up to 20 comments each. Group by flair or read the highest-scoring comments to find recurring problems, feature requests and words customers use.

Find people asking for a tool like yours

Add phrases such as "alternative to" plus a competitor's name to searches, and limit them to one subreddit with searchCommunityName. Each post links to the thread, so you can answer where the question was asked.

Rebuild full threads for AI datasets

Every comment has depth, parentId and numberOfReplies, in reading order. That is enough to turn a thread back into a tree for fine-tuning, RAG or conversation analysis.

Pick where to post

For each subreddit URL the Actor adds a community item with description, weekly visitors and weekly contributions. Compare candidates by activity before you spend time in one.

Tutorial

How to export this week's top posts and comments of a subreddit

  1. Start a free Apify account and select the Run it on Apify button on this page.
  2. In startUrls, paste the subreddit's top feed for the week, for example https://www.reddit.com/r/homeassistant/top/?t=week.
  3. Set maxPostCount to 25 and maxComments to 20. Comments come best first, replies included.
  4. Set maxItems high enough for posts plus comments, such as 600, because it counts both together.
  5. Start the run. Filter the output on dataType: post, comment or community.
  6. Join comments to their post with postId, then export to CSV or send the dataset to Google Sheets.

Examples

Reddit brand monitoring: new posts about a keyword

Newest Reddit posts that mention your brand or keyword, with text, score, subreddit and the top comments, for social listening and lead finding. Schedule it daily and compare on id. Export to JSON, CSV or Excel.

{
  "searches": [
    "apify"
  ],
  "sort": "new",
  "maxPostCount": 25,
  "maxComments": 5,
  "maxItems": 200
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~reddit-scraper/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"searches": ["apify"], "sort": "new", "maxPostCount": 25, "maxComments": 5, "maxItems": 200}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/reddit-scraper").call(run_input={'searches': ['apify'], 'sort': 'new', 'maxPostCount': 25, 'maxComments': 5, 'maxItems': 200})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Top posts of a subreddit this week with comments

The top posts of r/dataisbeautiful of the past week with their text, score, upvote ratio and the first 20 comments with replies. Swap the subreddit for any community. Export to JSON, CSV or Excel.

{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/dataisbeautiful/top/?t=week"
    }
  ],
  "maxPostCount": 10,
  "maxComments": 20,
  "maxItems": 300
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~reddit-scraper/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"startUrls": [{"url": "https://www.reddit.com/r/dataisbeautiful/top/?t=week"}], "maxPostCount": 10, "maxComments": 20, "maxItems": 300}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/reddit-scraper").call(run_input={'startUrls': [{'url': 'https://www.reddit.com/r/dataisbeautiful/top/?t=week'}], 'maxPostCount': 10, 'maxComments': 20, 'maxItems': 300})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Set APIFY_TOKEN to your token from Apify Console, Settings, Integrations. The curl call waits up to 5 minutes; for bigger runs see running from the API and Python. AI agents can call it through the Apify MCP server: https://mcp.apify.com/?actors=carabain-digital/reddit-scraper.

Input

FieldTypeWhat it does
startUrls
Reddit URLs
arraySubreddits (/r/python/, /r/python/new/, /r/python/top/?t=week), posts (/r/.../comments/<id>/...), users (/user/<name>/) or search pages (/search/?q=...).
searches
Search terms
arraySearch Reddit for these terms (posts, and communities if enabled below). One term per line.
searchCommunityName
Search within community
stringOnly search inside this subreddit, e.g. programming.
searchPosts
Search for posts
booleanReturn posts that match the search terms.
Default: true
searchCommunities
Search for communities
booleanAlso return communities (subreddits) that match the search terms.
Default: false
sort
Sort search by
stringOrder of search results.
Values: relevance, hot, top, new, comments
Default: "new"
time
Time filter
stringFor search and for top subreddit feeds.
Values: all, hour, day, week, month, year
Default: "all"
maxItems
Max items
integerMaximum items (posts, comments and communities together) in the dataset. 0 = no limit.
Default: 10
maxPostCount
Max posts per source
integerPosts per subreddit, user, search term or search URL.
Default: 10
maxComments
Max comments per post
integerComments per post (in reading order, replies included). 0 = no comments.
Default: 10
maxCommunitiesCount
Max communities per search
integerCommunities per search term when Search for communities is on.
Default: 2
skipComments
Skip comments
booleanDon't scrape comments (faster: posts come straight from the feed).
Default: false
skipUserPosts
Skip user posts
booleanIgnore user profile URLs.
Default: false
skipCommunity
Skip community info
booleanDon't add a community item (name, description, weekly visitors) for subreddit URLs.
Default: false
includeNSFW
Include NSFW
booleanInclude posts marked NSFW (18+).
Default: true
postDateLimit
Posts after
stringOnly posts created on or after this day, YYYY-MM-DD.
commentDateLimit
Comments after
stringOnly comments created on or after this day, YYYY-MM-DD.
ignoreStartUrls
Ignore start URLs
booleanIgnore Reddit URLs and only run the searches (for Zapier/Make setups).
Default: false

Output

One dataset item per item. Export the dataset as JSON, CSV, Excel or XML from Apify Console or the API.

FieldTypeDescription
dataTypestringpost, comment or community
idstringReddit fullname: t3_ post, t1_ comment, t5_ community
parsedIdstringID without the prefix
urlstringReddit URL of the item
usernamestringAuthor
userIdstringAuthor ID (t2_), posts only
authorFlairstringAuthor flair (not shown to logged-out visitors, always null)
titlestringPost title, or community name
communityNamestringSubreddit with r/
parsedCommunityNamestringSubreddit without r/
categorystringSubreddit
bodystringText of the post or comment (community: description)
htmlstringHTML of the text
linkstringLink of the post (external URL, image or the post)
postIdstringComments: the post (t3_)
parentIdstringComments: the parent comment (t1_) or the post
numberOfCommentsintegerPosts: number of comments
numberOfRepliesintegerComments: direct replies among the scraped comments
flairstringPost flair
upVotesintegerScore (upvotes minus downvotes)
upVoteRationumberShare of upvotes (posts from feeds and post pages)
isVideobooleanVideo post
isAdbooleanPromoted post
over18booleanNSFW
videoUrlsarrayVideo URL
thumbnailUrlstringPreview image
imageUrlsarrayImage URLs (image and gallery posts)
postTypestringtext, link, image, gallery, video, ...
depthintegerComments: 0 = top level
weeklyVisitorsintegerCommunities: weekly visitors
weeklyContributionsintegerCommunities: weekly posts and comments
createdAtstringCreated (ISO, UTC)
scrapedAtstringScraped (ISO, UTC)

Frequently asked questions

What do 100 posts with their comments cost?

Every post, comment and community item costs the same: $0.90 per 1,000 items. 100 posts with 10 comments each make 1,100 items, about $0.99. Turn on skipComments to pay for posts and community items only.

Do I need a Reddit API key, login or proxy?

No API key and no login. A residential proxy is built in and its cost is part of the price. Keep the default, since Reddit blocks datacenter IPs.

How do I get only new posts?

Use sort set to new for searches, or a subreddit's /new/ feed, and set postDateLimit to the day of your last run. For comments, commentDateLimit does the same. Post ids are stable, so you can also remove duplicates in your own database.

Can I switch from Reddit Scraper Lite?

Yes. The input fields, such as startUrls, searches, maxPostCount and skipComments, and the output keys like dataType, upVotes and parentId are the same. Extra fields are postType, depth, weeklyVisitors and weeklyContributions.

What does it not cover?

Private and quarantined communities, comment search and a user's comment history are not included. Subscriber counts are missing because Reddit no longer shows them to visitors; you get weekly visitors instead.

Why do search results lack the full post text?

Search results are completed from each post page, unless skipComments is on. Then they keep only the search card: title, author, subreddit, score, comment count and date.

Is it legal to scrape Reddit?

The Actor reads only pages that anyone can open without logging in. Usernames and comment text can be personal data under rules such as the GDPR, so collect what you need and think about how you store it. Check Reddit's terms and your use case with a lawyer. More: Is web scraping legal?