# Scrape Reddit Post Comments Thread

**Use case:** 

Extract the full nested comment tree of any Reddit post with score, depth, and parent IDs for analysis or RAG.

## Input

```json
{
  "mode": "comments_thread",
  "subreddits": [],
  "sort": "hot",
  "timeFilter": "all",
  "searchQuery": "",
  "restrictToSubreddit": false,
  "postUrls": [
    "https://www.reddit.com/r/programming/comments/abc123/some_title/"
  ],
  "usernames": [],
  "includeComments": true,
  "maxCommentDepth": 10,
  "maxItems": 500,
  "maxPagesPerTarget": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type"
  },
  "subreddit": {
    "label": "Subreddit"
  },
  "author": {
    "label": "Author"
  },
  "body": {
    "label": "Body"
  },
  "score": {
    "label": "Score"
  },
  "createdAt": {
    "label": "Posted at",
    "format": "date"
  },
  "depth": {
    "label": "Depth"
  },
  "parentId": {
    "label": "Parent id"
  },
  "postId": {
    "label": "Post id"
  },
  "url": {
    "label": "Permalink",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Reddit Scraper - Posts, Comments, Search, Users (no login)](https://apify.com/constructive_calm/reddit-scraper-pro) with a specific input configuration. Visit the [Actor detail page](https://apify.com/constructive_calm/reddit-scraper-pro) to learn more, explore other use cases, and run it yourself.