# Reddit Subreddits V1 — Info, Browse, Join, Create (12 ops) (`red_crawler/reddit-subreddits`) Actor

Reddit subreddit toolkit — 8 anonymous lookups (info, rules, sidebar, browse, autocomplete, search names, popular feed, post listings) + 4 auth ops (my subreddits, join/leave, post requirements, create new). Use Reddit Vault or paste Token V2 + proxy.

- **URL**: https://apify.com/red\_crawler/reddit-subreddits.md
- **Developed by:** [Red Crawler](https://apify.com/red_crawler) (community)
- **Categories:** Lead generation, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Subreddits — Info, Rules & Browse

Look up Reddit subreddits at scale — about / metadata, rules, full sidebar, browse Reddit's curated directories, autocomplete subreddit names, and pull a feed of `r/popular`. Six self-contained endpoints. **No Reddit account, OAuth, or proxy required.**

Pick the endpoint, fill the matching section, hit Start.

---

### What you can fetch

Subreddit names accept `AskReddit`, `r/AskReddit`, `/r/AskReddit`, or the full subreddit URL — paste whichever you have.

#### 1. Subreddit Info — about / metadata

The standard "about" payload Reddit exposes for any community.

**Input:** subreddit name.

**Returns:** Reddit ID, fullname, display name (raw + prefixed), title, subscriber count, active user count, public + full description, created timestamp, language, type (public / private / restricted), NSFW flag, quarantine flag, URL, header / icon / banner / community-icon images, primary + key + banner-background colors, submit text, allowed submission types (videos / images / polls / galleries), spoilers-enabled flag, wiki-enabled flag.

**Use it when:** profiling a community in a single call, sizing audiences, importing a subreddit's settings into your own DB.

#### 2. Subreddit Rules

The community's posted rules.

**Input:** subreddit name.

**Returns per rule:** subreddit, priority, short name, full description, violation reason, kind (link / comment / both), created timestamp.

**Use it when:** building rule-aware moderation pipelines, posting bots that need to respect each subreddit's rules, compliance audits, content classifiers.

#### 3. Subreddit Sidebar — full about payload

The full sidebar payload (a richer superset of Subreddit Info — includes the same metadata plus theme, banner styling, public description, submit guidelines, allowed post types, contributor flags, more).

**Input:** subreddit name.

**Returns:** complete subreddit settings record. Effectively a one-shot way to mirror a community's identity (theme, branding, posting permissions, allowed content types).

**Use it when:** theme audits, building branded clones / mirrors, capturing every public knob a subreddit has set.

#### 4. Browse Subreddits — popular / new / default directory

Reddit's curated directories.

**Inputs:**
- **Directory** — `popular` (default), `new`, or `default`.
- **Limit** — 1 to 100 (default 25).

**Returns:** one Subreddit Info record per community, in the order Reddit ranks them.

**Use it when:** discovery dashboards, leaderboards (popular vs new vs Reddit's default seed list), competitive audits.

#### 5. Autocomplete — match names by prefix

Subreddit name suggestions for a prefix string.

**Inputs:**
- **Query** — prefix to match (e.g. `ask`).
- **Limit** — 1 to 10 (default 10).
- **Include NSFW results** — off by default. Tick to include NSFW communities.

**Returns:** up to 10 Subreddit Info records ranked by relevance.

**Use it when:** building search-as-you-type pickers, validating that a subreddit exists, surfacing "did you mean..." suggestions.

#### 6. Popular Posts — feed of `r/popular`

Posts directly from `r/popular`. Supports sort, time window, and **country filter**.

**Inputs:**
- **Sort** — `hot` (default), `new`, `top`, `rising`, `best`, `controversial`.
- **Time filter** *(optional)* — `hour` / `day` / `week` / `month` / `year` / `all`. Only used with `top` or `controversial`.
- **Country** *(optional)* — `GLOBAL` or any of 50 country codes (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `JP`, `IN`, `BR`, etc.). Only used with `best` or `hot`.
- **Limit** — 1 to 100 (default 25).

**Returns per post:** the same rich post record other actors return — ID, fullname, title, body, author, subreddit, score, ups / downs, comment count, created timestamp, permalink, URL, domain, all flags, flair, media, awards.

**Use it when:** trending feeds, geo-targeted listicles ("what's hot in Japan / Germany / Brazil right now"), regional newsfeeds, content syndication.

---

### How to run

1. **Pick an endpoint** in the "What to fetch" dropdown.
2. **Open the matching section** and fill its fields. Each section is independent — fields outside your chosen section are ignored.
3. **Click Start.**

---

### Output

Results are pushed to the actor's default dataset. View as a table or download as JSON / CSV / Excel / XML.

- **Subreddit Info / Subreddit Sidebar** push **one record** per run.
- **Subreddit Rules** push **one record per rule** (typically 5–15).
- **Browse Subreddits / Autocomplete / Popular Posts** push **one record per item** (up to your limit).

Every record is tagged with `endpoint` so you can tell rows apart at a glance. The most useful columns are placed first so the dataset Table view is readable without scrolling.

---

### Common edge cases

- **Private subreddits** — not accessible. Reddit hides their about / rules / sidebar from anonymous calls.
- **Quarantined subreddits** — return Reddit's quarantine notice rather than full data.
- **Banned subreddits** — return an error stub.
- **Lenient name matching** — `AskReddit`, `r/AskReddit`, `/r/AskReddit`, and `https://www.reddit.com/r/AskReddit/` all resolve to the same community.
- **Autocomplete NSFW filter** — by default NSFW results are excluded. Tick `Include NSFW results` to include them.
- **Popular Posts country filter** — only honored when sort is `best` or `hot`. With other sorts, Reddit returns the global feed regardless.
- **Empty results** — return zero records. The actor reports an empty result rather than failing.

---

### Why this actor is fast

- **Speed — 1–3 seconds per call, end-to-end.** Pure HTTP to Reddit's API. No browser to boot, no Playwright / Selenium / Puppeteer overhead. Competing browser-based scrapers typically take 15–60 seconds per call.
- **Reliability — zero browser flakiness.** No headless-Chromium crashes. No JS-render timeouts. No captcha pages. No surprise mid-run failures from a browser quirk.
- **Footprint — under 100 MB RAM per run.** Most browser-based scrapers need 1–4 GB. We're a thin async dispatcher — Reddit auth, proxy rotation, retry, and GraphQL handling all happen off-actor on our backend.

---

### Pricing

Pay-per-result. You're only charged for records actually pushed to the dataset — failed runs, validation errors, and empty results cost nothing. See the actor's pricing tab for the current per-result rate.

---

### Need a different shape of data?

- **Reddit Scraper V2** — 15 single & bulk reads for posts, comments, profiles, communities (`triangular_triangle/reddit-scrape-v2`).
- **Reddit Scraper** — pull a subreddit's feed, a post's comments, or a single post / comment by URL (`triangular_triangle/reddit-content-fetcher`).
- **Reddit Bulk Scrape** — paste up to 1500 IDs / names / URLs in a single run (`triangular_triangle/reddit-bulk-scrape`).
- **Reddit Search** / **Reddit Search V2** — search Reddit by query (`triangular_triangle/reddit-search`, `triangular_triangle/reddit-search-v2`).
- **Reddit Users** / **Reddit Users V2** — single-user lookups (`triangular_triangle/reddit-users`, `triangular_triangle/reddit-users-v2`).
- **Reddit Posts** — front-page feed, crosspost duplicates, pinned posts (`triangular_triangle/reddit-posts`).
- **Reddit Wiki, Emojis & Widgets** — wiki pages, custom emojis, sidebar widgets (`triangular_triangle/reddit-wiki-emojis-widgets`).

# Actor input Schema

## `endpoint` (type: `string`):

Choose which kind of subreddit lookup to run.
## `info_subreddit` (type: `string`):

Subreddit name (e.g. AskReddit). Used by: Subreddit Info.
## `rules_subreddit` (type: `string`):

Subreddit name (e.g. AskReddit). Used by: Subreddit Rules.
## `sidebar_subreddit` (type: `string`):

Subreddit name (e.g. AskReddit). Used by: Subreddit Sidebar.
## `browse_directory` (type: `string`):

Which directory to browse. Used by: Browse Subreddits.
## `browse_limit` (type: `integer`):

Max subreddits to return (1–100). Used by: Browse Subreddits.
## `autocomplete_q` (type: `string`):

Prefix to match against subreddit names. Used by: Autocomplete.
## `autocomplete_limit` (type: `integer`):

Max suggestions (1–10). Used by: Autocomplete.
## `autocomplete_include_over_18` (type: `boolean`):

If on, NSFW (over-18) subreddits are returned in autocomplete results. Default: off.
## `popular_sort` (type: `string`):

Sort order. Used by: Popular Posts.
## `popular_time_filter` (type: `string`):

Time window — IGNORED unless sort is 'top' or 'controversial'. Leave as '—' for other sort orders.
## `popular_geo_filter` (type: `string`):

Country filter — IGNORED unless sort is 'best' or 'hot'. Leave as '—' for everywhere.
## `popular_limit` (type: `integer`):

Max posts (1–100). Used by: Popular Posts.
## `search_names_q` (type: `string`):

Text to search for in subreddit names. Used by: Search Names.
## `search_names_include_over_18` (type: `boolean`):

If on, NSFW (over-18) subreddits are included in results. Default: off.
## `post_listings_subreddit` (type: `string`):

Subreddit name (e.g. AskReddit). Used by: Post Listings.
## `post_listings_sort` (type: `string`):

Sort order. Used by: Post Listings.
## `post_listings_time_filter` (type: `string`):

Time window — IGNORED unless sort is 'top' or 'controversial'. Leave as '—' for other sort orders.
## `post_listings_limit` (type: `integer`):

Max posts (1–1000). Used by: Post Listings.
## `my_subreddits_where` (type: `string`):

subscriber = communities you've joined; contributor = where you can post; moderator = where you have mod rights. Used by: My Subreddits.
## `my_subreddits_limit` (type: `integer`):

Max items (1–100). Used by: My Subreddits.
## `membership_action` (type: `string`):

Whether to join or leave the target subreddit. Used by: Membership.
## `membership_subreddit` (type: `string`):

Subreddit name to join or leave (with or without `r/`). Used by: Membership.
## `post_requirements_subreddit` (type: `string`):

Subreddit name (e.g. AskReddit). Used by: Post Requirements.
## `create_subreddit_name` (type: `string`):

Name for the new subreddit (no `r/` prefix). Used by: Create Subreddit.
## `credentialSource` (type: `string`):

Used by all auth-required endpoints (My Subreddits, Membership, Post Requirements, Create Subreddit). Anonymous endpoints ignore this section. **Use saved account (vault)** loads your stored Token V2 + proxy from the **reddit-vault** actor (auto-refreshed if you saved a Reddit Session) — only the 'Saved account name' field below is used. **Paste Token V2 + proxy** uses the values you paste below — the 'Saved account name' field is ignored.
## `accountName` (type: `string`):

The name you used in the **reddit-vault** actor when you stored this account. Your Token V2 + proxy load automatically from the vault. Ignored when 'Credential source' = manual.
## `bearer` (type: `string`):

Your Reddit `token_v2` cookie value (`eyJ...`). Lifetime ~24 h. Encrypted at rest by Apify. Ignored when 'Credential source' = vault.
## `proxy` (type: `string`):

Proxy in `ip:port:user:pass` format. MUST be the same IP that originally minted the Token V2. Ignored when 'Credential source' = vault.

## Actor input object example

```json
{
  "endpoint": "subreddit_info",
  "info_subreddit": "AskReddit",
  "rules_subreddit": "AskReddit",
  "sidebar_subreddit": "AskReddit",
  "browse_directory": "popular",
  "browse_limit": 25,
  "autocomplete_q": "ask",
  "autocomplete_limit": 10,
  "autocomplete_include_over_18": false,
  "popular_sort": "hot",
  "popular_time_filter": "",
  "popular_geo_filter": "",
  "popular_limit": 25,
  "search_names_q": "ask",
  "search_names_include_over_18": false,
  "post_listings_subreddit": "AskReddit",
  "post_listings_sort": "hot",
  "post_listings_time_filter": "",
  "post_listings_limit": 25,
  "my_subreddits_where": "subscriber",
  "my_subreddits_limit": 25,
  "membership_action": "join",
  "membership_subreddit": "AskReddit",
  "post_requirements_subreddit": "AskReddit",
  "credentialSource": "vault"
}
````

# 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 = {
    "endpoint": "subreddit_info",
    "info_subreddit": "AskReddit",
    "rules_subreddit": "AskReddit",
    "sidebar_subreddit": "AskReddit",
    "autocomplete_q": "ask",
    "search_names_q": "ask",
    "post_listings_subreddit": "AskReddit",
    "membership_subreddit": "AskReddit",
    "post_requirements_subreddit": "AskReddit",
    "create_subreddit_name": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("red_crawler/reddit-subreddits").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 = {
    "endpoint": "subreddit_info",
    "info_subreddit": "AskReddit",
    "rules_subreddit": "AskReddit",
    "sidebar_subreddit": "AskReddit",
    "autocomplete_q": "ask",
    "search_names_q": "ask",
    "post_listings_subreddit": "AskReddit",
    "membership_subreddit": "AskReddit",
    "post_requirements_subreddit": "AskReddit",
    "create_subreddit_name": "",
}

# Run the Actor and wait for it to finish
run = client.actor("red_crawler/reddit-subreddits").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 '{
  "endpoint": "subreddit_info",
  "info_subreddit": "AskReddit",
  "rules_subreddit": "AskReddit",
  "sidebar_subreddit": "AskReddit",
  "autocomplete_q": "ask",
  "search_names_q": "ask",
  "post_listings_subreddit": "AskReddit",
  "membership_subreddit": "AskReddit",
  "post_requirements_subreddit": "AskReddit",
  "create_subreddit_name": ""
}' |
apify call red_crawler/reddit-subreddits --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Reddit Subreddits V1 — Info, Browse, Join, Create (12 ops)",
        "description": "Reddit subreddit toolkit — 8 anonymous lookups (info, rules, sidebar, browse, autocomplete, search names, popular feed, post listings) + 4 auth ops (my subreddits, join/leave, post requirements, create new). Use Reddit Vault or paste Token V2 + proxy.",
        "version": "0.8",
        "x-build-id": "CUZaKhA6M33caNZ1h"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/red_crawler~reddit-subreddits/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-red_crawler-reddit-subreddits",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/red_crawler~reddit-subreddits/runs": {
            "post": {
                "operationId": "runs-sync-red_crawler-reddit-subreddits",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/red_crawler~reddit-subreddits/run-sync": {
            "post": {
                "operationId": "run-sync-red_crawler-reddit-subreddits",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "endpoint"
                ],
                "properties": {
                    "endpoint": {
                        "title": "What to fetch",
                        "enum": [
                            "subreddit_info",
                            "subreddit_rules",
                            "subreddit_sidebar",
                            "browse_subreddits",
                            "autocomplete",
                            "popular_posts",
                            "search_names",
                            "post_listings",
                            "my_subreddits",
                            "membership",
                            "post_requirements",
                            "create_subreddit"
                        ],
                        "type": "string",
                        "description": "Choose which kind of subreddit lookup to run.",
                        "default": "subreddit_info"
                    },
                    "info_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name (e.g. AskReddit). Used by: Subreddit Info."
                    },
                    "rules_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name (e.g. AskReddit). Used by: Subreddit Rules."
                    },
                    "sidebar_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name (e.g. AskReddit). Used by: Subreddit Sidebar."
                    },
                    "browse_directory": {
                        "title": "Directory",
                        "enum": [
                            "popular",
                            "new",
                            "default"
                        ],
                        "type": "string",
                        "description": "Which directory to browse. Used by: Browse Subreddits.",
                        "default": "popular"
                    },
                    "browse_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Max subreddits to return (1–100). Used by: Browse Subreddits.",
                        "default": 25
                    },
                    "autocomplete_q": {
                        "title": "Query",
                        "type": "string",
                        "description": "Prefix to match against subreddit names. Used by: Autocomplete."
                    },
                    "autocomplete_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Max suggestions (1–10). Used by: Autocomplete.",
                        "default": 10
                    },
                    "autocomplete_include_over_18": {
                        "title": "Include NSFW results",
                        "type": "boolean",
                        "description": "If on, NSFW (over-18) subreddits are returned in autocomplete results. Default: off.",
                        "default": false
                    },
                    "popular_sort": {
                        "title": "Sort",
                        "enum": [
                            "hot",
                            "new",
                            "top",
                            "rising",
                            "best",
                            "controversial"
                        ],
                        "type": "string",
                        "description": "Sort order. Used by: Popular Posts.",
                        "default": "hot"
                    },
                    "popular_time_filter": {
                        "title": "Time filter (only for sort = top or controversial)",
                        "enum": [
                            "",
                            "hour",
                            "day",
                            "week",
                            "month",
                            "year",
                            "all"
                        ],
                        "type": "string",
                        "description": "Time window — IGNORED unless sort is 'top' or 'controversial'. Leave as '—' for other sort orders.",
                        "default": ""
                    },
                    "popular_geo_filter": {
                        "title": "Location (only for sort = best or hot)",
                        "enum": [
                            "",
                            "GLOBAL",
                            "US",
                            "GB",
                            "CA",
                            "AU",
                            "DE",
                            "FR",
                            "ES",
                            "IT",
                            "JP",
                            "IN",
                            "BR",
                            "MX",
                            "PL",
                            "NL",
                            "SE",
                            "NO",
                            "FI",
                            "DK",
                            "IE",
                            "NZ",
                            "ZA",
                            "TR",
                            "RU",
                            "AR",
                            "CL",
                            "CO",
                            "PE",
                            "VE",
                            "UA",
                            "GR",
                            "PT",
                            "CH",
                            "AT",
                            "BE",
                            "CZ",
                            "HU",
                            "RO",
                            "IL",
                            "AE",
                            "SA",
                            "EG",
                            "NG",
                            "KR",
                            "TW",
                            "TH",
                            "MY",
                            "SG",
                            "PH",
                            "ID",
                            "VN"
                        ],
                        "type": "string",
                        "description": "Country filter — IGNORED unless sort is 'best' or 'hot'. Leave as '—' for everywhere.",
                        "default": ""
                    },
                    "popular_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Max posts (1–100). Used by: Popular Posts.",
                        "default": 25
                    },
                    "search_names_q": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Text to search for in subreddit names. Used by: Search Names."
                    },
                    "search_names_include_over_18": {
                        "title": "Include NSFW results",
                        "type": "boolean",
                        "description": "If on, NSFW (over-18) subreddits are included in results. Default: off.",
                        "default": false
                    },
                    "post_listings_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name (e.g. AskReddit). Used by: Post Listings."
                    },
                    "post_listings_sort": {
                        "title": "Sort",
                        "enum": [
                            "hot",
                            "new",
                            "top",
                            "rising",
                            "best",
                            "controversial"
                        ],
                        "type": "string",
                        "description": "Sort order. Used by: Post Listings.",
                        "default": "hot"
                    },
                    "post_listings_time_filter": {
                        "title": "Time filter (only for sort = top or controversial)",
                        "enum": [
                            "",
                            "hour",
                            "day",
                            "week",
                            "month",
                            "year",
                            "all"
                        ],
                        "type": "string",
                        "description": "Time window — IGNORED unless sort is 'top' or 'controversial'. Leave as '—' for other sort orders.",
                        "default": ""
                    },
                    "post_listings_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Max posts (1–1000). Used by: Post Listings.",
                        "default": 25
                    },
                    "my_subreddits_where": {
                        "title": "Which list",
                        "enum": [
                            "subscriber",
                            "contributor",
                            "moderator",
                            "streams"
                        ],
                        "type": "string",
                        "description": "subscriber = communities you've joined; contributor = where you can post; moderator = where you have mod rights. Used by: My Subreddits.",
                        "default": "subscriber"
                    },
                    "my_subreddits_limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Max items (1–100). Used by: My Subreddits.",
                        "default": 25
                    },
                    "membership_action": {
                        "title": "Action",
                        "enum": [
                            "join",
                            "leave"
                        ],
                        "type": "string",
                        "description": "Whether to join or leave the target subreddit. Used by: Membership.",
                        "default": "join"
                    },
                    "membership_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name to join or leave (with or without `r/`). Used by: Membership."
                    },
                    "post_requirements_subreddit": {
                        "title": "Subreddit",
                        "type": "string",
                        "description": "Subreddit name (e.g. AskReddit). Used by: Post Requirements."
                    },
                    "create_subreddit_name": {
                        "title": "New subreddit name",
                        "pattern": "^[A-Za-z0-9_]{3,21}$",
                        "type": "string",
                        "description": "Name for the new subreddit (no `r/` prefix). Used by: Create Subreddit."
                    },
                    "credentialSource": {
                        "title": "Credential source",
                        "enum": [
                            "vault",
                            "manual"
                        ],
                        "type": "string",
                        "description": "Used by all auth-required endpoints (My Subreddits, Membership, Post Requirements, Create Subreddit). Anonymous endpoints ignore this section. **Use saved account (vault)** loads your stored Token V2 + proxy from the **reddit-vault** actor (auto-refreshed if you saved a Reddit Session) — only the 'Saved account name' field below is used. **Paste Token V2 + proxy** uses the values you paste below — the 'Saved account name' field is ignored.",
                        "default": "vault"
                    },
                    "accountName": {
                        "title": "Saved account name (used when source = vault)",
                        "pattern": "^[A-Za-z0-9_-]{1,32}$",
                        "maxLength": 32,
                        "type": "string",
                        "description": "The name you used in the **reddit-vault** actor when you stored this account. Your Token V2 + proxy load automatically from the vault. Ignored when 'Credential source' = manual."
                    },
                    "bearer": {
                        "title": "Token V2 (used when source = manual)",
                        "type": "string",
                        "description": "Your Reddit `token_v2` cookie value (`eyJ...`). Lifetime ~24 h. Encrypted at rest by Apify. Ignored when 'Credential source' = vault."
                    },
                    "proxy": {
                        "title": "Proxy (used when source = manual)",
                        "type": "string",
                        "description": "Proxy in `ip:port:user:pass` format. MUST be the same IP that originally minted the Token V2. Ignored when 'Credential source' = vault."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
