Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Reddit Scraper API Suite: Subreddits, Search, Posts & Nested Comments ($1 / 1K)

Available on Apify n8n Workflows Zero Login Pricing

The fastest zero-login Reddit Scraper API suite on Apify ($1 / 1,000 items). Extract subreddit feeds, keyword brand mentions, posts, and deep nested comment trees to JSON, CSV, Python, or n8n.

🚀 Try Live on Apify • ⚡ 21 Free n8n Templates • 📖 Documentation & Schemas • 💼 Custom Data Feeds


🤖 Reddit Scraper API Suite: Subreddits, Search, Posts & Nested Comments ($1 / 1K)

Try it for Free
⚡ 1-Click Free Trial: Test live queries using Apify's $5 free monthly credit • Zero login or cookies required


📦 Included in This Repository (Python Quickstarts, n8n Workflows & Sample Data)

This repository contains ready-to-run Python SDK scripts, 1-click n8n automation workflow .json templates, and sample output datasets (JSON & CSV):

Extraction Engine 🐍 Python Quickstart ⚡ n8n Workflow Template 📊 Sample Output 🚀 Cloud Console
Reddit Scraper: Posts, Comments & Search
unitbytes/reddit-scraper • Full Schema
examples/run_reddit_scraper.py n8n/reddit-scraper-n8n-workflow.json JSON · CSV ⚡ Run on Apify
Reddit Search Scraper: Keyword Monitoring & Brand Mentions
unitbytes/reddit-search-scraper • Full Schema
examples/run_reddit_search_scraper.py n8n/reddit-search-scraper-n8n-workflow.json JSON · CSV ⚡ Run on Apify
Reddit Comments Scraper: Nested Reply Trees & Sentiment
unitbytes/reddit-comments-scraper • Full Schema
examples/run_reddit_comments_scraper.py n8n/reddit-comments-scraper-n8n-workflow.json JSON · CSV ⚡ Run on Apify
Reddit Subreddit Scraper: Hot, New & Top Feeds
unitbytes/reddit-subreddits-scraper • Full Schema
examples/run_reddit_subreddits_scraper.py n8n/reddit-subreddits-scraper-n8n-workflow.json JSON · CSV ⚡ Run on Apify

💡 Using n8n? Browse all 21 pre-built scraping workflows with 1-click canvas copy (Ctrl+V) at unitbytes.com/n8n.


🛠️ Extraction Engines in This Suite

🚀 Reddit Scraper: Posts, Comments & Search (unitbytes/reddit-scraper)

Extract high-velocity Reddit discussions, keyword searches, subreddit feeds, and full comment trees at scale. Sub-second cloud execution with zero OAuth keys or account login required.

Key Capabilities

  • Full Subreddit Feed Extraction: Scrape Hot, New, Top, and Rising feeds across any public or NSFW subreddit with custom time filters (day, week, month, year, all-time).
  • Global Keyword & Multi-Subreddit Search: Execute cross-Reddit or targeted subreddit search queries to monitor brand mentions, emerging discussions, and sentiment.
  • Nested Discussion Comments: Optionally extract full nested discussion threads and comment trees with author karma, score, awards, and timestamp metadata.
  • Permanent Media & Video Links: Captures direct unwatermarked image URLs, Reddit video streams, external links, cross-posts, and self-text content in clean tabular format.

Python SDK Quickstart (examples/run_reddit_scraper.py)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "startUrls": [],
    "searchQuery": "artificial intelligence",
    "subreddit": ""
}

run = client.actor("unitbytes/reddit-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("url"), item.get("itemType"))

Sample Output Schema (samples/reddit-scraper-sample.json)

{
  "itemType": "post",
  "id": "1x0b0f5",
  "title": "Fraudster jailed for using 10K bots and AI songs to outstream Taylor Swift",
  "subreddit": "technology",
  "author": "music_fan",
  "score": 1542,
  "upvoteRatio": 0.96,
  "numComments": 85,
  "postType": "image",
  "url": "https://www.reddit.com/r/technology/comments/1x0b0f5/fraudster_jailed/",
  "permalink": "https://www.reddit.com/r/technology/comments/1x0b0f5/fraudster_jailed/",
  "createdAt": "2026-10-08T07:14:53.000Z",
  "mediaUrls": [
    "https://i.redd.it/fraudster-jailed-sample.jpeg"
  ],
  "scrapedAt": "2026-10-08T11:40:00.000Z"
}

Frequently Asked Questions

Q: Do I need a Reddit API account or OAuth credentials? No. The UnitBytes Reddit scraper uses cloud extraction pipelines that retrieve public Reddit data without requiring expensive Reddit developer API subscriptions or OAuth credentials.

Q: Can I scrape subreddits with millions of posts? Yes. Set your target subreddit and maxItems parameter. The engine supports pagination across any feed and delivers output in JSON, CSV, or Excel.

Q: How does UnitBytes handle rate limits? All requests are distributed across intelligent proxy pools with built-in retry and backoff logic, avoiding HTTP 429 blocks.

Q: Can I extract both posts and their comments in one run? Yes. Enable scrapeComments and set maxCommentsPerPost to extract post discussions and comments in a single pass.


🚀 Reddit Search Scraper: Keyword Monitoring & Brand Mentions (unitbytes/reddit-search-scraper)

Real-time Reddit search across 5 dimensions: Posts, Communities, Users, Media, and Comments. Monitor brand keywords and competitor mentions with zero API keys. Export instant CSV/JSON alerts.

Key Capabilities

  • All 5 Native Search Dimensions: The official Reddit API restricts search primarily to basic post endpoints. UnitBytes unlocks all 5 search tabs—including Subreddits, Users, Media, and Comments—in one unified API.
  • No Commercial Approval Gate: Official API access requires commercial licensing agreements and rigorous developer verification. UnitBytes operates instantly with zero credentials.
  • Permanent HD Media CDN Links: Standard API queries return media URLs that expire in hours. UnitBytes normalizes all media assets to permanent CDN URLs so your reports and dashboards never break.
  • Unbeatable Unit Economics: At $0.50–$1.00 per 1,000 results with no monthly commitments, you can run daily brand monitoring at 90% lower cost than official enterprise licensing.

Python SDK Quickstart (examples/run_reddit_search_scraper.py)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "searchQuery": "artificial intelligence",
    "subreddit": ""
}

run = client.actor("unitbytes/reddit-search-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("searchQuery"), item.get("url"))

Sample Output Schema (samples/reddit-search-scraper-sample.json)

{
  "itemType": "post",
  "id": "t3_1x0b0f5",
  "title": "Top AI tools changing small business operations in 2026",
  "subreddit": "smallbusiness",
  "author": "digital_growth_lead",
  "score": 420,
  "upvoteRatio": 0.94,
  "numComments": 85,
  "url": "https://www.reddit.com/r/smallbusiness/comments/1x0b0f5/...",
  "permalink": "https://www.reddit.com/r/smallbusiness/comments/1x0b0f5/...",
  "createdAt": "2026-10-10T14:20:00Z",
  "mediaUrls": [
    "https://i.redd.it/example_asset.jpg"
  ],
  "searchQuery": "AI tools",
  "scrapedAt": "2026-10-11T16:00:00Z"
}

Frequently Asked Questions

Q: How much does Reddit keyword search monitoring cost? You pay only $0.50 to $1.00 per 1,000 extracted search results under Apify Pay-Per-Event pricing, with zero monthly retainers.

Q: Can I search within a specific subreddit? Yes. Fill in both searchQuery and subreddit. The scraper will restrict search results strictly to that community.

Q: Can I search for user profiles or communities? Yes. Change searchTab to communities to find subreddits, or people to find user accounts and authors.

Q: What happens if no results match my search? The actor finishes cleanly with exit code 0, outputs an empty dataset, and charges $0.00.


🚀 Reddit Comments Scraper: Nested Reply Trees & Sentiment (unitbytes/reddit-comments-scraper)

Extract full Reddit comment trees and discussions from any post URL. Scrapes deep nested hierarchies, author sentiment, upvotes, and timestamps with zero API keys. Clean tabular CSV/JSON export.

Key Capabilities

  • Skip Weeks of Waiting & Strict Approval: Reddit requires commercial applications, legal reviews, and enterprise agreements to access comment streams. UnitBytes lets you pull full threads immediately.
  • No Expensive Monthly Contracts: The official API requires enterprise commitments starting at $1,000+/mo. UnitBytes charges from $0.50 per 1,000 comments on a pure pay-per-result basis.
  • Full Depth & Nested Hierarchy: While standard API endpoints limit comment depth and require pagination loops, UnitBytes harvests the complete conversational hierarchy (depth 0, 1, 2, 3+) in a single run.
  • Zero Formatting Headaches: Reddit returns deeply nested JSON trees that complicate spreadsheet analysis. UnitBytes flattens discussions into clean, relational rows that open directly in Excel or Google Sheets.

Python SDK Quickstart (examples/run_reddit_comments_scraper.py)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "startUrls": [
        {
            "url": "https://www.reddit.com/r/technology/comments/1x0b0f5/fraudster_jailed_for_using_10k_bots_and_ai_songs/"
        }
    ]
}

run = client.actor("unitbytes/reddit-comments-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("itemType"), item.get("postId"), item.get("parentId"))

Sample Output Schema (samples/reddit-comments-scraper-sample.json)

{
  "itemType": "comment",
  "id": "t1_m3k0x1y",
  "postId": "t3_1x0b0f5",
  "parentId": "t3_1x0b0f5",
  "author": "tech_enthusiast",
  "body": "Streaming platforms need stricter auditing mechanisms. 10k bots running 24/7 is an insane amount of synthetic streams.",
  "score": 342,
  "depth": 0,
  "createdAt": "2026-10-11T12:30:15Z",
  "permalink": "https://www.reddit.com/r/technology/comments/1x0b0f5/comment/m3k0x1y/",
  "scrapedAt": "2026-10-11T16:01:26Z"
}

Frequently Asked Questions

Q: Do I need a Reddit account or API key? No. You can run this actor immediately with zero API keys, developer tokens, or Reddit accounts.

Q: How do I open the results in Excel or Google Sheets? Once your run finishes, click Export on the Apify dataset tab and choose CSV or Excel. The data is pre-flattened so every column loads cleanly with zero formatting errors.

Q: Can I reconstruct who replied to whom? Yes. Every record has a parentId field. If parentId equals postId, it is a top-level comment. If parentId starts with t1_, it points directly to the parent comment.

Q: How much does comment extraction cost? Extraction starts at $0.50 to $1.00 per 1,000 comments under Apify Pay-Per-Event pricing, with zero idle compute costs.


🚀 Reddit Subreddit Scraper: Hot, New & Top Feeds (unitbytes/reddit-subreddits-scraper)

Scrape any subreddit feed (hot, new, top, rising) with time filters and deep pagination. Extract full posts, flairs, upvotes, and permanent media links.

Key Capabilities

  • Zero API Developer Accounts or Approvals: Official access requires navigating Reddit's gated developer portal and satisfying strict commercial usage restrictions. UnitBytes works immediately with 1 click.
  • Fraction of Official API Costs: Official enterprise access involves $1,000+/mo commitments. UnitBytes offers flexible Pay-Per-Event pricing starting at $0.50 per 1,000 posts with zero minimums.
  • Permanent HD Media Links: Stop dealing with expiring media URLs that break your spreadsheets after a few hours. UnitBytes normalizes all media links to permanent CDN assets.
  • Instant Multi-Subreddit Batching: Scrape multiple communities in a single automated run without managing OAuth2 token refreshes, rate limits, or pagination cursors.

Python SDK Quickstart (examples/run_reddit_subreddits_scraper.py)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "subreddit": "technology",
    "startUrls": []
}

run = client.actor("unitbytes/reddit-subreddits-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("url"), item.get("itemType"))

Sample Output Schema (samples/reddit-subreddits-scraper-sample.json)

{
  "itemType": "post",
  "id": "t3_1x0b0f5",
  "title": "Major cybersecurity update released for enterprise systems",
  "subreddit": "technology",
  "author": "security_researcher",
  "score": 1250,
  "upvoteRatio": 0.96,
  "numComments": 142,
  "postType": "link",
  "url": "https://www.reddit.com/r/technology/comments/1x0b0f5/...",
  "permalink": "https://www.reddit.com/r/technology/comments/1x0b0f5/...",
  "createdAt": "2026-10-11T10:15:00Z",
  "selftext": "",
  "flair": "Cybersecurity",
  "isOver18": false,
  "isPinned": false,
  "mediaUrls": [
    "https://i.redd.it/security_infographic.png"
  ],
  "scrapedAt": "2026-10-11T16:00:00Z"
}

Frequently Asked Questions

Q: How much does it cost to scrape subreddit feeds? Under Apify Pay-Per-Event pricing, scraping 1,000 subreddit posts costs $0.50 to $1.00 depending on your plan tier, with zero monthly minimums.

Q: Can I scrape multiple subreddits in one run? Yes. Use the startUrls field to add multiple subreddit URLs. The actor will scrape each community in order and merge them into one clean dataset.

Q: Can I extract comments along with the posts? Yes. Toggle scrapeComments to true and specify maxCommentsPerPost. The actor will harvest full discussions and replies for each post.

Q: What happens if a subreddit does not exist or is private? The actor finishes cleanly with exit code 0, outputs an empty dataset, and charges $0.00.


⚡ Quick Installation & Local Usage

1. Run with Python (apify-client)

git clone https://github.com/unitbytes/Reddit-Scraper-API.git
cd Reddit-Scraper-API
pip install -r requirements.txt
export APIFY_API_TOKEN="your_apify_api_token"
python examples/run_reddit_scraper.py

2. Import into n8n (Self-Hosted or Cloud)

  1. Open any .json file inside the n8n/ folder (or copy in 1 click from unitbytes.com/n8n).
  2. Press Ctrl+V / Cmd+V directly onto your n8n workflow canvas.
  3. Paste your Apify API Token into Node 1. Set Apify Token & Input and click Test Workflow.

💼 Need Done-For-You Datasets or Custom Pipelines?

Don't want to manage API tokens or scripts? UnitBytes Data Delivery provides ready-to-use CSV, Excel (.xlsx), Google Sheets, or Webhook feeds tailored to your exact target keywords, cities, or categories.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors