# Reddit Posts Scraper (`icoe-man/reddit-posts-scraper`) Actor

A reddit posts scraper: collect the public posts of any subreddit, newest, hot or top, or single posts by link, with titles, text, dates and counts. Adult content is left out. Export JSON, CSV or Excel.

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

## Pricing

Pay per event

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

Bring public Reddit posts into one table you can download or open in other tools. Pick the new, hot or top feed for the subreddits you enter, or paste links to the exact posts you need. Each row has the post link, title, text, author and date, plus the score and comment count. The scraper skips adult content.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Use full web addresses. If you have a short link, open it and copy the full address from your browser's address bar. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Subreddit posts

Get titles, text, dates and counts for public posts from the subreddits you enter, with the newest posts first by default. In `subreddit-posts` mode, fill in **Subreddits** (up to 100 entries), and **Feed** (optional), **Time window** (optional), **Posts from** (optional), **Posts before** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each post appears in its own row and counts as one **Subreddit posts** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "reddit",
  "id": "1xvmyt4",
  "url": "https://www.reddit.com/r/science/comments/1xvmyt4/",
  "author": {
    "id": "example_user",
    "username": "example_user"
  },
  "text": "A short example title for illustration\n\nA short example body sentence for illustration.",
  "createdAt": "2026-11-13T07:46:34Z",
  "metrics": {
    "likes": 1280,
    "comments": 42
  },
  "hashtags": [],
  "mentions": [],
  "media": [],
  "details": {
    "reddit": {
      "subreddit": "science",
      "title": "A short example title for illustration",
      "over18": false,
      "upvoteRatio": 0.94,
      "isVideo": false,
      "linkUrl": null,
      "domain": null,
      "flair": "Example flair",
      "awards": 0,
      "subredditMembers": 34000000,
      "spoiler": false,
      "originalContent": false,
      "gallery": false,
      "postType": "self"
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "subreddit": "science",
    "maxItems": 10
  }
}
```

#### Post details

Enter links to public Reddit posts to get their titles, text, authors, dates and counts. In `post-get` mode, fill in **Post links** (up to 100 entries). You get one post per entry. Each post appears in its own row and counts as one **Post details** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "reddit",
  "id": "1xvmyt4",
  "url": "https://www.reddit.com/r/science/comments/1xvmyt4/",
  "author": {
    "id": "example_user",
    "username": "example_user"
  },
  "text": "A short example title for illustration\n\nA short example body sentence for illustration.",
  "createdAt": "2026-11-13T07:46:34Z",
  "metrics": {
    "likes": 1280,
    "comments": 42
  },
  "hashtags": [],
  "mentions": [],
  "media": [],
  "details": {
    "reddit": {
      "subreddit": "science",
      "title": "A short example title for illustration",
      "over18": false,
      "upvoteRatio": 0.94,
      "isVideo": false,
      "linkUrl": null,
      "domain": null,
      "awards": 0,
      "subredditMembers": 34000000,
      "spoiler": false,
      "locked": false,
      "archived": false,
      "originalContent": false,
      "gallery": false
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.reddit.com/r/science/comments/1xvmyt4/",
    "maxItems": 1
  }
}
```

### Ways to use the data

- See what people are talking about in a subreddit today.
- Compare the latest posts from several subreddits that cover your topic.
- Use post scores and comment counts to spot topics worth writing about.
- Save a dated record of subreddit posts so you can revisit them later.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `subreddits` | Subreddits | Enter subreddit names such as science or r/science, or paste full subreddit links. |
| `sortBy` | Feed | The default, new, starts with the newest posts. You can also choose Reddit's hot or top feed. |
| `timeWindow` | Time window | For top, pick day, week, month or year to get the top posts from that period. The default, all, gets the top posts of all time. For new or hot, leave this set to all. |
| `postedAfter` | Posts from | With new, enter a date like 2026-11-01 (UTC) to keep posts from that day on. Leave it blank for no start date. The Actor checks dates as it reads posts when needed and stops after three pages in a row with no matches. You may get fewer results than your limit. |
| `postedBefore` | Posts before | With new, enter a date like 2026-11-15 (UTC) to keep only posts before that day. Leave it blank for no end date. The Actor checks dates as it reads posts when needed and stops after three pages in a row with no matches. You may get fewer results than your limit. |
| `postUrls` | Post links | Paste full links to public Reddit posts, like https://www.reddit.com/r/science/comments/1xvmyt4/. If you have a share link (reddit.com/.../s/...), open it and copy the full address from your browser. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Post details. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "subreddit-posts",
  "subreddits": [
    "science"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Post details | $4.164 | $3.820 | $3.470 | $3.227 | $3.227 | $3.227 |
| Subreddit posts | $4.164 | $3.820 | $3.470 | $3.227 | $3.227 | $3.227 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### Which mode should I choose?

Choose Subreddit posts to collect public posts from the communities you enter. This mode starts with the newest posts by default. Choose Post details if you only want the posts you link to.

#### Does the scraper collect adult content?

No. Both modes skip adult content (NSFW).

#### Can I choose a subreddit feed or limit posts by date?

Yes. In Subreddit posts, set Feed to new, hot or top. The default, new, starts with the newest posts. With top, use Time window to pick the past day, week, month or year, or keep all for all time. Posts from and Posts before only work with new. When you set dates, the Actor checks them as it reads posts, so you may get fewer results than your Result limit per target.

#### What information do I get for each post?

Each row has the post's link, title, text, author, date and subreddit. It also shows the score, comment and award counts, and the share of votes that were upvotes. Depending on the post, you may also see its flair (label), post type, any link and website it shares, and the subreddit's member count. The row can also show whether the post is a spoiler, a gallery or original content. Post details can tell you whether the post is locked or archived. If a detail isn't available, its cell is blank.

#### Do I need a Reddit account to collect posts?

No. The scraper only collects public information. You don't need to sign in to Reddit or share browser cookies.

#### How do I limit results, and what do I pay for?

Set Result limit per target to cap how many results you get per subreddit or post link. You pay only for posts you get. Errors and empty results cost nothing. The run stops if it reaches your spending limit.

#### Is this tool affiliated with Reddit?

No. This tool is independent of Reddit. Reddit does not endorse or sponsor it. The tool only collects public information from Reddit.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Reddit. All trademarks belong to their owners.

# Actor input Schema

## `mode` (type: `string`):

Choose one type of result per run, then fill in the fields for that choice.

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

Enter subreddit names such as science or r/science, or paste full subreddit links.

## `sortBy` (type: `string`):

The default, new, starts with the newest posts. You can also choose Reddit's hot or top feed.

## `timeWindow` (type: `string`):

For top, pick day, week, month or year to get the top posts from that period. The default, all, gets the top posts of all time. For new or hot, leave this set to all.

## `postedAfter` (type: `string`):

With new, enter a date like 2026-11-01 (UTC) to keep posts from that day on. Leave it blank for no start date. The Actor checks dates as it reads posts when needed and stops after three pages in a row with no matches. You may get fewer results than your limit.

## `postedBefore` (type: `string`):

With new, enter a date like 2026-11-15 (UTC) to keep only posts before that day. Leave it blank for no end date. The Actor checks dates as it reads posts when needed and stops after three pages in a row with no matches. You may get fewer results than your limit.

## `postUrls` (type: `array`):

Paste full links to public Reddit posts, like https://www.reddit.com/r/science/comments/1xvmyt4/. If you have a share link (reddit.com/.../s/...), open it and copy the full address from your browser.

## `maxItems` (type: `integer`):

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Post details.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "subreddit-posts",
  "subreddits": [
    "science"
  ],
  "postUrls": [
    "https://www.reddit.com/r/science/comments/1xvmyt4/"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

# Actor output Schema

## `results` (type: `string`):

See everything this run collected in one table.

# 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 = {
    "mode": "subreddit-posts",
    "subreddits": [
        "science"
    ],
    "postUrls": [
        "https://www.reddit.com/r/science/comments/1xvmyt4/"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/reddit-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 = {
    "mode": "subreddit-posts",
    "subreddits": ["science"],
    "postUrls": ["https://www.reddit.com/r/science/comments/1xvmyt4/"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/reddit-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 '{
  "mode": "subreddit-posts",
  "subreddits": [
    "science"
  ],
  "postUrls": [
    "https://www.reddit.com/r/science/comments/1xvmyt4/"
  ],
  "maxItems": 10
}' |
apify call icoe-man/reddit-posts-scraper --silent --output-dataset

```

## MCP server setup

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