# Reddit Discussions & Sentiment Trends Scraper (`drain54/reddit-discussions-scraper`) Actor

Scrape Reddit discussions, threads, community insights, and sentiment trends across subreddits without API limits or IP blocks.

- **URL**: https://apify.com/drain54/reddit-discussions-scraper.md
- **Developed by:** [Indra Darmawan](https://apify.com/drain54) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 scraped reddit discussion posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Discussions & Sentiment Trends Scraper 🔴💬

Extract community discussions, trending posts, sentiment data, and user recommendations from Reddit **without requiring Reddit API developer keys, rate limits, or IP bans**.

Designed for **market researchers, AI dataset creators (LLM fine-tuning & RAG), consumer sentiment analysis, and product builders**.

***

### ⚡ What does Reddit Discussions Scraper do?

1. **Topic & Niche Discovery:** Find authentic discussions across any niche simply by entering keywords or questions (e.g. `best ai tools`, `dropshipping tips`, `saas marketing feedback`).
2. **Subreddit Intelligence:** Extracts subreddit names (`r/technology`, `r/entrepreneur`), post titles, discussion snippets, and permanent post links.
3. **Bypass Reddit API Paywalls:** Uses independent multi-engine index resolution, completely bypassing Reddit's expensive paid API tiers and aggressive 403 blocks.
4. **Fast, Lightweight & Cost-Effective:** Pure HTTP architecture — extracts dozens of discussion threads in seconds with minimal compute unit usage.

***

### 🚀 Key Features & Extracted Data

| Data Field | Description | Example Output |
|---|---|---|
| `postId` | Unique Reddit submission ID | `1q4q4iv` |
| `title` | Full post title | `Everything announced at CES 2026` |
| `subreddit` | Subreddit community name | `r/technology` |
| `url` | Clean direct link to the Reddit post | `https://www.reddit.com/r/technology/comments/...` |
| `snippet` | Summary or body preview of the discussion | `Razer’s Project Ava AI game coach from last year...` |
| `searchQuery` | The original search keyword used | `artificial intelligence tools` |
| `scrapedAt` | ISO 8601 extraction timestamp | `2026-09-25T06:30:00Z` |

***

### 💡 How to Use

1. Enter one or more **Topics or Search Queries** (e.g. `artificial intelligence tools`, `crypto trading strategies`).
2. Set **Max Posts to Scrape** (e.g. 20, 50, 100).
3. Click **Start** or trigger via Apify API / Webhook.
4. Export your discussion dataset to **CSV, Excel, or JSON**.

***

### 📥 Sample Input

```json
{
  "searchQueries": [
    "artificial intelligence tools",
    "best productivity apps"
  ],
  "maxPosts": 20
}
```

***

### 📤 Sample Output

```json
{
  "postId": "1q4q4iv",
  "title": "Everything announced at CES 2026",
  "subreddit": "r/technology",
  "url": "https://www.reddit.com/r/technology/comments/1q4q4iv/everything_announced_at_ces_2026/",
  "snippet": "Razer’s Project Ava AI game coach from last year’s CES is taking a new form for 2026...",
  "searchQuery": "artificial intelligence tools",
  "scrapedAt": "2026-09-25T06:30:00Z",
  "status": "success"
}
```

# Actor input Schema

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

Keywords, niches, or questions to search for discussions on Reddit (e.g. 'artificial intelligence', 'dropshipping advice', 'best productivity apps').

## `maxPosts` (type: `integer`):

Maximum number of Reddit discussion posts to extract.

## Actor input object example

```json
{
  "searchQueries": [
    "artificial intelligence tools"
  ],
  "maxPosts": 20
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "artificial intelligence tools"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("drain54/reddit-discussions-scraper").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 = { "searchQueries": ["artificial intelligence tools"] }

# Run the Actor and wait for it to finish
run = client.actor("drain54/reddit-discussions-scraper").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 '{
  "searchQueries": [
    "artificial intelligence tools"
  ]
}' |
apify call drain54/reddit-discussions-scraper --silent --output-dataset

```

## MCP server setup

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

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/LB03ZuyXFXTFo1saI/builds/4ctHTa26YcTb0f6Qg/openapi.json
