# Reddit Email Scraper (`w3crawler/reddit-email-scraper`) Actor

Extract publicly displayed email addresses and Reddit post context from public pages.

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

## Pricing

from $2.99 / 1,000 emails

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Email Scraper

Extract **email addresses that are explicitly displayed in public Reddit pages or public Reddit search results**. Each dataset row ties one public email to bounded post context, permalink, author, subreddit, and timestamp when those values are visible. The Actor reads public pages over HTTP only, without login, private content, address guessing, or outreach.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/reddit-email-scraper) and select **Try for free**, or open the **Input** tab.
2. Supply at least one source: add public `reddit.com` profile, post, subreddit, or search URLs to `startUrls`, and/or phrases such as `gmail.com` to `queries`, which are sent to Reddit's public `search.rss` endpoint.
3. Set `maxItems` for the number of email rows you want; adjust `timeoutMs` only if pages are slow.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to see resolved source, email, and diagnostic counts.

### Input

No field is required, but a run without `startUrls` or `queries` has nothing to read and returns `NO_RESULTS`. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `startUrls` | object array | Optional | `[]` | Up to 20 objects with a `url` key pointing to an HTTPS `reddit.com` or subdomain profile, post, subreddit, or search page. |
| `queries` | string array | Optional | `[]` | Up to 10 unique search phrases, 2–120 characters each, used in `https://www.reddit.com/search.rss?q=...&sort=new&limit=100`. |
| `maxItems` | integer | Optional | `100` | Maximum deduplicated email rows saved, 1–1,000. |
| `timeoutMs` | integer | Optional | `20000` | Per-request timeout, 3,000–120,000 ms. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy or custom proxy settings. Direct HTTP access is used when omitted. |
| `userAgent` | string | Optional | `Mozilla/5.0 (compatible; RedditEmailScraper/1.0; +https://apify.com/)` | HTTP user-agent sent to public pages, 10–300 characters. |

Default values for the optional fields (proxy settings are omitted when not supplied):

```json
{
  "startUrls": [],
  "queries": [],
  "maxItems": 100,
  "timeoutMs": 20000,
  "userAgent": "Mozilla/5.0 (compatible; RedditEmailScraper/1.0; +https://apify.com/)"
}
```

`queries` entries are converted to `search.rss` URLs and combined with `startUrls`; duplicate resolved URLs are removed. The Actor parses Reddit JSON, HTML, or RSS responses and never follows an address or link outside `reddit.com`.

### Output

The dataset contains one row per unique email and source context. Only addresses explicitly present in the read page are emitted; values that Reddit does not expose, such as a missing author or timestamp, are omitted rather than inferred. Failed or empty sources are counted in `OUTPUT` and logs, never saved as dataset rows.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always | Row discriminator; always `reddit-public-email`. |
| `recordId` | string | Always | Stable hash-derived identity for the email and source context. |
| `sourceUrl` | string | Always | Requested public Reddit URL that produced the row. |
| `scrapedAt` | string | Always | UTC extraction time shared by the run's rows. |
| `email` | string | Always | One email address explicitly displayed in the public content, lowercased by the parser. |
| `emails` | string array | Always | Every unique email found in the same bounded Reddit context, up to 100, including `email`. |
| `postUrl` | string | Always | Public Reddit permalink associated with the email. |
| `redditUsername` | string | When published | Public Reddit username parsed from the post or feed entry. |
| `authorProfileUrl` | string | When published | Public author profile URL derived from the username. |
| `subreddit` | string | When published | Public subreddit name without the `r/` prefix. |
| `postId` | string | When published | Reddit post or comment identifier when the response exposes one. |
| `postTitle` | string | When published | Public post title, capped at 500 characters. |
| `context` | string | When published | Surrounding public text around the first email, capped at 500 characters. |
| `postedAt` | string | When published | Public post timestamp in ISO UTC when parseable. |

#### Full JSON output

This is a real saved row from the 2026-10-23 run, which searched public Reddit results for `gmail.com`. The email address and body are redacted here to remove personal contact information; all other fields are from the saved row. The parser lowercases matches.

```json
{
  "recordType": "reddit-public-email",
  "recordId": "reddit-public-email:16691f78eb264c779aa3",
  "sourceUrl": "https://www.reddit.com/search.rss?q=gmail.com&sort=new&limit=100",
  "scrapedAt": "2026-10-23T09:32:08.810Z",
  "email": "redacted@example.com",
  "emails": [
    "redacted@example.com"
  ],
  "redditUsername": "souraditya007",
  "authorProfileUrl": "https://www.reddit.com/user/souraditya007/",
  "subreddit": "CBSE_Humanities",
  "postId": "t3_1xd9b4q",
  "postTitle": "Looking to give tuitions Economics grade 9-12",
  "postUrl": "https://www.reddit.com/r/CBSE_Humanities/comments/1xd9b4q/looking_to_give_tuitions_economics_grade_912/",
  "context": "provide tuitions of economics from grade 9-12. The whole package along with the remunerations is subject to discussion and of the needs of the student. Please dm me or email me at redacted@example.com if interested. submitted by /u/souraditya007 to r/CBSE_Humanities [link] [comments]",
  "postedAt": "2026-10-23T09:27:24.000Z"
}
```

The same saved run produced four more rows. One post with five displayed addresses yielded one row per address, each carrying the same `emails` array; duplicate email-and-post combinations are removed before saving.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`. It reports resolved source and email counts; failure details remain in the actor log.

| Field | Meaning |
| --- | --- |
| `actorName` | Actor name. |
| `actorSlug` | Actor slug. |
| `actorStoreUrl` | Public Actor Store URL. |
| `generatedBy` | Build generator label recorded by the Actor. |
| `fingerprintApplied` | Whether a browser fingerprint was applied; always `false` for this HTTP Actor. |
| `recordType` | Summary record type; always `reddit-email-run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `requestedSources` | Number of resolved source URLs after adding one `search.rss` URL per query and removing duplicates. |
| `itemCount` | Email rows saved to the dataset. |
| `emailRecordCount` | Email rows saved; equals `itemCount`. |
| `diagnosticCount` | All source diagnostics, including sources with no public email or no input URLs, plus dataset write failures. |
| `datasetWriteFailureCount` | Rows that could not be written to the dataset. |
| `outputWriteFailureCount` | Failed summary-write attempts, normally `0`. |
| `uniqueEmails` | Distinct `email` values among the saved rows. |
| `proxyConfigured` | Whether a proxy configuration was created for the run. |
| `dataAvailable` | Whether at least one email row was saved. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | At least one row was saved and no source produced an operational failure or write failure. |
| `SUCCEEDED` | `PARTIAL` | At least one row was saved, but another source failed or a row could not be written. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | No row was saved and no operational failure occurred; empty or email-free sources count here. |
| `FAILED` | `FAILED` | No row was saved and at least one source failed operationally. |

Example `OUTPUT` from the saved run:

```json
{
  "actorName": "Reddit Email Scraper",
  "actorSlug": "reddit-email-scraper",
  "actorStoreUrl": "https://apify.com/w3crawler/reddit-email-scraper",
  "generatedBy": "OpenAI Codex with GPT-6",
  "fingerprintApplied": false,
  "recordType": "reddit-email-run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "requestedSources": 1,
  "itemCount": 5,
  "emailRecordCount": 5,
  "diagnosticCount": 0,
  "datasetWriteFailureCount": 0,
  "outputWriteFailureCount": 0,
  "uniqueEmails": 5,
  "proxyConfigured": true,
  "dataAvailable": true,
  "completedAt": "2026-10-23T09:32:11.266Z"
}
```

### Coverage and limitations

The Actor matches visible email-shaped text with a regular expression, lowercases and deduplicates matches, and filters placeholder domains such as `example.com` plus `noreply`/`no-reply` addresses. It does not guess addresses, de-obfuscate forms such as `name [at] domain`, follow `mailto:` or external links, enrich identities, or search outside the URLs and `search.rss` results you supply. Reddit search returns a limited recent result set per phrase, and a page must be publicly reachable without login or a challenge; private, quarantined, age-gated, deleted, or blocked content is not collected.

One row is emitted per email and source context, so the same address in two different posts produces two rows while an identical email-and-post pair is deduplicated. `maxItems` caps saved rows, not distinct addresses; `emails` can hold up to 100 addresses found in the same context. `context` is centered on the first email and truncated at 500 characters, so it may not include every address in `emails`. Author, subreddit, title, and timestamp are present only when the page or feed exposes them. Anti-bot blocks, timeouts, and empty sources are reported in the run summary and logs, never as fabricated rows.

Public email addresses are personal data in many jurisdictions. Collect only what you are permitted to use, secure the export, and honor removal requests.

### Usage and support

The Actor uses HTTP requests rather than a browser, so cost is driven by source count, response size, execution time, and optional proxy traffic; there is no per-email fee. Start with a single query or URL and a small `maxItems`, inspect the rows and `OUTPUT`, then scale. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/reddit-email-scraper/issues) to report a problem. Include the run ID, the input used (with addresses removed), and the run summary; do not include tokens, cookies, or private data. This Actor is not sponsored, endorsed, administered, or affiliated with Reddit, Inc., Apify, or any email provider. Use it only for public data and in accordance with Reddit's terms, robots guidance, and applicable law.

# Actor input Schema

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

Up to 20 public HTTPS reddit.com profile, post, subreddit, or search URLs.

## `queries` (type: `array`):

Up to 10 phrases used in Reddit's public search.rss endpoint; only email text inside returned public entries is extracted.

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

Maximum deduplicated public email records to emit.

## `timeoutMs` (type: `integer`):

Maximum time for each public page request.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy or custom proxy settings used for source requests.

## `userAgent` (type: `string`):

HTTP user-agent sent to public pages.

## Actor input object example

```json
{
  "startUrls": [],
  "queries": [],
  "maxItems": 100,
  "timeoutMs": 20000,
  "userAgent": "Mozilla/5.0 (compatible; RedditEmailScraper/1.0; +https://apify.com/)"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `output` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/reddit-email-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/reddit-email-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 '{}' |
apify call w3crawler/reddit-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/reddit-email-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/LunRqfhyKwfOQqMXh/builds/RjC8ztCU9yhdhPNh9/openapi.json
