# Reddit Scraper: Subreddits, Search, B2B Leads & AI/RAG API (`church_of_loujess/reddit-scraper-fast`) Actor

Fast 256MB Reddit Scraper & B2B Buyer Intent Lead Finder. Extract subreddit posts, keyword searches, top comments, buyer-intent scores ('looking for alternative to...'), emails, links & AI/RAG Markdown. Zero proxies or API keys needed.

- **URL**: https://apify.com/church_of_loujess/reddit-scraper-fast.md
- **Developed by:** [H H](https://apify.com/church_of_loujess) (community)
- **Categories:** Social media, Lead generation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 extracted reddit post + b2b buyer intent & ai/rag records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Reddit Scraper: Subreddits, Search, Comments, B2B Buyer Intent & AI/RAG API

Extract **Reddit posts, subreddit feeds, keyword search results, top community comments, B2B buyer-intent signals (`buyerIntentScore`), external URLs, emails, and clean AI/RAG Markdown** in seconds — engineered to run in **256MB RAM** with **zero residential proxies or Reddit API keys required**.

***

### Why Choose This Reddit Scraper?

- **Zero-Proxy, Zero-API-Key Architecture:** Uses a 3-tier resilient pipeline combining indexed Reddit archival mirrors (`ArcticShift`), primary-key hydration (`/api/posts/ids`), and RSS search discovery so runs never fail with `403 Blocked` on cloud datacenter IPs.
- **Built-In B2B Buyer-Intent Scoring (`0–100`):** Automatically scores every Reddit thread for B2B buying intent (`"looking for an alternative to..."`, `"what tool do you recommend for..."`, `"how do you automate..."`, `"switching from..."`) and classifies threads into `HIGH_INTENT`, `MEDIUM_INTENT`, or `INFORMATIONAL`.
- **AI & Vector RAG Ready (`ragMarkdown`):** Formats the post title, subreddit context, author metadata, post body, and top community comments into clean Markdown ready for OpenAI, Claude, LangChain, LlamaIndex, and Pinecone.
- **Lead & Link Extraction:** Automatically extracts all external SaaS/website URLs (`externalLinks`) and email addresses (`extractedEmails`) mentioned in posts and comments.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `subreddits` | `array` | `["SaaS", "Entrepreneur"]` | Subreddit names (`SaaS`, `r/startups`) or subreddit URLs. |
| `searchQueries` | `array` | `["AI automation"]` | Keywords or buyer-intent phrases to search across Reddit. |
| `sort` | `string` | `"hot"` | Sort order (`hot`, `new`, `top`, `rising`, `relevance`, `comments`). |
| `maxPostsPerSource` | `integer` | `15` | Maximum posts to return per subreddit or search query. |
| `includeComments` | `boolean` | `true` | Include top community comments per post. |
| `maxCommentsPerPost` | `integer` | `5` | Max top comments to attach per post. |
| `onlyBuyerIntent` | `boolean` | `false` | Only return posts with `buyerIntentScore >= 25`. |

***

### Output Example

```json
{
  "postId": "1xcg1hy",
  "subreddit": "SaaS",
  "title": "Looking for a lightweight B2B lead enrichment alternative to Clay?",
  "author": "saas_founder_99",
  "score": 42,
  "numComments": 19,
  "upvoteRatio": 0.94,
  "buyerIntentScore": 85,
  "buyerIntentTier": "HIGH_INTENT",
  "intentSignals": ["looking for", "alternative to", "lead"],
  "createdAtIso": "2026-10-21T18:22:10+00:00",
  "url": "https://www.reddit.com/r/SaaS/comments/1xcg1hy/...",
  "externalLinks": [],
  "extractedEmails": [],
  "selfText": "We are currently spending $800/mo on Clay and looking for a faster API...",
  "topComments": [
    {
      "author": "growth_eng",
      "score": 14,
      "body": "Check out automated Apify + n8n pipelines..."
    }
  ],
  "ragMarkdown": "# Looking for a lightweight B2B lead enrichment alternative to Clay?\n**Subreddit:** r/SaaS | **Author:** u/saas_founder_99 | **Score:** 42 | **Buyer Intent:** 85/100 (HIGH_INTENT)\n...",
  "engineUsed": "arcticshift-mirror",
  "billable": true
}
```

***

### Community & 24/7 Support

Join the **Loujess Substrate** engineering community for n8n templates, Claude MCP configs, and live signal feeds: **https://discord.gg/YPwHmPMEQ**

# Actor input Schema

## `subreddits` (type: `array`):

List of subreddit names or URLs (e.g. \['SaaS', 'Entrepreneur', 'ArtificialIntelligence', 'startups']). Accepts bare names, r/name, or full URLs.

## `searchQueries` (type: `array`):

Optional keywords or buyer-intent phrases to search across Reddit or within the specified subreddits (e.g. \['AI agent', 'CRM alternative', 'lead generation tool']).

## `sort` (type: `string`):

How to sort subreddit posts or search results.

## `timeframe` (type: `string`):

Timeframe filter when sorting by Top, Relevance, or Comments.

## `maxPostsPerSource` (type: `integer`):

Maximum number of Reddit posts to extract per subreddit or search query.

## `includeComments` (type: `boolean`):

When enabled, fetches top-level community replies for each post and appends them to the AI/RAG Markdown.

## `maxCommentsPerPost` (type: `integer`):

Maximum number of top comments to extract per post when includeComments is enabled.

## `onlyBuyerIntent` (type: `boolean`):

If enabled, filters out general posts and only returns posts containing B2B buying/recommendation signals (buyerIntentScore >= 25).

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Runs out-of-the-box with zero proxies via multi-engine Reddit + ArcticShift fallback.

## Actor input object example

```json
{
  "subreddits": [
    "SaaS",
    "Entrepreneur"
  ],
  "searchQueries": [
    "AI automation"
  ],
  "sort": "hot",
  "timeframe": "month",
  "maxPostsPerSource": 10,
  "includeComments": true,
  "maxCommentsPerPost": 5,
  "onlyBuyerIntent": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "subreddits": [
        "SaaS",
        "Entrepreneur"
    ],
    "searchQueries": [
        "AI automation"
    ],
    "maxPostsPerSource": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("church_of_loujess/reddit-scraper-fast").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "subreddits": [
        "SaaS",
        "Entrepreneur",
    ],
    "searchQueries": ["AI automation"],
    "maxPostsPerSource": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("church_of_loujess/reddit-scraper-fast").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "subreddits": [
    "SaaS",
    "Entrepreneur"
  ],
  "searchQueries": [
    "AI automation"
  ],
  "maxPostsPerSource": 10
}' |
apify call church_of_loujess/reddit-scraper-fast --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,church_of_loujess/reddit-scraper-fast"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TZeXm7prDZq3uzmbQ/builds/PwMj4FEytSqMseQit/openapi.json
