# Scrape Reddit Comments by Keyword

**Use case:** 

Scrape Reddit comments mentioning any keyword — text, author, score, post and subreddit. Great for sentiment and support research. Export to CSV or JSON.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/AskReddit/"
    },
    {
      "url": "https://www.reddit.com/user/spez/"
    }
  ],
  "searches": [
    "customer support"
  ],
  "searchPosts": false,
  "searchComments": true,
  "searchCommunities": false,
  "searchUsers": false,
  "sort": "new",
  "time": "month",
  "includeNSFW": true,
  "maxPostCount": 50,
  "maxComments": 300,
  "maxItems": 300,
  "maxCommunitiesCount": 10,
  "maxUserCount": 10,
  "skipComments": false,
  "skipUserPosts": false,
  "skipCommunity": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "body": {
    "label": "Comment body",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "depth": {
    "label": "Depth",
    "format": "number"
  },
  "parent_id": {
    "label": "Parent id",
    "format": "string"
  },
  "link_id": {
    "label": "Link id",
    "format": "string"
  },
  "created_utc": {
    "label": "Created (UNIX seconds)",
    "format": "number"
  },
  "permalink": {
    "label": "Permalink",
    "format": "string"
  }
}
```

## About this Actor

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