# Reddit Scraper ($0.95/1K): Posts, Comments, Search (`tsutseisoftware/reddit-scraper`) Actor

Scrape Reddit without login: subreddit posts (any sort and time), post comments with full threads, search for posts, comments and communities, user profiles. Score, upvote ratio, awards, flair, media. Monitor keywords and subreddits for new posts and comments with alerts, trend summary.

- **URL**: https://apify.com/tsutseisoftware/reddit-scraper.md
- **Developed by:** [Tsutsei Software](https://apify.com/tsutseisoftware) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.38 / 1,000 row (post, comment, community or user)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Reddit Scraper: Posts, Comments, Search and Users

Scrape Reddit without an account or API key: posts of any subreddit in any order, full comment threads, search results for posts, comments and communities, and user profiles. Every post comes with its text, link, images, score and comment count; posts read from subreddits and user profiles also with upvote ratio, awards and flair. Turn on monitoring to get only new posts and comments on a schedule, with alerts to Telegram, Slack, Discord, WhatsApp or a webhook.

It takes the same input as the most used Reddit scraper (`startUrls`, `searches`, `sort`, `time`, `maxItems`, `maxPostCount`, `maxComments`, `skipComments` …), so your saved inputs, schedules and integrations work here unchanged.

### Why use this Reddit scraper?

- **It works.** No login, no cookies to paste, no proxy to set up. Requests Reddit rejects are asked again in another way, so a run doesn't fail on the first refusal.
- **Everything in one actor:** subreddits, posts, comment threads, searches (site-wide or in one subreddit), comment search, community search, user profiles with karma.
- **Fields others lose without an account:** upvote ratio, awards and flair come for every post read from a subreddit or a user.
- **Past the 1,000-post limit:** Reddit shows about 1,000 posts of a subreddit in one order; **Go past the 1,000-post limit** reads it in every order and keeps each post once.
- **Monitoring and alerts:** only new posts and comments since the last run, thread tracking (new comments in posts you watch), notifications.
- **Trend summary for free:** rows per day, top communities and authors, sentiment share and the top posts of the run in one JSON record.
- **Exports:** a printable HTML report and a Markdown table besides Excel, CSV and JSON.
- **Fair price:** $0.95 per 1,000 posts and $0.74 per 1,000 comments, with no extra platform costs.

### What data can you get?

| Row | Fields |
|---|---|
| Post | title, text, link, domain, author, subreddit, created, score, upvote ratio, comments, awards, flair, post type, NSFW, spoiler, pinned, locked, language, images, videos, thumbnail |
| Comment | text, author, score, depth, parent, post ID, title and link, created, replies read |
| Community | name, description, weekly visitors, weekly contributions, icon |
| User | username, post karma, comment karma, total karma, account created |
| Every post and comment | age in hours, score per hour, comments per hour, engagement; sentiment with **Add sentiment** |

### How to scrape Reddit

1. Put Reddit URLs in **Reddit URLs** (a subreddit, a post, a user, a search), or type **Search terms**, **Subreddits** or **Usernames**.
2. Choose **Sort**, **Time** and the limits (**Max items**, **Max posts per source**, **Max comments per post**).
3. Run it and download the results as Excel, CSV or JSON, or connect them to your tools.

### Use cases

#### Newest posts of a subreddit with their top comments

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/Python/" }],
  "sort": "new",
  "maxPostCount": 100,
  "maxComments": 20
}
```

#### Brand mentions across Reddit, every morning to Slack

```json
{
  "searches": ["\"your brand\"", "yourbrand.com"],
  "searchComments": true,
  "sort": "new",
  "onlyNew": true,
  "monitoringKey": "brand",
  "slackWebhookUrl": "https://hooks.slack.com/services/..."
}
```

Schedule it daily: each run returns only posts and comments it has not returned before, and Slack gets one message with them.

#### Top posts of the year with sentiment

```json
{
  "subreddits": ["technology", "Futurology"],
  "sort": "top",
  "time": "year",
  "maxPostCount": 500,
  "skipComments": true,
  "includeSentiment": true
}
```

The **TREND_SUMMARY** record then has the top posts, the busiest days and the share of positive and negative posts.

#### A whole discussion

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/AskReddit/comments/1y2r0ea/how_would_you_react_if_a_former_resident_of_your/" }],
  "maxComments": 2000,
  "commentSort": "top"
}
```

#### Watch a thread for new comments

Put the post URL in **Reddit URLs**, turn on **Monitoring: only new posts and comments** and schedule the run: every run returns the comments added since the last one.

#### Everything a user posted

```json
{
  "usernames": ["spez"],
  "maxPostCount": 200,
  "maxComments": 200
}
```

#### Monitoring mode, explained

With **Monitoring: only new posts and comments** the actor remembers what it returned under the **Monitoring key** and returns only what is new. Subreddits are read newest first and the run stops at the first known posts, so a check without news costs one page per subreddit (two with its community row; turn on **Skip community rows** to save it). **Monitoring: report new comments on known posts** also reads posts seen before whose comment count went up.

### How much does it cost to scrape Reddit?

| | Price |
|---|---|
| Post, community or user row | **$0.95 per 1,000** (Bronze $0.85, Silver $0.71, Gold and higher $0.59) |
| Comment row | **$0.74 per 1,000** (Bronze $0.64, Silver $0.50, Gold and higher $0.38) |
| Run start | $0.003 per run |
| Extra page | $0.10 per 1,000 requests that saved nothing (a search with no results, posts all left out by your filters) |
| Monitoring page | $0.10 per 1,000 pages read in monitoring mode |
| Notification | $0.001 per run that sent a notification |

Examples: 1,000 posts cost about **$0.95**, 1,000 posts with 10 comments each **$8.35**, 10,000 comments of one discussion **$7.40**. A daily monitoring check of a keyword with 5 new posts costs about **$0.008**, about $0.24 a month. With the $5 of free monthly credit on the Apify free plan you get about **5,200 posts**.

Rows left out by your filters and rows already returned in monitoring are never charged. If the saved rows don't cover a run's own cost (e.g. a search with no results), the difference is charged as extra pages; the log says how many. A normal run pays nothing more. You can set a **maximum cost per run**; the run then stops before it is spent.

### Input example

```json
{
  "startUrls": [{ "url": "https://www.reddit.com/r/Python/" }],
  "maxItems": 20
}
```

### Output example

```json
{
  "id": "t3_1y1lfmh",
  "parsedId": "1y1lfmh",
  "dataType": "post",
  "source": "reddit",
  "url": "https://www.reddit.com/r/Python/comments/1y1lfmh/pyinstall_onedir_vs_onefile/",
  "title": "pyinstall --onedir vs --onefile",
  "body": "Which one better? Currently I am using --onefile. But facing some tmpfs problem. What do you suggest?",
  "link": null,
  "domain": "self.Python",
  "username": "Extreme_Being7689",
  "userId": "t2_2pk6jci1cm",
  "communityName": "r/Python",
  "parsedCommunityName": "Python",
  "communityId": "t5_2qh0y",
  "createdAt": "2026-11-21T02:11:05Z",
  "upVotes": 17,
  "upVoteRatio": 0.87,
  "numberOfComments": 16,
  "awardCount": 0,
  "postType": "text",
  "flair": "Discussion",
  "over18": false,
  "isStickied": false,
  "language": "en",
  "imageUrls": [],
  "ageHours": 31.9,
  "scorePerHour": 0.53,
  "commentsPerHour": 0.5,
  "engagementTotal": 33,
  "sourceUrl": "https://www.reddit.com/r/Python/",
  "scrapedAt": "2026-11-23T10:06:32Z"
}
```

A comment row has `dataType: "comment"`, `body`, `username`, `upVotes`, `depth`, `parentId`, `postId`, `postTitle` and `postUrl`.

### Limitations

- **About 1,000 posts per order:** Reddit shows about 1,000 posts of a subreddit in one order and about 250 results of a search. **Go past the 1,000-post limit** reads more orders of a subreddit (pages that bring only posts already saved are charged as extra pages); for searches, split them by time or by subreddit. Older history than that is not available on Reddit itself.
- **Member counts:** Reddit no longer shows how many members a subreddit has; community rows have its weekly visitors and contributions instead.
- **Search results** show titles only on Reddit; **Add post text to search results** (on by default) reads each found post for its text, link and media (one more request per post). Upvote ratio, awards and flair are not in search results, and not in a post given by its URL (they come with posts read from subreddits and user profiles).
- **NSFW posts:** Reddit hides most NSFW posts from visitors without an account, so they rarely appear even with **Include NSFW posts** on.
- **User search** is not available without an account; give **Usernames** instead.
- **Private, quarantined and banned** subreddits and suspended users are reported as not found.
- **Share links** (`/r/…/s/…`) have to be opened once in a browser to get the post URL.
- **Sentiment** is a simple English word list, a quick signal for trends, not a language model.

### For AI agents and API users

- Call the actor with the input above through the Apify API, the Apify MCP server or any integration; results are in the default dataset, the trend summary in the `TREND_SUMMARY` record of the key-value store.
- Use `"maxItems"`, `"skipComments": true` and `"fetchPostDetails": false` for short, fast answers.
- Input errors (a URL that is not Reddit, a wrong date) end the run before anything is read, with a message that says what to change.

### Troubleshooting

- **"not a Reddit subreddit, post, user or search URL"**: use a URL such as `https://www.reddit.com/r/Python/`, `https://www.reddit.com/r/Python/comments/abc123/` or `https://www.reddit.com/user/spez/`.
- **Fewer rows than expected:** check **Max items** (default 50), **Max posts per source** (default 25), **Max comments per post** (default 10) and your filters (the status message counts the rows each filter left out).
- **"Reddit is rejecting requests"**: rejected requests are asked again a little later; if rejections continue, the run stops with what it has saved and says so. Run it again later.

### Integrations

Connect the results to the tools you already use with the built-in integrations of Apify (the **Integrations** tab of the actor or of a saved task), with no code:

- **Google Sheets or Google Drive:** the results of every run in a spreadsheet or a file.
- **Zapier, Make and n8n:** start a workflow when a run finishes, or start the actor from one.
- **Slack or e-mail:** a message from Apify when a run finishes or fails.
- **Webhooks:** your own address gets the details of each run.
- **API and MCP:** run the actor from your code, or let an AI assistant run it through the Apify MCP server.

The results also download as Excel, CSV, JSON or XML from the **Output** tab.

### Privacy and error reports

When a run fails, the actor sends its developer a short error report: the error, the run ID and your input with secrets left out (tokens, webhooks, e-mails and similar values are hidden). Your results are never sent. Reports are deleted after at most 120 hours (5 days). To send nothing, turn off **Send error reports** (`sendErrorReports: false`). Questions about your data: open an issue in the **Issues** tab of this actor.

### WhatsApp notifications: setup

The actor sends the message from your own WhatsApp business number through the WhatsApp Cloud API of your Meta business account. You need a Meta business account; the actor uses only the values you enter in the **Notifications** section (the token and the numbers are stored encrypted and never written to the log).

1. **Create an app.** In Meta for Developers open **My Apps → Create app** and choose the use case **Connect with customers through WhatsApp**.
2. **Get a sending number.** In the app open **WhatsApp → API Setup**. You can start with the test number Meta gives you and add your own business number there later. Copy the **Phone number ID** (not the number itself) into **WhatsApp phone number ID**.
3. **Confirm the recipients (test number only).** A test number sends only to numbers on its list: in **API Setup**, under **To**, add each recipient's number and confirm it with the code WhatsApp sends to it.
4. **Create a permanent access token.** The token shown in API Setup expires within hours. In **Business settings → System users** add a system user, use **Assign assets** to give it your app (and your WhatsApp account), then **Generate token** for the app with the permissions `whatsapp_business_messaging` and `whatsapp_business_management` and the expiry you want. Paste it into **WhatsApp access token**.
5. **Create a message template (recommended).** In **WhatsApp Manager → Message templates → Create template** choose the category **Utility**, a name (e.g. `apify_results`) and a language, and write a body with two variables, for example: `New results of your Apify task: {{1}} Open the dataset: {{2}} (sent automatically after each run).` Meta does not accept a body that starts or ends with a variable and asks for sample values (e.g. `3 new jobs` and a dataset link); keep the text factual, a promotional text is moved to the Marketing category. Approval can take up to 24 hours. Enter the name in **WhatsApp template name** and its language code (e.g. `en_US`, `cs`, `pl`, `de`, as WhatsApp Manager shows it) in **WhatsApp template language**.
6. **Enter the recipients.** **WhatsApp recipient number** takes up to 5 numbers with the country code (e.g. `+420601234567`), separated by commas or new lines. Each number gets its own message.

**What the message contains.** With a template: `{{1}}` is the run summary with the first results on one line (title, company or price, place; never descriptions or contacts) and `{{2}}` the link to the dataset. A template with only `{{1}}` works too, it then gets the link at the end. Without a template the actor sends a text message with one link per result, like in Slack or Telegram.

**Without a template** WhatsApp delivers the message only when the recipient wrote to your business number in the last 24 hours (the customer service window), so a daily or hourly schedule needs a template. The run log says so once per run.

**What it costs.** Meta bills your business account, not this actor: per delivered message, by the message category (a template of the Utility category, or a service message for text in the 24-hour window, with a monthly free allowance per business number) and by the recipient's country. The current rates are in Meta's pricing of the WhatsApp Business Platform. The actor's own notification charge (see the **Pricing** tab) is once per run that delivered its notification, whatever the number of channels and recipients.

**Checked at the start.** When the run starts, the actor checks the token, the phone number ID and, when the token shows its WhatsApp account, the template (name, language, approval), without sending anything. Settings that can't work stop the run with a message that says what to fix, before anything is read from the website.

**When nothing arrives**, the run log names the WhatsApp error and what to do: a template that does not exist in that language or is not approved yet, a template with another number of variables, a recipient missing from the test number's list, an expired token, or the 24-hour window. A failed notification never fails the run and is not charged. Meta can accept a message and still not deliver it later (for example when the recipient's phone is not on WhatsApp); such a run counts as notified.

### More news, social and trend scrapers

The same clean output and alerts for another news, social or trend source:

- [Google Trends Scraper](https://apify.com/tsutseisoftware/google-trends-scraper): interest over time, by region and city, related queries, Trending now, keyword alerts and more than 5 terms on one scale
- [Google News Scraper](https://apify.com/tsutseisoftware/google-news-scraper): articles for any search, topic or country with the real publisher URL, full text and new article alerts
- [Telegram Channel Scraper](https://apify.com/tsutseisoftware/telegram-channel-scraper): posts of public Telegram channels with views, reactions and media, any date range, new, edited and deleted post alerts
- [Spotify Scraper](https://apify.com/tsutseisoftware/spotify-scraper): monthly listeners, play counts, top cities, playlists, charts with streams and concerts without login, daily growth and change alerts

### FAQ

#### Is it legal to scrape Reddit?

It reads only public posts and comments that Reddit shows to any visitor without logging in, at a polite pace. Rows include the public Reddit username of the author, as every Reddit scraper does; usernames can be personal data, so you are responsible for processing them lawfully (e.g. GDPR in the EU). Make sure your use respects Reddit's terms and the law that applies to you. This actor is not affiliated with Reddit.

#### Do I need a Reddit account, API key or cookies?

No. Nothing to log in, no API application, no proxy.

#### How is it different from other Reddit scrapers?

It accepts the input of the most used Reddit scraper, works without a login token, returns upvote ratio, awards and flair, goes past the 1,000-post limit of a subreddit, watches keywords, subreddits and threads for new posts and comments with alerts, and adds a free trend summary, for $0.42 per 1,000 posts and $0.16 per 1,000 comments with no extra platform costs.

#### Can I get comments only?

Yes: search for comments (**Search for comments** with **Search for posts** off), or give a post URL and read its comments.

#### Can I use it from an AI agent or through MCP?

Yes. The actor works with the Apify MCP server and API.

***

More scrapers from the same developer: [tsutseisoftware on Apify](https://apify.com/tsutseisoftware).

Also known as a Reddit API alternative, subreddit scraper, Reddit comments scraper, Reddit keyword monitor, Reddit search scraper.

# Actor input Schema

## `startUrls` (type: `array`):

Subreddits (with any order and time in the URL, e.g. /r/Python/top/?t=week), posts, comment links, users (/user/spez/, /user/spez/comments/) and searches (/search/?q=…, /r/Python/search/?q=…). The front page (https://www.reddit.com/) reads r/popular.

## `searches` (type: `array`):

Search Reddit like its search box. Reddit's query syntax works (e.g. "title:python", "author:spez", "flair:Discussion", OR, -word, "exact phrase").

## `subreddits` (type: `array`):

Subreddit names (Python, r/Python): their posts in the chosen order, and their community row.

## `usernames` (type: `array`):

Reddit users (spez, u/spez): their profile row, posts and comments.

## `maxItems` (type: `integer`):

The most rows to save in the run: posts, comments, communities and users together (0 = no limit).

## `searchCommunityName` (type: `string`):

Search only in this subreddit (e.g. Python). Empty = all of Reddit.

## `searchPosts` (type: `boolean`):

The search terms find posts.

## `searchComments` (type: `boolean`):

The search terms also find comments (with their post title and link).

## `searchCommunities` (type: `boolean`):

The search terms also find subreddits (description, weekly visitors and contributions).

## `searchUsers` (type: `boolean`):

Not available on Reddit without an account; give "Usernames" instead. Kept so that existing inputs still run.

## `sort` (type: `string`):

Order of subreddits and searches (a URL with its own order keeps it). Relevance and most comments apply to searches, rising, controversial and best to subreddits.

## `time` (type: `string`):

Time range of "Top" and "Controversial" and of searches.

## `maxPostCount` (type: `integer`):

The most posts from each subreddit, search or user (0 = no limit). Reddit shows about 1,000 posts of a subreddit in one order and about 250 results of a search.

## `maxComments` (type: `integer`):

The most comments of each post (0 = none). Replies are read in thread order, so a high number gives the whole discussion.

## `maxCommunitiesCount` (type: `integer`):

With "Search for communities": the most subreddits of each search (0 = no limit).

## `maxUserCount` (type: `integer`):

The most users read from "Usernames" and user URLs (0 = no limit).

## `skipComments` (type: `boolean`):

Posts only, no comments (faster and cheaper).

## `skipUserPosts` (type: `boolean`):

For users: the profile row (and comments), without their posts.

## `skipCommunity` (type: `boolean`):

For subreddits: only the posts, without the row about the community.

## `maximizeCoverage` (type: `boolean`):

Reddit shows about 1,000 posts of a subreddit in one order. This reads the subreddit in several orders (new, hot, top of every period, controversial, rising) and keeps each post once; pages with only posts already saved are charged as extra pages.

## `fetchPostDetails` (type: `boolean`):

Reddit's search shows titles only; this reads each found post for its text, link, media and comment count (one request per post).

## `commentSort` (type: `string`):

Order of the comments of a post.

## `maxCommentDepth` (type: `integer`):

Only comments up to this depth (1 = top-level comments only, 0 = all levels).

## `postedAfter` (type: `string`):

Only posts from this date or time on: 2026-11-01, 2026-11-01T08:00:00Z or relative "1 day", "24 hours", "2 weeks". Sorted by new, the run stops at the first older post.

## `postedBefore` (type: `string`):

Only posts older than this (same forms as "Posted after").

## `postDateLimit` (type: `string`):

Kept so that existing inputs still run: the same as "Posted after".

## `commentDateLimit` (type: `string`):

Only comments from this date or time on (same forms as "Posted after").

## `includeNSFW` (type: `boolean`):

Posts marked NSFW (over 18) are saved too.

## `filterKeywords` (type: `array`):

Only posts and comments with these words (title and text), see "Keyword match".

## `filterKeywordMode` (type: `string`):

How "Keywords" must match.

## `excludeKeywords` (type: `array`):

Leave out posts and comments with any of these words.

## `minScore` (type: `integer`):

Only posts and comments with at least this score (upvotes).

## `minComments` (type: `integer`):

Only posts with at least this many comments.

## `flairs` (type: `array`):

Only posts with one of these flairs (e.g. Discussion).

## `excludeAuthors` (type: `array`):

Leave out posts and comments of these users (e.g. AutoModerator).

## `skipStickied` (type: `boolean`):

Leave out posts pinned by the moderators.

## `languages` (type: `array`):

Only posts in these languages, as Reddit detects them (two-letter codes: en, de, es…).

## `onlyNew` (type: `boolean`):

Return only posts, comments, communities and users not returned by earlier runs with the same "Monitoring key". Subreddits are then read newest first and the run stops at known posts.

## `monitoringKey` (type: `string`):

Name of the remembered state; use one per watched topic (empty = default).

## `watchComments` (type: `boolean`):

Also read posts seen before whose comment count went up and return their new comments. Post URLs in "Reddit URLs" are always watched like this in monitoring (thread tracking).

## `resetMonitoring` (type: `boolean`):

Forget the state of earlier runs (everything is new again).

## `includeSentiment` (type: `boolean`):

A simple English word-list sentiment of each post and comment (score -1 to 1 and a label), also summed up in the trend summary.

## `telegramBotToken` (type: `string`):

Token of your bot from @BotFather.

## `telegramChatId` (type: `string`):

Chat to send to.

## `slackWebhookUrl` (type: `string`):

Incoming webhook (https://hooks.slack.com/...).

## `discordWebhookUrl` (type: `string`):

Webhook of your Discord channel (https://discord.com/api/webhooks/...). In Discord: channel settings → Integrations → Webhooks → Copy Webhook URL. Stored encrypted.

## `webhookUrl` (type: `string`):

Any HTTPS URL (Zapier, Make, n8n, your server): receives the rows as JSON.

## `whatsappAccessToken` (type: `string`):

Access token of the WhatsApp Cloud API of your Meta business account, used with "WhatsApp phone number ID" and "WhatsApp recipient number" (step by step in the README, section "WhatsApp notifications: setup"). For scheduled runs use a permanent token of a system user: Business settings → System users → Generate token, with the permissions whatsapp_business_messaging and whatsapp_business_management; the token of WhatsApp → API Setup expires within hours. Stored encrypted.

## `whatsappPhoneNumberId` (type: `string`):

ID of your WhatsApp business number that sends the message (not the number itself), e.g. 106540352242922. In your Meta app: WhatsApp → API Setup → Phone number ID.

## `whatsappTo` (type: `string`):

Phone number that gets the message, in international format with the country code (e.g. +420601234567); up to 5 numbers separated by commas or new lines, each gets its own message and the notification is charged once per run. A test number of Meta sends only to numbers you added and confirmed under API Setup → To. Stored encrypted.

## `whatsappTemplateName` (type: `string`):

Name of your approved message template (WhatsApp Manager → Message templates, e.g. apify_results), recommended: WhatsApp delivers a template message at any time. Its body gets the run summary with the first results in {{1}} and the dataset link in {{2}} (a template with only {{1}} gets both in {{1}}). Empty: a plain text message, which WhatsApp delivers only when the recipient wrote to your business number in the last 24 hours, so a scheduled run usually needs a template. Meta charges your business account for template messages (step by step in the README, section "WhatsApp notifications: setup").

## `whatsappTemplateLanguage` (type: `string`):

Language code of the template exactly as WhatsApp Manager → Message templates shows it next to the template, e.g. en_US, en_GB, cs, sk, pl or de. Used only with "WhatsApp template name".

## `notificationLimit` (type: `integer`):

How many posts and comments the message lists.

## `notifyOnlyChanges` (type: `boolean`):

No message after a run that saved nothing.

## `exportFormats` (type: `array`):

Off by default. Printable HTML report: the results as a clean, branded table with the main columns, made for printing, saving as PDF or sending to someone; for working with the data use Excel or CSV, which have every field. Markdown table: the same columns as text for AI tools, docs or GitHub. The Output tab links the files. Each file has the overview columns of every saved row and nothing is left out, so a run with tens of thousands of rows makes a file of tens of MB that can be slow to open; for big runs use the dataset or its Excel export. Excel (XLSX), CSV and JSON are always in the Output tab and under Export, at no extra cost.

## `proxy` (type: `object`):

No proxy needed: the actor reads Reddit directly. Kept so that existing inputs still run.

## `debugMode` (type: `boolean`):

Kept so that existing inputs still run; it has no effect.

## `sendErrorReports` (type: `boolean`):

When a run fails, send the developer a short error report: the error and your input with secrets left out (tokens, webhooks and e-mails are hidden). Your results are never sent. Reports are deleted after at most 120 hours. Turn off to send nothing.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/Python/"
    }
  ],
  "maxItems": 20,
  "searchPosts": true,
  "searchComments": false,
  "searchCommunities": false,
  "searchUsers": false,
  "sort": "new",
  "time": "all",
  "maxPostCount": 25,
  "maxComments": 10,
  "maxCommunitiesCount": 10,
  "maxUserCount": 10,
  "skipComments": false,
  "skipUserPosts": false,
  "skipCommunity": false,
  "maximizeCoverage": false,
  "fetchPostDetails": true,
  "commentSort": "confidence",
  "maxCommentDepth": 0,
  "includeNSFW": true,
  "filterKeywordMode": "any",
  "skipStickied": false,
  "onlyNew": false,
  "watchComments": false,
  "resetMonitoring": false,
  "includeSentiment": false,
  "whatsappTemplateLanguage": "en_US",
  "notificationLimit": 10,
  "notifyOnlyChanges": true,
  "exportFormats": [],
  "proxy": {
    "useApifyProxy": false
  },
  "debugMode": false,
  "sendErrorReports": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `excel` (type: `string`):

All saved rows as an Excel file, with every field.

## `trendSummary` (type: `string`):

Rows per day, top communities and authors, sentiment share and the top posts of the run (JSON).

## `htmlReport` (type: `string`):

The saved rows with the main columns as a clean table to print, save as PDF or send; only when "Extra export formats" includes it. Excel has every field.

## `markdown` (type: `string`):

The saved rows as a Markdown table, handy for AI tools, docs and GitHub; only when "Extra export formats" includes Markdown.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.reddit.com/r/Python/"
        }
    ],
    "maxItems": 20,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tsutseisoftware/reddit-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.reddit.com/r/Python/" }],
    "maxItems": 20,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tsutseisoftware/reddit-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/Python/"
    }
  ],
  "maxItems": 20,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call tsutseisoftware/reddit-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tsutseisoftware/reddit-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EDbN5Ewd4o8fatLsP/builds/0gkWGTr4PjQchWJg8/openapi.json
