# Scrape Reddit Posts from Any Subreddit

**Use case:** 

Scrape posts from any subreddit : title, author, score, comment count and timestamps as clean JSON or CSV. No API key, no login. Sort by hot, new, or top.

## Input

```json
{
  "mode": "subreddit_posts",
  "subreddits": [
    "python"
  ],
  "sort": "hot",
  "timeFilter": "week",
  "searchQuery": "machine learning",
  "searchQueriesList": [],
  "searchSort": "relevance",
  "usernames": [
    "spez"
  ],
  "userContentType": "overview",
  "postUrls": [
    "https://www.reddit.com/r/Python/comments/1r19hu1/after_25_years_using_orms_i_switched_to_raw/"
  ],
  "maxCommentsPerPost": 100,
  "maxResults": 100,
  "includeComments": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "numComments": {
    "label": "Comments",
    "format": "number"
  },
  "created": {
    "label": "Created",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## About this Actor

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