# Scrape Reddit Programming Thread Comments

**Use case:** 

Collect the public comments and nested replies served for a Reddit programming thread, with each comment’s author, body, score, depth, and permalink. For AI product teams and analysts reviewing community discussion, change postUrls to the thread you want to inspect and maxComments to set the per-post limit.

## Input

```json
{
  "postUrls": [
    "https://www.reddit.com/r/programming/comments/1vqukkf/"
  ],
  "maxComments": 30,
  "commentSort": "confidence",
  "includePost": false,
  "postedAfter": "2025-01-01",
  "postedBefore": "2025-12-31",
  "minDepth": 1,
  "maxDepth": 2,
  "minCommentScore": 1,
  "maxCommentScore": 1000,
  "onlyOP": false,
  "excludeDeletedRemoved": false,
  "excludeCollapsed": false,
  "authors": [
    "spez"
  ],
  "excludeAuthors": [
    "AutoModerator"
  ],
  "keywords": [
    "thanks",
    "great point"
  ],
  "excludeKeywords": [
    "I am a bot",
    "check out my"
  ],
  "minAwards": 1,
  "minCommentLength": 20,
  "maxCommentLength": 2000,
  "focusOnTargetComment": false,
  "commentContext": 3
}
```

## Output

```json
{
  "post_title": {
    "label": "Post title"
  },
  "author": {
    "label": "Author"
  },
  "body": {
    "label": "Body"
  },
  "score": {
    "label": "Score"
  },
  "depth": {
    "label": "Depth"
  },
  "is_op": {
    "label": "Is op"
  },
  "permalink": {
    "label": "Permalink"
  },
  "created_at": {
    "label": "Created at"
  }
}
```

## How it works

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

The Reddit Comment Thread Scraper with Score & Keyword Filters Actor is ready to run with the inputs already set for "Scrape Reddit Programming Thread Comments". [Sign up or log in](https://console.apify.com/create-task-from-example/KRSYMdBK82NFrq6IO) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape Reddit Programming Thread Comments" task

The Reddit Comment Thread Scraper with Score & Keyword Filters Actor will start running based on the input automatically. You can also change all the input fields, like reddit post urls, maximum comments per post, and more, to match your specific use case.

### 3. Receive the "Scrape Reddit Programming Thread Comments" 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 post title, author, 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 Reddit Programming Thread Comments" task via API](https://apify.com/vexaloom-labs/reddit-comment-thread-scraper-with-score.md).

## About this Actor

This example demonstrates how to use [Reddit Comment Thread Scraper with Score & Keyword Filters](https://apify.com/vexaloom-labs/reddit-comment-thread-scraper-with-score.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/vexaloom-labs/reddit-comment-thread-scraper-with-score.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/vexaloom-labs/reddit-comment-thread-scraper-with-score.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`).
