# Reddit Subreddit Info Actor (`pintostudio/reddit-subreddit-info-actor`) Actor

This Apify Actor retrieves public metadata and details about a Reddit subreddit based on its URL.

- **URL**: https://apify.com/pintostudio/reddit-subreddit-info-actor.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** Social media, Developer tools, Other
- **Stats:** 48 total users, 9 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Reddit: Subreddit Information

This Apify Actor retrieves **public metadata and details about a Reddit subreddit** based on its URL.

The actor is read-only and does **not** require authentication.

***

### What This Actor Does

Given a valid Reddit subreddit URL, the actor returns structured information about the subreddit, including:

- Subreddit name and title
- Description and rules text
- Subscriber count
- Creation date
- NSFW status
- Language
- Icons and banners
- Submission settings and moderation flags

***

### Input

The actor accepts a JSON input object with the following properties.

#### Input Schema

| Field          | Type   | Required | Description                                                            |
| -------------- | ------ | -------- | ---------------------------------------------------------------------- |
| `subredditUrl` | string | ✅ Yes    | Full Reddit subreddit URL (e.g. `https://www.reddit.com/r/wallstreet`) |

> ⚠️ **Note**: Although `limit`, `page`, and `sortBy` are required by the input schema, they are **not used** in the subreddit information operation. You can keep their default values.

***

#### Example Input

```json
{
  "subredditUrl": "https://www.reddit.com/r/wallstreet" 
}
```

***

### Output

The actor stores the result in two places:

- **Key-Value Store** under the key `OUTPUT`
- **Dataset** (each run pushes one result object)

#### Output Structure

```json
{
  "success": true,
  "message": "Success",
  "data": {
    "name": "string",
    "title": "string",
    "description": "string",
    "subscribers": number,
    "activeUsers": number | null,
    "created": "ISO-8601 date string",
    "nsfw": boolean,
    "language": "string",
    "url": "string",
    "icon": "string | null",
    "banner": "string | null",
    "submitText": "string | null",
    "isQuarantined": boolean,
    "communityReviewed": boolean | null,
    "allowVideos": boolean | null,
    "allowDiscussions": boolean | null,
    "allowDiscovery": boolean | null,
    "isAdvertiserOnly": boolean | null
  },
  "error": null
}
```

***

#### Example Output

```json
{
  "success": true,
  "message": "Success",
  "data": {
    "name": "wallstreet",
    "title": "Wall Street",
    "description": "Get Money.\n\nDiscord: ...",
    "subscribers": 87323,
    "activeUsers": null,
    "created": "2010-03-21T15:12:40.000Z",
    "nsfw": false,
    "language": "en",
    "url": "https://reddit.com/r/wallstreet/",
    "icon": "https://...png",
    "banner": "https://...png",
    "submitText": "Please properly mark links...",
    "isQuarantined": false,
    "communityReviewed": true,
    "allowVideos": true,
    "allowDiscussions": null,
    "allowDiscovery": true,
    "isAdvertiserOnly": null
  },
  "error": null
}
```

***

### Error Handling

If the input URL is invalid or the subreddit cannot be processed, the actor will:

- Throw an execution error
- Push an error object to the dataset

#### Error Output Example

```json
{
  "data": null,
  "error": "The provided subredditUrl is not a valid Reddit subreddit URL",
  "timestamp": "2026-01-09T12:34:56.789Z"
}
```

***

### Valid Subreddit URL Formats

The actor accepts standard Reddit subreddit URLs, such as:

- `https://www.reddit.com/r/{subreddit}`
- `https://reddit.com/r/{subreddit}`

Invalid or non-subreddit URLs will cause the run to fail.

***

### Typical Use Cases

- Market research on Reddit communities
- Tracking subreddit growth and metadata
- Content moderation analysis
- Community discovery and analytics
- Feeding subreddit metadata into dashboards or APIs

***

### Notes

- Public data only (no login required)
- One subreddit per run
- Safe to automate and schedule

***

### Support

For issues, questions, or feature requests, please refer to the Apify platform documentation or:

1. Create an issue and share your resource
2. Send us private message
3. Contact us via Telegram: @pintoflow

# Actor input Schema

## `subredditUrl` (type: `string`):

The full Reddit URL of the subreddit to scrape posts from (e.g., https://www.reddit.com/r/wallstreet)

## Actor input object example

```json
{
  "subredditUrl": "https://www.reddit.com/r/wallstreet"
}
```

# 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 = {
    "subredditUrl": "https://www.reddit.com/r/wallstreet"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/reddit-subreddit-info-actor").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 = { "subredditUrl": "https://www.reddit.com/r/wallstreet" }

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/reddit-subreddit-info-actor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "subredditUrl": "https://www.reddit.com/r/wallstreet"
}' |
apify call pintostudio/reddit-subreddit-info-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pintostudio/reddit-subreddit-info-actor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6xsjQlumQsig2wslO/builds/lVB0O2g2r7LDTtbyx/openapi.json
