# Scrape Monthly Top Reddit Posts and Comments From Subreddits

**Use case:** 

Collect the top posts of the past month, with their comments, from several subreddits in one run. The example covers six startup and small-business communities at 25 posts each; add more subreddits or raise Max Items for bigger datasets. Built for monthly trend reports, research datasets and LLM analysis.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/startups/"
    },
    {
      "url": "https://www.reddit.com/r/SaaS/"
    },
    {
      "url": "https://www.reddit.com/r/Entrepreneur/"
    },
    {
      "url": "https://www.reddit.com/r/smallbusiness/"
    },
    {
      "url": "https://www.reddit.com/r/marketing/"
    },
    {
      "url": "https://www.reddit.com/r/freelance/"
    }
  ],
  "sort": "top",
  "time": "month",
  "maxItems": 25,
  "includeNSFW": false,
  "skipComments": false,
  "skipUserPosts": false,
  "skipCommunity": true,
  "ignorestartUrls": false,
  "searchPosts": true,
  "searchComments": false,
  "fetchPostComments": true,
  "searchCommunities": false,
  "searchUsers": false
}
```

## Output

```json
{
  "dataType": {
    "label": "Type",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "body": {
    "label": "Body",
    "format": "text"
  },
  "communityName": {
    "label": "Community",
    "format": "text"
  },
  "username": {
    "label": "Author",
    "format": "text"
  },
  "upVotes": {
    "label": "Upvotes",
    "format": "number"
  },
  "numberOfComments": {
    "label": "Comments",
    "format": "number"
  },
  "createdAt": {
    "label": "Created at",
    "format": "date"
  },
  "url": {
    "label": "URL",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Fast Reddit Scraper ($2/1k): Cheap & Bulk Data Actor is ready to run with the inputs already set for "Scrape Monthly Top Reddit Posts and Comments From Subreddits". [Sign up or log in](https://console.apify.com/create-task-from-example/wV9TPWXojmoACkIp4) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape Monthly Top Reddit Posts and Comments From Subreddits" task

The Fast Reddit Scraper ($2/1k): Cheap & Bulk Data Actor will start running based on the input automatically. You can also change all the input fields, like start urls, sort by, and more, to match your specific use case.

### 3. Receive the "Scrape Monthly Top Reddit Posts and Comments From Subreddits" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, title, body, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape Monthly Top Reddit Posts and Comments From Subreddits" task via API](https://apify.com/practicaltools/apify-reddit-api.md).

## FAQ

### What data does this task collect from Reddit?

The task collects the titles, texts, usernames, votes, timestamps, and media for top posts, along with comments including body, usernames, upvotes, and timestamps.

### Which subreddits does this task scrape?

The example scrapes r/startups, r/SaaS, r/Entrepreneur, r/smallbusiness, r/marketing and r/freelance. Replace them with any subreddits in the Start URLs field.

### Can I schedule this task to run automatically?

Yes, this task can be scheduled to run automatically in the Apify Console.

### How many posts can this task retrieve?

The task is configured to limit the retrieval to a maximum of 25 posts per subreddit during a single run.

### How does the pricing for this task work?

The Scrape Monthly Top Reddit Posts and Comments task is billed per result returned, so cost scales with the number of subreddits and Max Items. See the Actor's Pricing tab for the current rate.

## About this Actor

This example demonstrates how to use [Fast Reddit Scraper ($2/1k): Cheap & Bulk Data](https://apify.com/practicaltools/apify-reddit-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/practicaltools/apify-reddit-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/practicaltools/apify-reddit-api.md

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`).
