Skip to content

About

Production n8n workflows, Claude/Cursor MCP configs, and LangChain/LlamaIndex RAG pipelines for Reddit data on Apify.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Reddit Workflows

Collect public Reddit posts and comments, send brand alerts, capture buying signals, or index Reddit discussions in a retrieval pipeline. This MIT-licensed starter kit includes n8n workflow imports, MCP configs for AI agents, and Python and Node.js examples for DeepMine Reddit Actors on Apify.

Which Reddit Actor should I use?

Start with Reddit Scraper for mixed inputs, such as a search term and a thread URL in one run. Pick a specialist when you know the source or want ranked mentions, buying signals, or community discovery.

Actor Use it for Free Bronze Silver Gold
Reddit Scraper Search and collect posts, comments, users, and communities $0.49 $0.35 $0.29 $0.12
Reddit Posts Scraper Read posts by keyword, subreddit, user, or URL $0.49 $0.35 $0.29 $0.12
Reddit Comments Scraper Read comments and nested replies from thread URLs $0.49 $0.35 $0.29 $0.12
Subreddit Scraper Collect posts from communities you already know $0.45 $0.35 $0.29 $0.12
Reddit Search Scraper Search by keyword across posts, comments, communities, or users $0.49 $0.35 $0.29 $0.12
Reddit User Scraper Collect public profiles, posts, or comments from usernames $0.49 $0.35 $0.29 $0.12
Reddit API Get structured Reddit rows from URLs and search terms $0.49 $0.35 $0.29 $0.12
Reddit Subreddit Finder Discover communities by topic, with optional rules and activity $0.99 $0.69 $0.55 $0.35
Reddit Trends Finder Rank rising, hot, or new threads by momentum $1.49 $0.99 $0.79 $0.55
Reddit Mentions Scraper Find posts and comments mentioning a brand or phrase $0.59 $0.45 $0.35 $0.22
Reddit Lead Generation Scraper Find public buying and recommendation requests $0.59 $0.45 $0.35 $0.22
Reddit Brand Monitor Track brand mentions and engagement $0.59 $0.45 $0.35 $0.22
Reddit Sentiment Tracker Find mentions with sentiment labels and scores $0.59 $0.45 $0.35 $0.22

The table shows USD per 1,000 delivered results, checked December 4, 2026 (UTC). Free, Bronze, Silver, and Gold are Apify's Free, Starter, Scale, and Business plans. Each Actor charges per result with no start fee. See its Store listing for all plans and current rates.

Zero rows is never a silent success. When a run returns no rows, its status message says why, for example that Reddit has nothing matching the input, that a subreddit is not found or not public, or that Reddit refused the request and nothing is wrong with your input. The run's OUTPUT record lists every source with its status and reason, and rows you do not receive are not charged.

Switch from another Reddit Actor

Each guide shows the one-line Actor ID change in Python, Node.js, cURL, and n8n, plus field maps and published prices. DeepMine Reddit Actors read the input field names of the six Actors below, so most saved inputs run as they are. Paste it into the JSON tab of the DeepMine Actor's Input page in Apify Console, or swap the Actor ID in your Python, Node.js, cURL, or n8n call.

Switching from Guide
trudax/reddit-scraper-lite No session cookie, 4x to 8x lower cost
automation-lab/reddit-scraper No start fee, up to 5x lower post cost
harshmaur/reddit-scraper and Pro Same input keys, no start fee
fatihtahta/reddit-scraper-search-fast Explained empty runs, up to 9.9x lower cost
apify/reddit-scraper Up to 20x lower cost per post
maximedupre/reddit-comments-search-scraper Search Reddit comments for $0.35 per 1,000
Reddit RSS feeds and the n8n Reddit node Reddit API and RSS shutdown guide

NSFW filter. Lowercase includeNsfw works as it is on Reddit Search Scraper, Reddit Scraper, Reddit Posts Scraper, and Reddit Comments Scraper: "includeNsfw": false keeps NSFW posts out. DeepMine includes NSFW posts by default, so if your old Actor left them out by default and your input never set the key, add "includeNsfw": false. On Subreddit Scraper and Reddit User Scraper, send "includeNSFW": false with capital letters when you use their own subreddits or users fields.

Run a Reddit search

Create an Apify API token and set APIFY_TOKEN in your shell or secret manager. In Bash, you can paste it without showing it or saving it in your shell history:

read -rs APIFY_TOKEN
export APIFY_TOKEN

From the repository root, use either quickstart:

Python 3.11+

python3 -m venv .venv
source .venv/bin/activate
python -m pip install 'apify-client>=3,<4'
python examples/reddit_search.py

Node.js 22.18+

npm --prefix examples run search

Both examples read the same input and print one JSON object per line. The input searches r/webdev for passkey posts, limits the run to 10 rows, and requests standard output. Each request caps Actor event charges at $0.10. Edit searches and withinSubreddit to try your topic. See the Actor input schema for other inputs.

Import an n8n workflow

  1. In a recent n8n release, create a workflow and choose Import from File. Import one of the JSON files below.
  2. Create an n8n Bearer Auth credential with your Apify token. Select it on Start Actor, Get Run Status, and Read Dataset. Edit the example input in Start Actor.
  3. Connect the destination as described below. Click Execute workflow to test with your credentials. This starts a billable Actor run and can send messages or write rows.
  4. Publish or activate the workflow when ready. Schedules use UTC. Most templates cap each Actor run at $0.10 in Actor event charges and read at most 100 dataset rows. The brand sentiment pipeline reads up to 200 rows, and the comment thread export allows $0.50 and 1,000 rows.
Workflow Schedule Destination setup
Brand alerts Every 6 hours Select a Slack OAuth2 credential and channel ID in Send Brand Alerts to Slack. Replace the sample keyword. Sends up to 10 linked mentions per run.
Lead finder 09:00 daily Select a Google Sheets credential and your spreadsheet ID in Upsert Leads in Google Sheets. Create a Leads tab with the headers below.
Rising threads digest 08:00 daily Select a Slack OAuth2 credential and channel ID in Send Trends Digest to Slack. Set the subreddits you want to watch.
Lead alerts to Slack and Notion Hourly Connect a Slack channel and Notion data source. Sends up to 10 qualifying signals per run.
Brand mentions to Sheets and CRM Every 6 hours Connect a spreadsheet. Optionally enable the HubSpot or other CRM webhook.
RSS feed replacement Hourly Replace Your Next Step with the nodes after your old RSS Read node. See the shutdown guide.
Lead monitoring, no cookies Every 3 hours Runs Reddit Search Scraper. Create a Leads tab with the lead monitoring headers, which start with reddit_key.
Brand sentiment pipeline 07:00 daily Runs Reddit Sentiment Tracker. Create a Sentiment tab and select a Slack channel for the daily digest.
Comment thread export Manual Runs Reddit Comments Scraper on the thread links in Start Actor. Create a Comments tab.

Give the Slack app permission to post to your channel and invite it if required. Brand alerts search the past day, so consecutive alerts can overlap. The trends workflow sends a short message even when there are no rising threads.

For the lead workflow, paste these tab-separated headers into cell A1:

reddit_url	type	subreddit	matched_keywords	title	excerpt	score	posted_at

Sheets updates rows by reddit_url and writes text as raw values. To use a CRM instead, connect its upsert node after Map Lead Rows and use reddit_url as your external key.

Slack and Notion lead alerts

  1. In Start Actor, replace the sample keyword and optionally set subredditFilter to a list of community names. In Find New High-Intent Leads, tune the buying phrases and add lowercase exclusions for ambiguous matches. The filter looks for phrases such as “looking for” and “alternative to” in the post or comment.
  2. In Send Slack Digest, select a Slack OAuth2 credential and set your channel ID. In Notion, share the destination with an integration that can insert content. In Create Notion Pages, select a Bearer Auth credential for that integration, replace the data source ID in the request body, and create these properties in the data source: Name (title), Reddit URL (URL), Subreddit (text), and Excerpt (text).
  3. Test with a private Slack channel and a test Notion data source. Publish to enable the hourly schedule.

Brand mentions in Google Sheets and HubSpot

  1. Replace the sample brand phrase in Start Actor. Add subredditFilter for known communities. The default phrase match can still pick up unrelated uses of a brand name.
  2. Select a Google Sheets credential and spreadsheet ID in Upsert Mentions in Google Sheets. Create a Mentions tab with the following tab-separated headers, then let the node map columns by name.
  3. For HubSpot, use an incoming workflow webhook if your account has that feature, or an HTTPS receiver that maps the JSON to HubSpot. Enable Send to CRM Webhook, paste the receiver URL, and choose or configure the authentication it expects. The webhook sends one JSON object per mention with the same fields as the sheet. Use reddit_key as the unique key for upserts. Leave the webhook node disabled for Sheets only.
reddit_key	reddit_url	type	subreddit	matched_keywords	title	excerpt	score	posted_at

Both new workflows skip previously delivered Reddit IDs for 30 days during successful scheduled executions. Manual tests do not save that history. Run one execution at a time: if a later destination fails, the next execution can resend an item to an earlier destination. Sheets upserts by reddit_key; use the same key to deduplicate CRM webhook deliveries. The 24-hour lookback and per-keyword result limit mean these are alerts, not exhaustive history.

Lead monitoring, sentiment, and thread export

These three templates write to Google Sheets. Select a Google Sheets credential and your spreadsheet ID in each Upsert node, then paste the tab-separated headers for that template into cell A1 of its tab. Sheets updates rows by reddit_key, so a rerun never duplicates a row.

  • Lead monitoring searches new posts from the past day, keeps posts that contain a buying phrase such as "looking for" or "alternative to", and skips posts it delivered in the past 30 days. Edit the searches in Start Actor and the phrase lists in Find New Leads. Each run is capped at $0.10.
reddit_key	reddit_url	type	subreddit	search_term	buying_signals	title	excerpt	author	score	comments	posted_at
  • Brand sentiment collects the past day's posts and comments that mention your brand phrase, labels each one positive, negative, or neutral with a score, and sends a Slack digest with counts and the five most negative new mentions. Replace the sample keyword in Start Actor. Each run is capped at $0.10.
reddit_key	reddit_url	type	subreddit	matched_keywords	sentiment	sentiment_score	buzz_score	title	excerpt	score	posted_at
  • Comment thread export writes a thread's post and up to 1,000 comments, with depth and parent_id so you can rebuild the reply tree. Replace the sample link in Start Actor. Each run is capped at $0.50.
reddit_key	type	depth	parent_id	author	body	score	posted_at	subreddit	thread_title	reddit_url

Connect an AI agent with MCP

  • Claude Desktop: Open Settings > Developer > Edit Config. Merge the server entry from claude_desktop_config.json into your local config, replace YOUR_APIFY_TOKEN there, and restart Claude Desktop. This uses Node.js and npx on your PATH.
  • Cursor: Merge the server entry from cursor_mcp.json into your global MCP config or your workspace's .cursor/mcp.json. Connect the server and sign in to Apify when prompted.
  • ChatGPT: Where custom MCP servers are available, use the server URL in the Cursor config and select OAuth.

Both configs select all 13 Reddit Actors plus the server tools for viewing Actor details, running with a budget, and reading datasets. Start with 10 Reddit research prompts. Each prompt uses an Actor that currently supports outputFormat: "rag_markdown" and asks for Reddit permalinks.

Load cited Markdown for RAG

Install the Apify Python dependency above, then choose either document loader:

python -m pip install 'langchain-core>=1,<2'
python rag/langchain_reddit_rag.py "passkeys" --subreddit webdev --limit 10
python -m pip install 'llama-index-core>=0.14,<0.15'
python rag/llamaindex_reddit_rag.py "passkeys" --subreddit webdev --limit 10

Both loaders read the dataset from run.default_dataset_id. They use the Actor's ragMarkdown as document text, ragChunkId as the document ID, and ragMetadata.url as metadata["source"]. Rows that lack cited Markdown are skipped. Call load_documents() to use the documents in your own index. Keep the source field through retrieval so answers can link to the original post or comment.

This kit is MIT licensed. Apify usage and Reddit content are subject to their respective terms.

About

Production n8n workflows, Claude/Cursor MCP configs, and LangChain/LlamaIndex RAG pipelines for Reddit data on Apify.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages