# Reddit Subreddits Scraper (`aboo.script/reddit-subreddits-scraper`) Actor

\[💰$3 / 1K] ⚡ Fast Reddit subreddit scraper. No login, no API key. Get community data by subreddit URL, keyword search or the subreddit directory: weekly visitors and contributions, creation date, type, full rules, sidebar widgets and links, icon, banner, status.

- **URL**: https://apify.com/aboo.script/reddit-subreddits-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 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 Subreddits Scraper

**Reddit Subreddits Scraper** extracts Reddit communities (subreddits) from [Reddit](https://www.reddit.com/) into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a subreddit URL, a community search URL, or type a few keywords, and get the description, weekly visitors and contributions, creation date, community type, full rules, sidebar links, icon, and banner for every community. No account or login required.

### Introduction

[Reddit](https://www.reddit.com/) is one of the largest discussion platforms in the world, organized into hundreds of thousands of communities called subreddits. Each community has its own audience, activity level, rules, and resources, which makes subreddit data valuable for marketers, researchers, and community managers.

This actor collects the same public information you see on a community page and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from Reddit?

- 🏷️ Community name, title, ID, and description
- 📊 Weekly visitors and weekly contributions
- 📅 Creation date
- 🔒 Community type (Public, Restricted, Private) with its explanation
- 📜 Full list of rules, with title and description for each rule
- 🧩 Sidebar widgets (bookmarks, info text, related communities, flairs, events, installed apps) with their links
- 📣 Current community status message
- 🖼️ Community icon and banner images
- 🔗 Direct URL to each community

### Use Cases

- 📈 **Market research**: find the most active communities in your niche and compare their weekly activity.
- 🕵️ **Community monitoring**: track how visitors, contributions, rules, and sidebar resources change over time.
- 🤝 **Marketing and outreach**: check posting rules before you share content, so your posts are not removed.
- 🗂️ **Database building**: build your own catalog of subreddits by topic, with descriptions, icons, and banners.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Reddit subreddits step by step

1. Paste one or more Reddit URLs into **Start URLs**, or type keywords into **Search communities**.
2. Set **Maximum number of communities** to how many communities you want per URL or per keyword.
3. Click **Start** and wait for the run to finish.
4. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Reddit URLs to scrape. Supported pages: community pages (`https://www.reddit.com/r/programming/`), community search results (`https://www.reddit.com/search/?q=python&type=communities`), and the subreddit directory (`https://www.reddit.com/subreddits/popular/`, `https://www.reddit.com/subreddits/new/`, `https://www.reddit.com/subreddits/search?q=python`). Any page of the directory works as a starting point.
- **Search communities**: keywords to search Reddit communities for, one per line. Each keyword is scraped separately, in Reddit's relevance order.
- **Maximum number of communities**: how many communities to collect for each start URL or keyword. Set 0 for no limit.
- **Proxy configuration**: Residential proxy is required. Reddit blocks datacenter IP addresses, so keep the default setting.

You can use start URLs, keywords, or both in the same run.

### Input Examples

Scrape a community page and the popular subreddit directory:

```json
{
  "startUrls": [
    { "url": "https://www.reddit.com/r/programming/" },
    { "url": "https://www.reddit.com/subreddits/popular/" }
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Search communities by keyword:

```json
{
  "searchQueries": ["python"],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Output

Each community is saved as one item in the dataset. Here is an example of a single item (rules and widgets shortened):

```json
{
  "url": "https://www.reddit.com/r/Python/",
  "id": "t5_2qh0y",
  "name": "Python",
  "prefixedName": "r/Python",
  "title": "Python",
  "description": "The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language.\n---\nIf you have questions or are new to Python use r/LearnPython",
  "weeklyVisitors": 99938,
  "weeklyContributions": 666,
  "createdAt": "2008-01-25T03:14:39.134Z",
  "type": "Public",
  "typeDescription": "Anyone can view, post, and comment to this community",
  "status": "Pycon US 2025 starts next week!",
  "iconUrl": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png",
  "bannerUrl": "https://styles.redditmedia.com/t5_2qh0y/styles/bannerBackgroundImage_cd73kiu1502d1.png",
  "rulesCount": 11,
  "rules": [
    {
      "position": 1,
      "title": "No showcase posts",
      "description": "Due to an increase of showcases featuring AI content such as working with multiple AI models or wrappers around APIs, this is no longer allowed. ..."
    }
  ],
  "widgets": [
    {
      "title": "Search by Flair",
      "text": "Discussion\nResource\nMeta\nDaily Thread\nOfficial Event\nShowcase\nNews\nTutorial\nOfficial PyCon",
      "links": [
        {
          "text": "Discussion",
          "url": "https://www.reddit.com/r/Python/?f=flair_name%3A%22Discussion%22"
        }
      ]
    }
  ]
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Reddit no longer shows member (subscriber) counts on community pages. The actor returns weekly visitors and weekly contributions instead, exactly as Reddit shows them.
- Private, banned, and deleted communities are skipped with a warning, because their details are not public.
- Community search on Reddit is fuzzy: even unusual keywords return loosely related communities, and the actor stops when Reddit has no new communities to show.
- Moderator lists are not public for logged-out visitors, so they are not included.
- Communities without a custom icon, banner, or status message return `null` for those fields.
- Residential proxy is required for stable results.

### Why use the Reddit Subreddits Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 📜 **Full rules and sidebar**: every rule with its description, plus sidebar widgets and their links.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and text is free of HTML.
- 💸 **Pay for what you need**: set a limit per URL or keyword and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many communities can I scrape?

You can set any number in **Maximum number of communities**, or 0 for no limit. The actor keeps going until it reaches your limit or Reddit has no more communities to show.

#### Do I need a Reddit account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh data automatically.

#### Can I request a new feature or filter?

Yes. Right now the actor supports community URLs, community search, and the subreddit directory. If you need other data, such as recent posts of each community, get in touch and it can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other social media platforms?

- [LinkedIn Articles Scraper](https://apify.com/aboo.script/linkedin-pulse-scraper): LinkedIn Pulse articles with author, text, and engagement.
- [YouTube Live Chat Scraper](https://apify.com/aboo.script/youtube-live-chat-scraper): live chat messages and chat replays from YouTube streams.
- [TikTok Trending Hashtags Scraper](https://apify.com/aboo.script/tiktok-trending-hashtags-scraper): trending TikTok hashtags by country and industry.
- [TikTok Trending Videos Scraper](https://apify.com/aboo.script/tiktok-trending-videos-scraper): trending TikTok videos by country.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

# Actor input Schema

## `startUrls` (type: `array`):

Community pages (https://www.reddit.com/r/programming/), community search results (https://www.reddit.com/search/?q=python\&type=communities) or the subreddit directory (https://www.reddit.com/subreddits/popular/, https://www.reddit.com/subreddits/new/, https://www.reddit.com/subreddits/search?q=python).

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

Keywords to search Reddit communities for, for example python, travel or personal finance. Results come in Reddit's relevance order.

## `maxResults` (type: `integer`):

Maximum number of communities to scrape per start URL or search query. Set 0 for no limit.

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

Reddit blocks datacenter IP addresses and limits how many pages one IP address can load. Residential proxy is required.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/programming/"
    },
    {
      "url": "https://www.reddit.com/subreddits/popular/"
    }
  ],
  "searchQueries": [
    "python"
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.reddit.com/r/programming/"
        },
        {
            "url": "https://www.reddit.com/subreddits/popular/"
        }
    ],
    "searchQueries": [
        "python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/reddit-subreddits-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 = {
    "startUrls": [
        { "url": "https://www.reddit.com/r/programming/" },
        { "url": "https://www.reddit.com/subreddits/popular/" },
    ],
    "searchQueries": ["python"],
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/reddit-subreddits-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 '{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/programming/"
    },
    {
      "url": "https://www.reddit.com/subreddits/popular/"
    }
  ],
  "searchQueries": [
    "python"
  ]
}' |
apify call aboo.script/reddit-subreddits-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/reddit-subreddits-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/Je1rh95WU2obnVfaw/builds/xLnzkOjfDhMfkLNXB/openapi.json
