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

Reddit Email Scraper SD - Reddit Email Scraper is a lead generation tool that extracts leads with public contact emails, account names and profile URLs from Reddit results by keyword, location and email domain - Reddit email extractor.

- **URL**: https://apify.com/leads-scraper/reddit-email-scraper.md
- **Developed by:** [Leads Scraper](https://apify.com/leads-scraper) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Reddit Email Scraper

### Reddit Email Scraper

The **Reddit Email Scraper** is an Apify Actor that collects publicly indexed contact emails from Reddit threads, comments and profiles. Give it keywords, get back a structured dataset of leads.

Reddit is where people post "for hire", "hiring", "DM me" and "email me at ...". Those addresses sit in threads that Google has indexed, and this Reddit Email Scraper finds and extracts them.

**Important, read this first:** most Reddit results are threads rather than profiles, so rows are often labelled with a subreddit instead of a user handle. You will frequently see `accountName` values like `r/forhire` with an empty `username`. That is normal Reddit behaviour, not a bug.

Reddit does not publish account emails. Every address the Reddit Email Scraper returns is one a person typed into a public post, comment or profile description themselves.

If you have ever hand-typed `site:reddit.com "for hire" "@gmail.com"` into Google, the Reddit Email Scraper is that workflow automated, expanded across dozens of phrasings, deduplicated and exported.

The Reddit Email Scraper never logs in, never opens reddit.com, and never uses Reddit's API. All data comes from publicly indexed Google search results.

***

### Key Features of the Reddit Email Scraper

| Feature | What it means in practice |
|---|---|
| Google-powered data collection | Queries use the `site:reddit.com` operator, fetched through the Apify GOOGLE\_SERP proxy |
| Query expansion | Each keyword x email-domain pair is searched as a base query, a quoted phrase, an `intitle:` query, and one variant per modifier |
| Reddit-tuned modifiers | Defaults are `email me`, `contact`, `dm me`, `hiring`, `for hire` — the phrasings Redditors actually use |
| Domain filtering | Only emails on the domains you list are kept |
| Global deduplication | One row per unique address across every query and page |
| Obfuscation handling | Parses `name [at] domain [dot] com`, `name (at) domain`, `name @ domain.com`, zero-width characters and the full-width `＠` |
| Junk filter | Rejects placeholders such as `email@`, `yourname@`, `test@`, `xxx@` and single-character locals |
| Boundary-correct matching | `@gmail.com` does not match inside `@gmail.company` or `@gmail.com.br` |
| Subreddit label handling | An `r/subreddit` label is resolved to its canonical subreddit URL; a `u/handle` label resolves to a user profile URL |
| Structural parser | Locates each result's `<h3>` and the smallest surrounding block instead of relying on Google's CSS class names |
| Fallback parser | A markup change degrades to "emails without account details" rather than zero results |
| Concurrency control | An `asyncio` worker pool runs queries in parallel with a shared stop signal |
| Retry logic | Up to 3 attempts per page, exponential backoff, fresh proxy session per request |
| Block detection | CAPTCHA, "unusual traffic" and consent pages are detected and retried, not treated as empty |
| Blocked-query requeue | Failed queries are retried once more at the end of the run |
| Resumable state | Input-keyed checkpoints in the key-value store, saved on `PERSIST_STATE`, `MIGRATING` and `ABORTING` |
| Streaming output | Every lead is pushed to the dataset immediately |
| Run summary | Pages fetched, blocked pages, retries and emails per page are logged |

Reddit's index is enormous and noisy, which is why the junk filter and the deduplication step carry so much weight in the Reddit Email Scraper.

Without them, a broad crawl of Reddit threads would return the same address dozens of times alongside a pile of template placeholders.

***

### How the Reddit Email Scraper Works

The Reddit Email Scraper is a search-engine crawler, not a Reddit client.

1. **Read input.** Keywords, location, email domains, caps and concurrency.
2. **Build queries.** `site:reddit.com` plus your keyword, the quoted email domain, and any location phrase.
3. **Fetch search results.** Asynchronous `aiohttp` requests through the Apify GOOGLE\_SERP proxy.
4. **Parse structurally.** Each result block is located from its `<h3>` title outward.
5. **Extract emails.** A domain-filtered regex runs over the block text, with normalisation and the junk filter applied.
6. **Deduplicate and push.** New addresses go into a global set and straight to the Apify dataset.

Base queries run before expanded variants, so the strongest matches land in the dataset first.

Pagination continues per query until the page cap, the email cap, or a run of pages producing nothing new. That stop rule keeps the Reddit Email Scraper from burning compute on exhausted queries.

***

### What Data Does It Extract?

Each row the Reddit Email Scraper writes is one email address plus the account context Google printed beside it.

For thread results, that context is usually a subreddit label such as `r/forhire`, resolved to a subreddit URL, with the post title and snippet attached.

For profile-shaped results, you get a `u/handle`, a display name where one is parsed, and a `https://www.reddit.com/user/{username}/` profile URL.

Every row carries provenance too: the keyword that produced it and the exact Google query used, which makes segmentation and attribution simple.

This structured-data design is what separates the Reddit Email Scraper from a raw email list: you always know where a lead came from.

***

### Input Fields

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | array (required) | `["founder", "freelancer"]` | Search terms describing the Reddit users or threads you want |
| `location` | string | `""` | Optional location phrase added to every query |
| `customDomains` | array | `["@gmail.com", "@yahoo.com"]` | Only emails on these domains are kept; leading `@` optional |
| `maxEmails` | integer (1-10000) | `20` | Stop once this many unique emails are collected |
| `countryCode` | string | `""` | Two-letter country code for the search proxy (US, GB, DE...) |
| `expandQueries` | boolean | `true` | Search each keyword x domain pair in several phrasings |
| `queryModifiers` | array | `["email me", "contact", "dm me", "hiring", "for hire"]` | Extra words combined with each keyword when expansion is on |
| `maxPagesPerQuery` | integer (1-50) | `30` | Page cap per query |
| `maxConcurrency` | integer (1-20) | `5` | How many queries run in parallel |

The Reddit-specific modifiers matter. `for hire` and `hiring` map directly onto the subreddits where people publish contact addresses on purpose.

All input to the Reddit Email Scraper can be set in the Apify Console form or passed as JSON through the API.

***

### Output Schema

Every dataset item produced by the Reddit Email Scraper contains all fourteen fields below.

| Field | Meaning |
|---|---|
| `network` | Platform name |
| `keyword` | The keyword that produced the lead |
| `query` | The exact Google query used |
| `title` | Raw result title |
| `accountName` | Account label Google prints — on Reddit this is often a subreddit such as `r/forhire` |
| `fullName` | Display name parsed from a profile-style title; empty for post titles |
| `username` | URL-safe handle when Reddit exposes one; otherwise `null` |
| `profileUrl` | `https://www.reddit.com/user/{username}/` for a user, or the subreddit URL for an `r/` label |
| `url` | Direct Reddit link when exposed, else the profile URL |
| `description` | Post or bio snippet, cleaned of labels and engagement counters |
| `email` | Lower-cased email address |
| `emailDomain` | The matched domain, e.g. `@gmail.com` |
| `possiblyTruncated` | `true` when Google's snippet ellipsis touched the email |
| `foundAt` | ISO 8601 UTC timestamp |

Export the Reddit Email Scraper dataset as JSON, CSV, Excel, XML or HTML, or read it over the Apify API.

The output schema is identical on every run, so downstream ingestion into a CRM stays predictable.

***

### Example Input and Output

A realistic Reddit Email Scraper configuration for sourcing freelancers.

#### Input

```json
{
  "keywords": ["freelance developer", "video editor", "SaaS founder"],
  "location": "",
  "customDomains": ["@gmail.com", "@proton.me"],
  "maxEmails": 300,
  "countryCode": "US",
  "expandQueries": true,
  "queryModifiers": ["email me", "contact", "dm me", "hiring", "for hire"],
  "maxPagesPerQuery": 30,
  "maxConcurrency": 6
}
```

#### Output

Two rows, showing the two shapes you will actually see. The first is a thread labelled with a subreddit; the second is a profile-shaped result.

```json
[
  {
    "network": "Reddit",
    "keyword": "video editor",
    "query": "site:reddit.com video editor \"@gmail.com\" for hire",
    "title": "[For Hire] Video editor, 4 yrs experience, fast turnaround : r/forhire",
    "accountName": "r/forhire",
    "fullName": "",
    "username": null,
    "profileUrl": "https://www.reddit.com/r/forhire/",
    "url": "https://www.reddit.com/r/forhire/",
    "description": "4 years editing YouTube long-form and Shorts. Portfolio on request. Reach me at dan.edits.work@gmail.com",
    "email": "dan.edits.work@gmail.com",
    "emailDomain": "@gmail.com",
    "possiblyTruncated": false,
    "foundAt": "2026-08-31T11:03:18Z"
  },
  {
    "network": "Reddit",
    "keyword": "SaaS founder",
    "query": "site:reddit.com SaaS founder \"@gmail.com\" contact",
    "title": "Priya Raman (u/priya_builds) - Reddit",
    "accountName": "u/priya_builds",
    "fullName": "Priya Raman",
    "username": "priya_builds",
    "profileUrl": "https://www.reddit.com/user/priya_builds/",
    "url": "https://www.reddit.com/user/priya_builds/",
    "description": "Building a analytics SaaS in public. Partnerships: priya.builds@gmail.com",
    "email": "priya.builds@gmail.com",
    "emailDomain": "@gmail.com",
    "possiblyTruncated": false,
    "foundAt": "2026-08-31T11:04:55Z"
  }
]
```

***

### How to Use the Reddit Email Scraper

1. Open the Reddit Email Scraper on Apify and click **Try for free**.
2. Replace the default keywords with your target roles or niches, for example `logo designer`, `bookkeeper`, `Shopify developer`.
3. Keep or edit `queryModifiers`. `for hire` and `email me` are the highest-yield phrases on Reddit.
4. Set `customDomains` to the providers your audience actually uses.
5. Set `maxEmails` for the list size you need.
6. Run it, then export the dataset as CSV or read it over the Apify API.

**Tip:** think in subreddit language. `r/forhire` posts say "for hire", not "freelance services", so match the vocabulary the community uses.

**Tip:** because thread rows dominate, sort your export by `username` to separate the profile-level leads from the thread-level ones.

**Tip:** run the Reddit Email Scraper with narrow, role-specific keywords. Broad terms like `marketing` return threads that mention an address without belonging to the person you want.

***

### Use Cases

| Use case | How the Reddit Email Scraper helps |
|---|---|
| Freelancer sourcing | Collect contact addresses from `for hire` posts across niche subreddits |
| Recruiting | Find candidates who published an email while job hunting |
| Community-led lead generation | Reach people actively discussing the problem your product solves |
| Founder and indie-hacker outreach | Contact builders posting in startup and SaaS communities |
| Beta tester recruitment | Find users volunteering to test tools in your category |
| Agency prospecting | Identify businesses asking for help publicly |
| Customer research | Reach people with lived experience of a specific pain point |
| Partnership development | Contact moderators and organisers who list a business address |
| CRM enrichment | Attach a contact channel to Reddit handles you already track |
| Market and sentiment research | Map which subreddits generate contact-shaped conversations in your vertical |

***

### Why Use This Reddit Email Scraper

Reddit search itself will not give you contact details, and manual Google dorking stops working fast. Google caps a single query at roughly 300 results.

Query expansion is the workaround, and the Reddit Email Scraper does it systematically: base, quoted, `intitle:` and one variant per modifier, across every keyword and domain pair.

Extraction inside the Reddit Email Scraper is stricter than a plain regex. Obfuscated addresses are normalised, placeholders like `test@gmail.com` are rejected, and soft-wrapped fragments are collapsed.

Leads stream into the dataset as they are found, so an aborted Reddit Email Scraper run still leaves usable data, and resumable state means a restart continues where it stopped.

Reddit users are usually active elsewhere too. Pair this with the [X Email Scraper](https://apify.com/leads-scraper/x-email-scraper) and the [Discord Email Scraper](https://apify.com/leads-scraper/discord-email-scraper) to reach the same community-native audience on other networks.

For long-form writers and technical experts, the [Medium Email Scraper](https://apify.com/leads-scraper/medium-email-scraper) and [Quora Email Scraper](https://apify.com/leads-scraper/quora-email-scraper) cover overlapping ground.

Recruiting rather than marketing? The [LinkedIn Email Scraper](https://apify.com/leads-scraper/linkedin-email-scraper) complements Reddit sourcing well.

***

### Limitations

- **Thread rows, not profile rows.** Most Reddit results are threads rather than profiles, so rows are often labelled with a subreddit instead of a user handle, and `username` is frequently `null`.
- **Publicly indexed emails only.** Reddit does not expose account emails. The Reddit Email Scraper only finds addresses a person published in public text that Google indexed.
- **Google's result cap.** A single query returns roughly 300 results maximum. Query expansion mitigates this but does not remove it.
- **`possiblyTruncated`.** `true` means Google's snippet ellipsis touched the address. Verify those rows before sending.
- **Apify GOOGLE\_SERP proxy required.** The Actor cannot run without Apify proxy credentials.
- **Free-plan cap.** Free Apify plans are limited to 100 emails per run. Paid plans are uncapped.
- **Handle availability.** `username` and `profileUrl` populate only when Google exposes a handle. Rows may carry `accountName` and `fullName` with an empty `username`. That is a Google limitation, not a bug.
- **Variable yield.** Results depend on keywords, domains and location. No volume is guaranteed.

***

### Related Actors

The same engine behind the Reddit Email Scraper ships for every major network.

| Actor | What it collects |
|---|---|
| [Reddit Email and Phone Number Scraper](https://apify.com/leads-scraper/reddit-email-and-phone-number-scraper) | Emails and phone numbers from Reddit |
| [Reddit Phone Number Scraper](https://apify.com/leads-scraper/reddit-phone-number-scraper) | Public phone numbers from Reddit |
| [Behance Email Scraper](https://apify.com/leads-scraper/behance-email-scraper) | Public contact emails from Behance |
| [Bigo Live Email Scraper](https://apify.com/leads-scraper/bigo-live-email-scraper) | Public contact emails from Bigo Live |
| [Bluesky Email Scraper](https://apify.com/leads-scraper/bluesky-email-scraper) | Public contact emails from Bluesky |
| [Bumble Email Scraper](https://apify.com/leads-scraper/bumble-email-scraper) | Public contact emails from Bumble |
| [Clubhouse Email Scraper](https://apify.com/leads-scraper/clubhouse-email-scraper) | Public contact emails from Clubhouse |
| [Dailymotion Email Scraper](https://apify.com/leads-scraper/dailymotion-email-scraper) | Public contact emails from Dailymotion |
| [DeviantArt Email Scraper](https://apify.com/leads-scraper/deviantart-email-scraper) | Public contact emails from DeviantArt |
| [Discord Email Scraper](https://apify.com/leads-scraper/discord-email-scraper) | Public contact emails from Discord |
| [Dribbble Email Scraper](https://apify.com/leads-scraper/dribbble-email-scraper) | Public contact emails from Dribbble |
| [Facebook Email Scraper](https://apify.com/leads-scraper/facebook-email-scraper) | Public contact emails from Facebook |
| [Goodreads Email Scraper](https://apify.com/leads-scraper/goodreads-email-scraper) | Public contact emails from Goodreads |
| [Hinge Email Scraper](https://apify.com/leads-scraper/hinge-email-scraper) | Public contact emails from Hinge |
| [Instagram Email Scraper](https://apify.com/leads-scraper/instagram-email-scraper) | Public contact emails from Instagram |
| [KakaoTalk Email Scraper](https://apify.com/leads-scraper/kakaotalk-email-scraper) | Public contact emails from KakaoTalk |
| [Kick Email Scraper](https://apify.com/leads-scraper/kick-email-scraper) | Public contact emails from Kick |
| [Lemon8 Email Scraper](https://apify.com/leads-scraper/lemon8-email-scraper) | Public contact emails from Lemon8 |
| [Likee Email Scraper](https://apify.com/leads-scraper/likee-email-scraper) | Public contact emails from Likee |
| [LINE Email Scraper](https://apify.com/leads-scraper/line-email-scraper) | Public contact emails from LINE |
| [LinkedIn Email Scraper](https://apify.com/leads-scraper/linkedin-email-scraper) | Public contact emails from LinkedIn |
| [Mastodon Email Scraper](https://apify.com/leads-scraper/mastodon-email-scraper) | Public contact emails from Mastodon |
| [Medium Email Scraper](https://apify.com/leads-scraper/medium-email-scraper) | Public contact emails from Medium |
| [Mixcloud Email Scraper](https://apify.com/leads-scraper/mixcloud-email-scraper) | Public contact emails from Mixcloud |
| [Patreon Email Scraper](https://apify.com/leads-scraper/patreon-email-scraper) | Public contact emails from Patreon |
| [Pinterest Email Scraper](https://apify.com/leads-scraper/pinterest-email-scraper) | Public contact emails from Pinterest |
| [Quora Email Scraper](https://apify.com/leads-scraper/quora-email-scraper) | Public contact emails from Quora |
| [Rumble Email Scraper](https://apify.com/leads-scraper/rumble-email-scraper) | Public contact emails from Rumble |
| [Snapchat Email Scraper](https://apify.com/leads-scraper/snapchat-email-scraper) | Public contact emails from Snapchat |
| [SoundCloud Email Scraper](https://apify.com/leads-scraper/soundcloud-email-scraper) | Public contact emails from SoundCloud |
| [Substack Email Scraper](https://apify.com/leads-scraper/substack-email-scraper) | Public contact emails from Substack |
| [Telegram Email Scraper](https://apify.com/leads-scraper/telegram-email-scraper) | Public contact emails from Telegram |
| [Threads Email Scraper](https://apify.com/leads-scraper/threads-email-scraper) | Public contact emails from Threads |
| [TikTok Email Scraper](https://apify.com/leads-scraper/tiktok-email-scraper) | Public contact emails from TikTok |
| [Tinder Email Scraper](https://apify.com/leads-scraper/tinder-email-scraper) | Public contact emails from Tinder |
| [Tumblr Email Scraper](https://apify.com/leads-scraper/tumblr-email-scraper) | Public contact emails from Tumblr |
| [Twitch Email Scraper](https://apify.com/leads-scraper/twitch-email-scraper) | Public contact emails from Twitch |
| [Vimeo Email Scraper](https://apify.com/leads-scraper/vimeo-email-scraper) | Public contact emails from Vimeo |
| [VK Email Scraper](https://apify.com/leads-scraper/vk-email-scraper) | Public contact emails from VK |
| [WeChat Email Scraper](https://apify.com/leads-scraper/wechat-email-scraper) | Public contact emails from WeChat |
| [Weibo Email Scraper](https://apify.com/leads-scraper/weibo-email-scraper) | Public contact emails from Weibo |
| [X Email Scraper](https://apify.com/leads-scraper/x-email-scraper) | Public contact emails from X |

### FAQ

**What is the Reddit Email Scraper?**
An Apify Actor that collects publicly indexed contact emails from Reddit-related Google search results and returns them as structured data.

**Can the Reddit Email Scraper find a Reddit user's account email?**
No. Reddit does not publish account emails and this Actor has no access to them. It only finds addresses people typed into public posts, comments or profile text.

**Why do so many rows show a subreddit instead of a username?**
Most Reddit results are threads rather than profiles, so rows are often labelled with a subreddit such as `r/forhire`. That is expected on Reddit.

**Does the Reddit Email Scraper log into Reddit or use Reddit's API?**
No. No login, no cookies, no browser, no API. Everything comes from public Google search results.

**Do I need a proxy to run the Reddit Email Scraper?**
Yes. It requires the Apify GOOGLE\_SERP proxy and cannot run without Apify proxy credentials.

**Can I filter by email domain?**
Yes, via `customDomains`. Matching is boundary-correct, so `@gmail.com` never matches `@gmail.company`.

**How many emails can one Reddit Email Scraper run return?**
Free Apify plans are capped at 100 emails per run. Paid plans are uncapped, bounded by `maxEmails` and by how much Google has indexed.

**What does `possiblyTruncated: true` mean?**
Google's snippet ellipsis touched the address, so it may be cut off. Verify those rows before adding them to a campaign.

**Are the emails verified or deliverable?**
No. The Reddit Email Scraper extracts addresses exactly as published. Verify deliverability yourself.

**Which query modifiers work best in the Reddit Email Scraper?**
`for hire` and `email me` typically outperform generic terms, because those are the phrases Redditors write next to a contact address.

**Should I leave query expansion on?**
Yes. Google caps a single query at roughly 300 results, and expansion is how the Reddit Email Scraper reaches beyond that ceiling.

**Can I resume an interrupted Reddit Email Scraper run?**
Yes. Progress is checkpointed in the key-value store, keyed by an input hash, and restored on restart or migration.

***

### Support

Questions, a bug, or need a custom build of the Reddit Email Scraper? Email **neurodata.apify@gmail.com**.

# Actor input Schema

## `keywords` (type: `array`):

Search terms describing the Reddit accounts you want (niche, job title, industry).

## `location` (type: `string`):

Optional location phrase added to every query (e.g. "New York").

## `customDomains` (type: `array`):

Only emails ending with one of these domains are collected. With or without the leading @. Each domain is searched separately, so more domains means more results but a longer run - remove some for a faster, narrower search, or add your own (e.g. @company.com).

## `maxEmails` (type: `integer`):

Stop once this many unique emails have been collected.

## `countryCode` (type: `string`):

Two-letter country code for the search proxy (e.g. US, GB, DE). Empty for any.

## `expandQueries` (type: `boolean`):

Search each keyword x domain pair with several phrasings. Recommended - Google caps a single query at ~300 results.

## `queryModifiers` (type: `array`):

Extra words combined with each keyword when Expand queries is on. Tuned for Reddit.

## `maxPagesPerQuery` (type: `integer`):

Google rarely returns more than ~30 pages for one query.

## `maxConcurrency` (type: `integer`):

How many queries run in parallel.

## Actor input object example

```json
{
  "keywords": [
    "founder",
    "freelancer"
  ],
  "location": "",
  "customDomains": [
    "@gmail.com",
    "@yahoo.com",
    "@outlook.com",
    "@hotmail.com",
    "@icloud.com",
    "@aol.com",
    "@protonmail.com",
    "@live.com",
    "@gmx.com",
    "@mail.com",
    "@yandex.com",
    "@zoho.com"
  ],
  "maxEmails": 20,
  "countryCode": "",
  "expandQueries": true,
  "queryModifiers": [
    "email me",
    "contact",
    "dm me",
    "hiring",
    "for hire"
  ],
  "maxPagesPerQuery": 30,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Records produced by Reddit Email Scraper, stored in the run's default dataset.

# 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 = {
    "keywords": [
        "founder",
        "freelancer"
    ],
    "location": "",
    "customDomains": [
        "@gmail.com",
        "@yahoo.com",
        "@outlook.com",
        "@hotmail.com",
        "@icloud.com",
        "@aol.com",
        "@protonmail.com",
        "@live.com",
        "@gmx.com",
        "@mail.com",
        "@yandex.com",
        "@zoho.com"
    ],
    "countryCode": "",
    "queryModifiers": [
        "email me",
        "contact",
        "dm me",
        "hiring",
        "for hire"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leads-scraper/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 = {
    "keywords": [
        "founder",
        "freelancer",
    ],
    "location": "",
    "customDomains": [
        "@gmail.com",
        "@yahoo.com",
        "@outlook.com",
        "@hotmail.com",
        "@icloud.com",
        "@aol.com",
        "@protonmail.com",
        "@live.com",
        "@gmx.com",
        "@mail.com",
        "@yandex.com",
        "@zoho.com",
    ],
    "countryCode": "",
    "queryModifiers": [
        "email me",
        "contact",
        "dm me",
        "hiring",
        "for hire",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("leads-scraper/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 '{
  "keywords": [
    "founder",
    "freelancer"
  ],
  "location": "",
  "customDomains": [
    "@gmail.com",
    "@yahoo.com",
    "@outlook.com",
    "@hotmail.com",
    "@icloud.com",
    "@aol.com",
    "@protonmail.com",
    "@live.com",
    "@gmx.com",
    "@mail.com",
    "@yandex.com",
    "@zoho.com"
  ],
  "countryCode": "",
  "queryModifiers": [
    "email me",
    "contact",
    "dm me",
    "hiring",
    "for hire"
  ]
}' |
apify call leads-scraper/reddit-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leads-scraper/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/9bcosMhU894ajHTRc/builds/uybiVts1iYrY1RBwc/openapi.json
