# Reddit Posts Scraper (`dromb/dreemteam-reddit-posts`) Actor

Extract public Reddit post search results with titles, URLs, subreddits, authors, scores, comment counts, flair, media, content snippets, and external links.

- **URL**: https://apify.com/dromb/dreemteam-reddit-posts.md
- **Developed by:** [Dmitriy Gyrbu](https://apify.com/dromb) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 results

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 Posts Scraper

Reddit Posts Scraper extracts public Reddit posts from keyword searches, topic pages, and community pages into clean dataset rows for social listening, trend research, market monitoring, and community discovery.

Use it to find conversations around products, brands, niches, competitors, pain points, launches, controversies, and fast-moving topics across Reddit communities.

This Actor is not affiliated with, endorsed by, or sponsored by Reddit.

### What It Collects

Each dataset row represents one public Reddit post search result.

The Actor can return:

- search query, query type, and result rank
- post title and Reddit URL
- subreddit and public author name
- upvotes, comment count, and awards when available
- creation date or timestamp when available
- post flair and author flair when available
- media marker, post content, and external URL when available
- promoted flag when available
- per-query parser status in the run summary
- optional raw page payloads in `RAW_PAGES`

### Common Use Cases

- Monitor brand, product, or competitor mentions.
- Discover communities discussing a topic.
- Build social listening datasets for research teams.
- Find Reddit posts for content, PR, or growth analysis.
- Track emerging complaints, requests, or market signals.
- Collect lead and audience research around a niche.

### Input

Provide one or more Reddit search queries, topic URLs, community URLs, or search URLs and choose how many posts to save per query.

```json
{
  "queries": ["SaaS pricing"],
  "maxResultsPerQuery": 10,
  "maxPages": 2,
  "sort": "Relevance",
  "timeRange": "All time",
  "deduplicate": true
}
```

#### Input Fields

- `queries` - Reddit search keywords, phrases, topic URLs, community URLs, or Reddit search URLs.
- `maxQueries` - maximum number of queries processed from the list.
- `maxResultsPerQuery` - maximum number of post rows saved for each query.
- `maxPages` - maximum number of Reddit result pages requested per query.
- `sort` - result sorting: relevance, hot, top, new, or comments.
- `timeRange` - result time range: all time, hour, day, week, month, or year.
- `includeRawData` - writes raw page payloads to `RAW_PAGES` when the source returns them; if not available, the run summary records a warning.
- `deduplicate` - removes repeated post rows within the same query.

### Example Queries

```json
{
  "queries": ["SaaS pricing", "AI", "fitness app"],
  "maxResultsPerQuery": 25,
  "maxPages": 5,
  "sort": "New",
  "timeRange": "Month",
  "deduplicate": true
}
```

Community and topic examples:

```json
{
  "queries": [
    "https://www.reddit.com/r/SaaS/",
    "https://www.reddit.com/t/bitcoin/"
  ],
  "maxResultsPerQuery": 20,
  "maxPages": 3,
  "sort": "Top",
  "timeRange": "Month",
  "deduplicate": true
}
```

### Output

Dataset rows are flat and ready for export to JSON, CSV, Excel, databases, or BI tools.

### Result Counting

Each saved Reddit post counts as one dataset result. Run summaries, empty
results, warnings, errors, and quota-limit messages are written to `OUTPUT`, not
as paid dataset rows.

Example row:

```json
{
  "query": "SaaS pricing",
  "queryType": "keyword",
  "rank": 1,
  "title": "How do you price your SaaS?",
  "postUrl": "https://www.reddit.com/r/SaaS/comments/example/post/",
  "subreddit": "SaaS",
  "author": "example_user",
  "upvotes": 1250,
  "commentsCount": 184,
  "content": "A discussion about pricing a software product.",
  "source": "reddit",
  "collectedAt": "2026-07-05T00:00:00+00:00"
}
```

### Limits And Notes

- Results are public Reddit search results and may vary over time.
- The Actor collects Reddit post rows in V1. It does not collect full comment threads, subreddit profiles, or user profiles in this version.
- Raw page payload availability depends on the source response. Dataset rows remain complete even when raw pages are not returned.
- Empty or blocked runs are reported in the `OUTPUT` summary and do not create fake paid dataset rows.
- Start with a small query set, review coverage, then scale to scheduled monitoring.

# Actor input Schema

## `queries` (type: `array`):

Reddit search keywords or phrases to collect public posts for, such as SaaS pricing, AI, fitness app, skincare, or electric cars.

## `maxQueries` (type: `integer`):

Maximum number of search queries processed from the list.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of Reddit post results saved for each query.

## `maxPages` (type: `integer`):

Maximum number of Reddit result pages requested from the source for each query before applying the post row limit.

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

Reddit result sorting used by the source.

## `timeRange` (type: `string`):

Reddit result time range used by the source.

## `includeRawData` (type: `boolean`):

Save raw page payloads to the RAW\_PAGES key-value store record for debugging or advanced enrichment. Dataset rows stay flat.

## `deduplicate` (type: `boolean`):

Remove repeated post rows within the same query while keeping the same post when it appears for different queries.

## Actor input object example

```json
{
  "queries": [
    "SaaS pricing"
  ],
  "maxQueries": 10,
  "maxResultsPerQuery": 10,
  "maxPages": 2,
  "sort": "Relevance",
  "timeRange": "All time",
  "includeRawData": false,
  "deduplicate": true
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset rows produced by this Actor.

## `summary` (type: `string`):

Structured run status, counts, quota status, warnings, and errors.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dromb/dreemteam-reddit-posts").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dromb/dreemteam-reddit-posts").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 '{}' |
apify call dromb/dreemteam-reddit-posts --silent --output-dataset

```

## MCP server setup

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

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/M6gVPb2UJih3wHoPO/builds/eGSxW7Guc6tr0FoHV/openapi.json
