# Reddit Comment Scraper

**Use case:** 

Extract every comment from a Reddit post: comment text, author, upvotes, reply count, parent and date. Built for sentiment and audience research.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
    }
  ],
  "searches": [
    "artificial intelligence"
  ],
  "searchTypes": [
    "posts"
  ],
  "sort": "new",
  "time": "all",
  "includeNSFW": true,
  "includeComments": true,
  "maxItems": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "username": {
    "label": "Author",
    "format": "string"
  },
  "body": {
    "label": "Comment",
    "format": "string"
  },
  "communityName": {
    "label": "Community",
    "format": "string"
  },
  "upVotes": {
    "label": "Upvotes",
    "format": "integer"
  },
  "numberOfreplies": {
    "label": "Replies",
    "format": "integer"
  },
  "parentId": {
    "label": "Parent",
    "format": "string"
  },
  "createdAt": {
    "label": "Created",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## About this Actor

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