# Reddit Scraper — Posts from Subreddits, Users & Links (`maged120/reddit-scraper`) Actor

Reddit Scraper: scrape Reddit posts from any subreddit, user profile or post link. Get title, text, score, upvote ratio, comment count, author, flair and media. No Reddit API setup needed. Export to CSV, JSON, Excel or API.

- **URL**: https://apify.com/maged120/reddit-scraper.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Social media
- **Features:** Limited permissions
- **Stats:** 62 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.50 / 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

### What does Reddit Scraper do?

**Reddit Scraper** extracts **posts from any subreddit, any Reddit user, or any Reddit link**: title, text, score, upvote ratio, comment count, author, flair, media (images, galleries, video), subreddit size and timestamps. You get clean, structured data you can export to a spreadsheet or feed into your own tools.

It runs on the Apify platform, so you get API access, scheduling (e.g. a daily subreddit snapshot), integrations with Google Sheets, Slack, Zapier and Make, and run monitoring, with no Reddit app registration or API quota to manage.

### Why use Reddit Scraper?

- **Market and product research**: see what your audience asks, complains about and recommends in niche subreddits.
- **Brand and competitor monitoring**: track posts mentioning your brand or competitors over time.
- **Content ideas**: find the highest-scoring posts in your niche and what formats perform.
- **Trend tracking**: snapshot the Reddit front page or a subreddit on a schedule.
- **Research and data science**: build datasets of posts with engagement metrics for analysis or AI training.
- **Creator and user research**: export a Reddit user's post history.

### How to scrape Reddit posts

1. Click **Try for free** (or **Start**).
2. Fill in **one** of: **Subreddit** (e.g. `Frontend`), **Username** (e.g. `spez`), or **Link** (any Reddit URL: a subreddit, a user page or a post). Leave them all empty to scrape the Reddit front page.
3. Set **Limit**, the maximum number of posts.
4. Keep the default proxy setting.
5. Click **Start**, then open the **Output** tab or download JSON, CSV, Excel or HTML.

### Input

| Field | Description |
|---|---|
| **Subreddit** | Subreddit name without `r/`, e.g. `Frontend` |
| **Username** | Reddit username without `u/`, e.g. `spez` |
| **Link** | Any Reddit URL: subreddit, user profile or post |
| **Limit** | Maximum number of posts to return (default 25) |
| **Proxy configuration** | Keep the default residential proxy on automatic country |

```json
{
    "subreddit": "Frontend",
    "limit": 50
}
```

```json
{
    "link": "https://www.reddit.com/user/spez/",
    "limit": 25
}
```

### Output

Each post is one row. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
{
    "title": "What's your go-to stack for a new frontend project in 2026?",
    "description": "Starting a new side project and curious what everyone is reaching for these days...",
    "link": "https://www.reddit.com/r/Frontend/comments/1abc234/whats_your_goto_stack/",
    "permalink": "/r/Frontend/comments/1abc234/whats_your_goto_stack/",
    "subreddit": "r/Frontend",
    "subreddit_subscribers": 250000,
    "post_id": "1abc234",
    "ups": 412,
    "upvote_ratio": 0.96,
    "num_comments": 187,
    "media_type": "text",
    "media_urls": [],
    "thumbnail": "self",
    "is_video": false,
    "is_gallery": false,
    "created_utc": 1759524817,
    "author": "example_dev",
    "flair": "Discussion",
    "over_18": false,
    "is_locked": false,
    "is_stickied": false,
    "domain": "self.Frontend"
}
```

#### Data fields

| Field | Description |
|---|---|
| `title`, `description` | Post title and body text |
| `link`, `permalink`, `post_id` | Post URL and identifiers |
| `subreddit`, `subreddit_subscribers` | Where it was posted and how big that community is |
| `ups`, `upvote_ratio`, `num_comments`, `num_crossposts` | Engagement metrics |
| `media_type`, `media_urls`, `thumbnail`, `is_video`, `is_gallery` | Media attached to the post |
| `author`, `author_flair_text`, `flair` | Who posted it and the post's flair |
| `created_utc` | When it was posted (Unix time) |
| `over_18`, `is_spoiler`, `is_locked`, `is_stickied` | Post flags |
| `domain` | Linked domain (or `self.<subreddit>` for text posts) |

### How many results will I get?

You're charged per result, so the cost follows the number of rows below. Your plan's rates are on the **Pricing** tab.

| Input | Results |
|---|---|
| Limit = 25 | Up to 25 rows |
| Limit = 500 | Up to 500 rows |

Each post is one row. Use **Limit** to control run size.

### Tips

- **Schedule snapshots:** run daily on your key subreddits and append to Google Sheets to build a history.
- **Find posts by keyword:** use [Reddit Search](https://apify.com/maged120/reddit-search) to search across all of Reddit, or [Reddit Subreddit Scraper](https://apify.com/maged120/reddit-subreddit) for hot/new/top sorting.
- **Front page:** leave all fields empty to capture what's trending on Reddit right now.

### FAQ

**Is it legal to scrape Reddit?**
The Actor collects publicly visible posts only. Use the data in line with Reddit's terms and applicable law, and avoid collecting personal data you don't need.

**Do I need a Reddit account or API key?**
No.

**Can I scrape private or quarantined subreddits?**
No. Only public content is available.

**Found a bug or need a custom solution?**
Open an issue in the **Issues** tab. Custom versions are available on request.

***

⭐ **Found this Actor useful?** A quick review on the Store helps other users find it and keeps it maintained.

# Actor input Schema

## `subreddit` (type: `string`):

The ID of the subreddit to scrape (e.g., 'Frontend').

## `username` (type: `string`):

The Reddit username to scrape (e.g., 'Fluffy_Hearts').

## `link` (type: `string`):

A specific Reddit URL to scrape (e.g., 'https://www.reddit.com/r/Frontend/comments/1dbyqda/...').

## `limit` (type: `integer`):

Maximum number of posts to retrieve (default: 25).

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

Leave the default Apify Residential proxy and do not select a specific country (leave it on automatic) for best results and to avoid rate limiting.

## Actor input object example

```json
{
  "limit": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/reddit-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 = { "limit": 10 }

# Run the Actor and wait for it to finish
run = client.actor("maged120/reddit-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 '{
  "limit": 10
}' |
apify call maged120/reddit-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/reddit-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/8x7dmLDxNyTQ5Rpe3/builds/zLbx85gK5qd7lP0u2/openapi.json
