# Top Posts and Comments of a Subreddit This Month

**Use case:** 

Read what a community talks about: the month's top posts of r/ProductManagement with up to 50 of the best comments under each, so you see what users ask for, complain about and the words they use. About $2.60 for 50 posts with their comments.

## Input

```json
{
  "subreddits": [
    "ProductManagement"
  ],
  "searches": [],
  "searchInSubreddit": "",
  "users": [],
  "startUrls": [],
  "sort": "top",
  "time": "month",
  "maxPostsPerSource": 50,
  "includeComments": true,
  "maxCommentsPerPost": 50,
  "filterKeywords": [],
  "filterKeywordMode": "any",
  "flairFilter": [],
  "includeNsfw": true,
  "onlyNew": false,
  "monitorName": "",
  "authorFilter": [],
  "domainFilter": [],
  "deduplicate": false,
  "minItems": 0
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "body": {
    "label": "Text",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "numComments": {
    "label": "Comments",
    "format": "integer"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "createdAt": {
    "label": "Posted",
    "format": "string"
  },
  "url": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

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

The Reddit Scraper Actor is ready to run with the inputs already set for "Top Posts and Comments of a Subreddit This Month". [Sign up or log in](https://console.apify.com/create-task-from-example/boQvVZEKh6lAiuLN1) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Top Posts and Comments of a Subreddit This Month" task

The Reddit Scraper Actor will start running based on the input automatically. You can also change all the input fields, like subreddits, search words, and more, to match your specific use case.

### 3. Receive the "Top Posts and Comments of a Subreddit This Month" 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, text, 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 "Top Posts and Comments of a Subreddit This Month" task via API](https://apify.com/sleepmodesystems/reddit-scraper.md).

## FAQ

### What does the Top Posts and Comments of a Subreddit task return?

The month's top posts of r/ProductManagement, each followed by up to 50 comment rows with author, score, text, depth and parent, linked to the post by postId.

### Can I use the task for another subreddit?

Yes. Replace ProductManagement with any subreddit name or link, and change the time range (week, month, year, all time).

### Are comment replies included?

Yes. Comments come with their reply tree: depth is 0 for top-level comments, and parentId points to the comment each reply answers.

### How much does the Top Posts and Comments of a Subreddit task cost?

$1.99 per 1,000 posts and $0.99 per 1,000 comments on the FREE tier: about $2.60 for 50 posts with up to 50 comments each.

## About this Actor

This example demonstrates how to use [Reddit Scraper](https://apify.com/sleepmodesystems/reddit-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sleepmodesystems/reddit-scraper.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/sleepmodesystems/reddit-scraper.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`).
