# Reddit API Scraper Example - /r/webscraping news

**Use case:** 

Extract the latest top posts and comments from the /r/webscraping subreddit. Get structured data from this vibrant community.

## Input

```json
{
  "subreddits": [
    "webscraping"
  ],
  "sort": "new",
  "time": "day",
  "searchQueries": [
    "large language models",
    "rust vs go"
  ],
  "searchSort": "relevance",
  "searchInSubreddits": false,
  "postUrls": [
    "https://www.reddit.com/r/programming/comments/1ab2cd/title/"
  ],
  "usernames": [
    "spez"
  ],
  "userContent": "overview",
  "includeComments": true,
  "maxComments": 10,
  "commentSort": "top",
  "maxItemsPerSource": 10,
  "includeNsfw": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "text"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "numComments": {
    "label": "Comments",
    "format": "number"
  },
  "createdAt": {
    "label": "Created",
    "format": "date"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "permalink": {
    "label": "Permalink",
    "format": "link"
  }
}
```

## About this Actor

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