# Reddit Sentiment Analysis

**Use case:** 

Find public Reddit comments about OpenAI and export the comment text and scores for sentiment analysis.

## Input

```json
{
  "query": "OpenAI",
  "subreddits": [
    "ChatGPT"
  ],
  "maxComments": 25,
  "maxDaysOld": 1,
  "sort": "new",
  "safeSearch": false
}
```

## Output

```json
{
  "commentUrl": {
    "label": "Comment URL",
    "format": "string"
  },
  "text": {
    "label": "Comment text",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "createdAt": {
    "label": "Published time",
    "format": "string"
  },
  "subredditName": {
    "label": "Subreddit",
    "format": "string"
  },
  "postTitle": {
    "label": "Post title",
    "format": "string"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "string"
  },
  "postScore": {
    "label": "Post score",
    "format": "integer"
  },
  "postCommentCount": {
    "label": "Post comment count",
    "format": "integer"
  },
  "matchedSubreddit": {
    "label": "Search subreddit",
    "format": "string"
  }
}
```

## About this Actor

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