# Scrape top posts from a subreddit

**Use case:** 

Collect hot posts from a public subreddit. This example targets r/technology and keeps comments disabled for a fast, low-cost run.

## Input

```json
{
  "urls": [
    "https://www.reddit.com/r/technology/"
  ],
  "searchQuery": "web scraping tools",
  "sort": "hot",
  "timeFilter": "week",
  "maxPostsPerSource": 100,
  "includeComments": false,
  "maxCommentsPerPost": 10,
  "commentDepth": 3,
  "commentContextMode": false,
  "commentContextDepth": 3,
  "filterKeywords": [],
  "filterKeywordMode": "any",
  "deduplicatePosts": true,
  "outputFormat": "default",
  "mcpExportMaxItems": 10
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "string"
  },
  "id": {
    "label": "ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "numComments": {
    "label": "Comments",
    "format": "integer"
  },
  "createdAt": {
    "label": "Created",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "targetCommentId": {
    "label": "Target comment",
    "format": "string"
  },
  "isTargetComment": {
    "label": "Is target",
    "format": "boolean"
  },
  "commentContextClassification": {
    "label": "Context role",
    "format": "string"
  },
  "targetType": {
    "label": "Target type",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "records": {
    "label": "Records",
    "format": "integer"
  },
  "message": {
    "label": "Message",
    "format": "string"
  }
}
```

## About this Actor

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