# Reddit comments scraper: every comment of a post

**Use case:** 

Paste a Reddit post link and get the post with its comments and replies: text, author, upvotes, reply level and the comment each one answers, ready to rebuild the thread. Example: a popular cold brew guide.

## Input

```json
{
  "searchQueries": [
    "coffee"
  ],
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/Coffee/comments/k4zhv6/i_figured_it_out_cold_brew_guide/"
    }
  ],
  "maxPosts": 20,
  "sort": "relevance",
  "timeFilter": "all",
  "includeComments": true,
  "maxComments": 500,
  "searchComments": false,
  "includeAutoModeratorAndDeleted": false
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "string"
  },
  "matchType": {
    "label": "Comment origin",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "postTitle": {
    "label": "Post",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "score": {
    "label": "Upvotes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "depth": {
    "label": "Reply level",
    "format": "integer"
  },
  "createdAt": {
    "label": "Published",
    "format": "string"
  },
  "url": {
    "label": "Link",
    "format": "string"
  },
  "source": {
    "label": "Found by",
    "format": "string"
  }
}
```

## How it works

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

The Reddit Scraper | $0.30/1K | Posts, Search, Subreddits, Comments Actor is ready to run with the inputs already set for "Reddit comments scraper: every comment of a post". [Sign up or log in](https://console.apify.com/create-task-from-example/tOaP4fEBBP9OoKTr1) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Reddit comments scraper: every comment of a post" task

The Reddit Scraper | $0.30/1K | Posts, Search, Subreddits, Comments Actor will start running based on the input automatically. You can also change all the input fields, like 🔎 keywords, 🔗 reddit links, and more, to match your specific use case.

### 3. Receive the "Reddit comments scraper: every comment of a post" 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, comment origin, subreddit, 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 comments scraper: every comment of a post" task via API](https://apify.com/monkey.d.scraping/reddit-scraper.md).

## FAQ

### Can I rebuild the conversation tree?

Yes. Every comment has parentId, the comment or post it answers, and depth, its reply level, so you can rebuild the whole thread.

### Can I scrape several posts?

Yes. Paste one link per line; each post comes with its own comments.

### Do I need a Reddit account?

No. The Actor reads public posts without login or API key.

### How much does it cost?

From $0.30 to $0.45 per 1,000 posts or comments depending on your Apify plan, plus $0.005 per run. Platform usage is included.

## About this Actor

This example demonstrates how to use [Reddit Scraper | $0.30/1K | Posts, Search, Subreddits, Comments](https://apify.com/monkey.d.scraping/reddit-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/monkey.d.scraping/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/monkey.d.scraping/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`).
