# Reddit Post Scraper

**Use case:** 

Scrape posts from any subreddit or Reddit URL: title, community, author, upvotes, upvote ratio, comment count, flair and date. No login, pay per result.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/technology/"
    }
  ],
  "searches": [
    "artificial intelligence"
  ],
  "searchTypes": [
    "posts"
  ],
  "sort": "new",
  "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.