# Reddit Dataset for RAG and Market Research

**Use case:** 

Scrape public Reddit discussions by keyword or subreddit and export posts, comments, URLs, timestamps, and engagement fields for RAG and research pipelines.

## Input

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

## Output

```json
{
  "type": {
    "label": "Record type",
    "format": "string"
  },
  "title": {
    "label": "Post title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "numComments": {
    "label": "Comment count",
    "format": "integer"
  },
  "createdAt": {
    "label": "Created at",
    "format": "string"
  },
  "url": {
    "label": "Reddit URL",
    "format": "string"
  },
  "targetCommentId": {
    "label": "Target comment ID",
    "format": "string"
  },
  "isTargetComment": {
    "label": "Is target comment",
    "format": "boolean"
  },
  "commentContextClassification": {
    "label": "Comment context role",
    "format": "string"
  },
  "targetType": {
    "label": "Target type",
    "format": "string"
  },
  "status": {
    "label": "Target status",
    "format": "string"
  },
  "records": {
    "label": "Record count",
    "format": "integer"
  },
  "message": {
    "label": "Status 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.