# Yellow Pages Email Scraper - Keyword & Location Targeting (`scrapido/yellow-pages-email-scraper`) Actor

📒 Yellow Pages Email Scraper extracts local business emails by keyword and location. 🔓 Custom domain filtering, obfuscated-address decoding and dedup. 📤 Export Yellow Pages leads to CSV, JSON or Excel for SMB outreach.

- **URL**: https://apify.com/scrapido/yellow-pages-email-scraper.md
- **Developed by:** [Scrapido](https://apify.com/scrapido) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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.

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

### Yellow Pages Email Scraper 🔍

**Yellow Pages Email Scraper** helps you extract email addresses from Yellow Pages using keywords you choose—perfect for cutting out manual email hunting. It supports yellowpages email scraping for marketers, recruiters, and sales pros who need faster outreach lists. Use it as a local business directory email extractor and start scrape emails from Yellow Pages at scale.

***

### 🌟 Key Features of Yellow Pages Email Scraper

| Feature | Benefit |
|---|---|
| ✅ **Targeted Keyword Search** | Reach the exact Yellow Pages audience you need using your own keywords |
| ✅ **Location Filtering** | Narrow results to a specific city, region, or country for more relevant yellowpages email addresses |
| ✅ **Custom Domain Filter** | Extract only emails matching your selected domains like `@gmail.com`, `@yahoo.com`, or other domain lists |
| ✅ **Max Emails Control** | Cap how many emails are collected per run to keep runs predictable and cost-effective |
| ✅ **Bulk Export (Dataset)** | Save leads directly into an Apify dataset for easy export into your CRM or email tool |
| ✅ **Proxy-Ready** | Built-in proxy support for more reliable scraping during long runs |
| ✅ **Resilient Run Progress** | Saves progress as it goes, so you can resume instead of starting over |

***

### 📥 Input — Yellow Pages Email Scraper Parameters

```json
{
  "keywords": ["manager", "founder"],
  "location": "",
  "customDomains": ["@gmail.com", "@yahoo.com"],
  "maxEmails": 20
}
```

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `keywords` | Array | ✅ Yes | — | A list of keywords or queries used to find relevant Yellow Pages leads for email extraction |
| `location` | String | No | `""` | Location text to filter results (e.g., a city or region) |
| `customDomains` | Array | No | `["@gmail.com","@yahoo.com"]` | Email domains to keep (helps you filter emails from Yellow Pages to only what you want) |
| `maxEmails` | Integer | No | `20` | Maximum number of emails to collect in one run; the scraper stops when the limit is reached |

***

### 📤 Output — What Yellow Pages Email Scraper Returns

The actor saves each result as a JSON record in your Apify dataset.

```json
[
  {
    "keyword": "manager",
    "title": "Acme Plumbing & Heating Manager Directory Listing",
    "description": "Serving Springfield with licensed plumbing services. Contact details available on the listing.",
    "url": "https://www.yellowpages.com/springfield-il/mip/acme-plumbing-heating-123456789",
    "email": "contact@acmeplumbing.com"
  }
]
```

| Field | Type | Description |
|---|---|---|
| `keyword` | String | The search term that surfaced this result in your Yellow Pages email scraping run |
| `title` | String | Yellow Pages profile name or business title |
| `description` | String | Profile summary text (bio or description) associated with the listing |
| `url` | String | Direct link to the Yellow Pages profile |
| `email` | String | Email address extracted from the Yellow Pages listing |

***

### 💻 How to Use Yellow Pages Email Scraper — Step-by-Step

1. **Open the Actor** — Find **Yellow Pages Email Scraper** on [Apify Store](https://apify.com/store)
2. **Enter Keywords** — Add job titles, industries, or roles you want to target (used for Yellow Pages lead generation)
3. **Set Location** *(optional)* — Add a city or region to focus your scrape emails from Yellow Pages
4. **Filter by Domain** *(optional)* — Use `customDomains` to keep only emails from the domains you care about
5. **Set Max Emails** — Control run size with `maxEmails`
6. **Run the Actor** — Start the run and monitor progress in the logs
7. **Export Results** — Open the Apify dataset (Scraped Leads) and export as needed for CRM enrichment

***

### 💡 Best Use Cases for Yellow Pages Email Scraper

- 🎯 **B2B Lead Generation** — Build a Yellow Pages email list for targeted outbound outreach
- 📣 **Email Marketing** — Enrich campaigns with contact info data mining from directory listings
- 🤝 **Recruitment** — Reach managers and founders you can contact directly
- 🔬 **Market Research** — Collect email-bearing profiles for niche community research
- 📊 **CRM Enrichment** — Add scraped contact emails to existing segments

***

### Disclaimer

This actor accesses **publicly available data** on Yellow Pages for yellowpages email scraping. It does not access private profiles or password-protected information. You’re responsible for ensuring your use complies with applicable privacy laws (including GDPR/CCPA) and anti-spam requirements. Use this tool for legitimate purposes such as lead generation, research, and email outreach that follows local regulations. For data-removal requests, contact 📧 <scrapidocontact@gmail.com>.

***

### 🆘 Support & Feedback

Have a question or feedback about the **Yellow Pages Email Scraper**? We’re here to help.

- 🐞 **Bug Reports:** Share details with our team
- ✨ **Custom Solutions & Feature Requests:** Reach out for tailored help
- 📧 **Email:** <scrapidocontact@gmail.com>

Your feedback shapes improvements for better yellow pages email scraping results.

### Multiple Email Types

**Email Types** replaces the old single Audience Type choice: select as many
kinds of mailbox as you want and the run chases all of them together.

| Type | What it matches |
| --- | --- |
| Personal / free webmail | Gmail, Outlook, Yahoo, iCloud, AOL, Proton, ... |
| Business / corporate | Company domains - free webmail and institutions excluded |
| Education (.edu / .ac) | `.edu`, `.ac.uk`, `.edu.au`, `.ac.in` and other academic suffixes |
| Government (.gov / .mil) | `.gov`, `.mil`, `.gov.uk`, `.gc.ca`, ... |
| Non-profit (.org) | `.org`, `.ngo`, `.org.uk`, ... |

Each selected type contributes its own Google dork patterns *and* its own domain
test, so a result is only kept if it genuinely belongs to the type that found
it. Every row carries an `emailType` field recording which one that was.

Suffixes are matched as real domain suffixes, so `cs.mit.edu` counts as
Education while `notedu.com` does not.

Setting **Custom Email Domains** still overrides everything: an explicit domain
list is a manual override and replaces the type-driven patterns. The legacy
`audienceType` value is still accepted, so saved inputs keep working.

# Actor input Schema

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

A list of keywords or queries to search for.

## `audienceType` (type: `string`):

Business Emails runs contextual discovery patterns tuned for company contact pages ("email us at", "contact@", careers, bookings, ...) and filters out consumer webmail domains. Consumer Emails instead searches gmail.com, yahoo.com, outlook.com, hotmail.com and icloud.com directly.

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

Maximum number of emails to collect. The scraper will stop once this limit is reached. Setting a higher limit allows for more potential results but doesn't guarantee reaching that number. This helps save costs by controlling scraping time.

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

Optional manual override — provide specific email domains to search for (e.g. @hubspot.com) instead of using Audience Type. Leave empty to use Audience Type.

## `emailTypes` (type: `array`):

Which kinds of mailbox to hunt for. Pick as many as you like - each type contributes its own set of Google search patterns and its own domain filter, and every result records the type it was found as. Personal = free webmail (Gmail, Outlook, Yahoo, iCloud). Business = company domains, excluding free webmail and institutions. Education = .edu / .ac.uk and friends. Government = .gov / .mil. Non-profit = .org.

## Actor input object example

```json
{
  "keywords": [
    "manager",
    "founder"
  ],
  "audienceType": "Consumer Emails",
  "maxEmails": 20,
  "customDomains": [],
  "emailTypes": [
    "Personal",
    "Business"
  ]
}
```

# Actor output Schema

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

No description

# 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": [
        "manager",
        "founder"
    ],
    "customDomains": [],
    "emailTypes": [
        "Personal",
        "Business"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapido/yellow-pages-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": [
        "manager",
        "founder",
    ],
    "customDomains": [],
    "emailTypes": [
        "Personal",
        "Business",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapido/yellow-pages-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": [
    "manager",
    "founder"
  ],
  "customDomains": [],
  "emailTypes": [
    "Personal",
    "Business"
  ]
}' |
apify call scrapido/yellow-pages-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapido/yellow-pages-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/NpDVOTIQqj3CJ7OmF/builds/UVSnI5R68hhzm9Yly/openapi.json
