📊 Extract & filter Reddit posts & comments with keyword search & markdown formatting

⚡ 239 views · 📊 Market Research & Insights

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Reddit Posts & Comments Scraper

A powerful workflow to scrape Reddit posts and comments by keywords and/or subreddit, with intelligent filtering and formatting.

How it works

  1. Search Reddit - Accepts keywords and/or subreddit parameters via webhook to search for relevant posts
  2. Filter & Sort - Filters posts by date (last 60 days), minimum upvotes (20+), removes duplicates, and sorts by popularity
  3. Extract Comments - For each post, retrieves and extracts the top 20 most upvoted comments with their reply threads
  4. Format Results - Structures all posts and comments into a clean, readable markdown report
  5. Return Data - Sends the formatted report back as a webhook response, ready for use in AI tools or other applications

Set up steps

Time to set up: ~10 minutes

1. Create Reddit App (5 minutes)

2. Configure Reddit Credentials in n8n (2 minutes)

3. Update Webhook URLs (2 minutes)

4. Customize Filters (1 minute - optional)

5. Test the Workflow

Usage Examples

Search by keywords:

GET https://your-n8n.com/webhook/reddit-search-keyword?keywords=AI,machine learning

Search within subreddit:

GET https://your-n8n.com/webhook/reddit-search-subreddit?keywords=ChatGPT,GPT-4&subreddit=OpenAI

The workflow returns a formatted text report with all posts, their metadata, and top comments ready for analysis or AI processing.

đź”— Nodes Used

HTTP Request, Webhook, Reddit

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup