# Reddit Subreddit Posts Scraper

**Use case:** 

Scrape the posts of a Reddit subreddit by URL. Returns each post's title, text, author, upvotes, comment count, post link and the comments (author, text, score). Set an item limit to control how many posts you get.

## Input

```json
{
  "url": "https://www.reddit.com/r/django",
  "itemLimit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "upvotes": {
    "label": "Upvotes",
    "format": "string"
  },
  "comment_count": {
    "label": "Comments",
    "format": "string"
  },
  "total_comments": {
    "label": "Comments collected",
    "format": "integer"
  },
  "post_url": {
    "label": "Post URL",
    "format": "string"
  },
  "description": {
    "label": "Post text",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Reddit Subreddit Posts Scraper" task

The Reddit Community Posts Scraper Pro Actor will start running based on the input automatically. You can also change all the input fields, like search url, item limit, and more, to match your specific use case.

### 3. Receive the "Reddit Subreddit Posts Scraper" 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 title, author, upvotes, 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 "Reddit Subreddit Posts Scraper" task via API](https://apify.com/getdataforme/reddit-community-posts-actor.md).

## FAQ

### What does it extract?

Posts of a subreddit with title, text, author, upvotes, comment count and the loaded comments.
Question 2: Which input is needed?
Answer 2: A subreddit URL such as https://www.reddit.com/r/django and an item limit.

## About this Actor

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