# Reddit Subreddit Scraper

**Use case:** 

Export a subreddit's posts sorted by hot, new or top: title, author, upvotes, comments, flair and post URL. Perfect for community and trend research.

## Input

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

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "communityName": {
    "label": "Community",
    "format": "string"
  },
  "username": {
    "label": "Author",
    "format": "string"
  },
  "upVotes": {
    "label": "Upvotes",
    "format": "integer"
  },
  "upVoteRatio": {
    "label": "Ratio",
    "format": "number"
  },
  "numberOfComments": {
    "label": "Comments",
    "format": "integer"
  },
  "flair": {
    "label": "Flair",
    "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.