# Reddit Subreddit Posts Scraper (no login) (`peachy_slipper_1hc/reddit-subreddit-posts-scraper`) Actor

Scrape posts from public subreddits: title, full text, author, date, score, upvote ratio, comments, flair. Sort New/Hot/Top/Rising. No login, no API key.

- **URL**: https://apify.com/peachy_slipper_1hc/reddit-subreddit-posts-scraper.md
- **Developed by:** [caw](https://apify.com/peachy_slipper_1hc) (community)
- **Categories:** Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 posts

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

Get posts from any public subreddit: title, full text, author, date, score, upvote ratio, comment count, flair, post type, outbound link and permalink. Sort by New, Hot, Top (hour to all time) or Rising.

No Reddit account, no API key, no login. The Actor reads the public subreddit pages like a normal visitor.

### What you can use it for

- **Customer research**: what people complain about and ask for in r/shopify, r/Etsy, r/smallbusiness or your niche.
- **Content ideas and trend spotting**: top posts of the week or month in any community.
- **Brand and competitor monitoring**: run on a schedule with *Only posts newer than* to collect just the new posts.
- **AI datasets**: clean post text ready for summaries, classification or RAG.

### Input

```json
{
  "subreddits": ["shopify", "https://www.reddit.com/r/Etsy/"],
  "sort": "new",
  "maxPosts": 200,
  "maxAgeDays": 7
}
```

| Field | What it does |
|---|---|
| Subreddits | Names or links. |
| Sort | New, Hot, Top or Rising. |
| Time range | For Top: hour, day, week, month, year, all. |
| Max posts per subreddit | Default 100. |
| Only posts newer than (days) | Optional; with New the run stops at the first older post, so scheduled runs stay cheap. |
| Skip pinned posts | On by default. |

Ads (promoted posts) are never included.

### Output

```json
{
  "rank": 2,
  "sort": "new",
  "postId": "1y3phrz",
  "subreddit": "shopify",
  "title": "Shopify Point of Sale Outage",
  "url": "https://www.reddit.com/r/shopify/comments/1y3phrz/shopify_point_of_saleouttage/",
  "author": "Questionoid",
  "createdAt": "2026-11-23T18:10:03.701000+00:00",
  "score": 8,
  "upvoteRatio": 0.9,
  "commentCount": 16,
  "flair": "Point of Sale",
  "postType": "text",
  "text": "Are we down nationwide? Started at 10:54 MST.",
  "link": null,
  "domain": "self.shopify"
}
```

Other fields: `awardCount`, `language`, `isNsfw`, `isSpoiler`, `isStickied`.

### Pricing

You pay per post saved. Pages after the first are read as data inside the same browser, so a 1,000-post run takes a few minutes.

### Notes

- Public subreddits only. Private, quarantined and banned communities return no posts.
- Uses residential proxies by default because Reddit blocks data-centre IPs.
- Usernames are public on Reddit; handle them in line with the privacy laws that apply to you.

# Actor input Schema

## `subreddits` (type: `array`):

Names (shopify, r/shopify) or links (https://www.reddit.com/r/shopify/).

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

Order of posts, as on Reddit.

## `time` (type: `string`):

Only used when sort is Top.

## `maxPosts` (type: `integer`):

Stop after this many posts for each subreddit.

## `maxAgeDays` (type: `integer`):

Optional. Skip older posts; with sort New the run stops at the first older post.

## `skipStickied` (type: `boolean`):

Drop posts pinned by moderators.

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

Reddit blocks data-centre IPs. Keep residential proxies on.

## Actor input object example

```json
{
  "subreddits": [
    "shopify"
  ],
  "sort": "new",
  "time": "week",
  "maxPosts": 100,
  "skipStickied": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "subreddits": [
        "shopify"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("peachy_slipper_1hc/reddit-subreddit-posts-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 = {
    "subreddits": ["shopify"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("peachy_slipper_1hc/reddit-subreddit-posts-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 '{
  "subreddits": [
    "shopify"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call peachy_slipper_1hc/reddit-subreddit-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,peachy_slipper_1hc/reddit-subreddit-posts-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/lgLNveznOIfBEwgDQ/builds/Yr5Glt7dFnmYa6X81/openapi.json
