DEV Community

Cover image for Reddit posts and comments scraper with n8n (free workflow)
Scraper Finder
Scraper Finder

Posted on

Reddit posts and comments scraper with n8n (free workflow)

Last updated: 20 November 2026

This Reddit posts and comments scraper returns normalized rows from subreddit posts and their comments in n8n. Import the workflow, add your Apify token as a Query Auth credential, then edit Configure input. A first run capped at 25 records costs about $0.42 on Apify’s Free plan, plus compute.

Disclosure: I maintain the free MIT workflow and skill collections on scraperfinder.com. Scraping runs a public Apify Actor on your own Apify account as paid usage. This article was drafted with AI help, with every field, setting and price checked against the workflow files and the Actor’s pricing.

Your customers are describing their problems in Reddit threads, but your research has no shared standard for collecting them. When useful discussions stay scattered across tabs, comparing complaints means repeatedly finding the post, its comments and its context.

What rows will you get?

The starter configuration collects posts and comments from smallbusiness, ordered by top over week. It caps the entire run at 25 records. That means posts and comments share the allowance. You should not expect 25 posts plus their replies.

The workflow’s output fields are:

Field What it identifies
recordType Record type
subreddit_prefixed Subreddit
title Title
author Author
score Score
commentCount Comment count
source Source
createdAt Creation time
permalink Reddit link

Use permalink to open a discussion when a row deserves closer reading. Keep source available when comparing records, because the input can allow live or archive data.

The workflow passes the Actor’s results through Normalize + dedupe, then exposes them at Rows ready. You can inspect those rows before connecting a destination.

How do you set it up in n8n?

  1. Import the workflow. In the n8n editor, open the ⋯ menu, choose Import from URL, and paste the workflow import link. Import from file is also supported.

  2. Create your Apify credential. Get your API token from Apify’s integrations settings. Create a Query Auth credential with parameter name token and your Apify API token as its value. Assign that credential to Run Apify Actor.

  3. Edit Configure input. Use the starter input below. Change subreddits to the community you want to research. Keep the caps while checking whether the returned discussions match your needs.

  4. Execute the workflow and inspect Rows ready. Check the returned permalink, recordType and source values before building downstream actions around them. The supplied JSON contains no token, credential or sheet ID.

  5. Connect your destination if needed. Google Sheets (optional) ships disabled. Add your credential and sheet, then enable it to append rows with automatic column mapping. Review Daily trigger before enabling scheduled collection, since each scheduled run incurs usage.

Paste this starter input verbatim before changing your target:

{
  "mode": "subreddit",
  "subreddits": [
    "smallbusiness"
  ],
  "sort": "top",
  "timeFilter": "week",
  "maxItems": 25,
  "maxPosts": 10,
  "maxComments": 20,
  "includeComments": true
}
Enter fullscreen mode Exit fullscreen mode

Here, maxPosts limits posts per subreddit, while maxComments limits comments per post. maxItems is the hard cap across all records and targets. Increasing a comment allowance cannot override that overall cap.

How do you collect a specific thread or search term?

Choose the input that matches the job:

Job Set mode to Supply targets in
Subreddit export subreddit subreddits
Posts and their comments post postUrls
User profiles profile usernames
Reddit keyword search search searchQuery

For a known discussion, use post and put its URL in postUrls. That input also accepts comment URLs, share links and bare post IDs. commentSort controls comment ordering in this mode, with confidence as its default.

For discovery, use search and put your phrase in searchQuery. Live search supports an exact phrase in quotation marks, author:name, subreddit:name and -exclude. Search accepts relevance, hot, top, new or comments for sort.

To collect parent posts without comment records, set includeComments to false. To control reply depth, use maxDepth. Its default is 6, and 0 emits top-level comments only. includePost defaults to true, so the post record is emitted before its comments.

What does the first run actually cost?

The Free-plan Actor charges combine a start event and a per-result event. Apify platform usage, including compute, is billed on top and has no fixed price here.

The Actor’s default run memory is 4096 MB, or 4 GB. The workflow does not set memory. Keep that default: the start event is charged once per GB, at $0.10 per GB on the Free plan.

Charge Calculation Total
Actor start 4 GB × $0.10 $0.40
Results 25 × $0.00099 per result $0.02
Actor charges for the first try Start plus results, rounded after addition $0.42

The result line is rounded for display. Compute is additional to the table’s total.

At 25 results daily for 30 days, the Actor charges are about $12.74, plus platform usage. The Free plan includes $5.00 in credit. That covers 11 such Actor-charge totals before accounting for compute, so it is not a promise of 11 fully covered executions.

Paid plans have lower start and result rates. Check Apify pricing when deciding whether to schedule collection.

Why does it dedupe on permalink?

Normalize + dedupe trims strings, drops empty values, adds _source and _scrapedAt, and keeps one row per permalink.

That key makes the Reddit link the identity used for deduplication. A title or author is less useful for identifying a particular discussion record, since either can appear in multiple rows.

This normalization happens to the returned results. Do not assume it prevents repeat appends across separate scheduled executions. If you need that behavior in your destination, compare incoming permalink values with the links already stored there.

What should you check when results disappoint?

Start with source, whose default is auto. It tries live Reddit first, uses archive data for depth, bulk or fallback, and can use RSS as a final listing or search fallback.

Choose live when you need to exclude archive and RSS data. Choose archive when its several-hour lag is acceptable. The archive path is faster and cheaper, but that tradeoff matters when researching a fresh discussion.

If comments seem sparse, inspect maxItems, maxComments and maxDepth together. If the run fails, read the error: an Apify error object stops execution with Apify’s message instead of becoming a junk row.

Run Apify Actor uses a synchronous wait of 300 seconds and a node timeout of 300000 milliseconds. Those settings are waiting limits, not a completion-time guarantee.

The Reddit comparison page compares other tools and the official API for Reddit by output fields and price per 1,000 results.

FAQ

Do you need a Reddit account or API key?

No Reddit account or API key is needed. You do need your own Apify account and token for the workflow.

Does this work on n8n Cloud and self-hosted n8n?

Yes. It uses core nodes: Schedule Trigger, Code, HTTP Request, No Operation and Google Sheets.

Does it include over-18 content?

includeNSFW defaults to false. Set it to true if you want to include over-18 posts and communities.

Can you use subreddit and profile URLs as targets?

Yes. subreddits accepts names, r/ names or URLs. usernames accepts names, u/ names or profile URLs.

What is free under the MIT licence?

The workflow and skill files are free to use. Running the Actor on your Apify account incurs the usage described above.

Workflow page · Import JSON · Skill page · All workflows · YouTube channel

Top comments (0)