# Yellow Pages Scraper: Business Leads, Phones & Emails (`techliondev/yellow-pages-scraper`) Actor

Yellow Pages scraper for US business leads: names, phones, addresses, websites, categories, ratings and years in business. Optional emails. Free filters.

- **URL**: https://apify.com/techliondev/yellow-pages-scraper.md
- **Developed by:** [TechLion Dev](https://apify.com/techliondev) (community)
- **Categories:** Lead generation, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 business saveds

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

### 📒 What is Yellow Pages Scraper?

**Yellow Pages Scraper** turns Yellow Pages (yellowpages.com) searches into a clean **list of US business leads**: business names, phone numbers, full addresses, websites, categories, Yellow Pages ratings, years in business and claimed status. Turn on the details add-on to also get **emails and opening hours**. Type what you are looking for (for example `plumber`) and where (`Denver, CO` or a ZIP code), and press **Start**.

It is for sales teams, marketing agencies, lead-generation freelancers, local service businesses, researchers and AI (artificial intelligence) agents that need structured local business data.

It reads the same public search pages any visitor sees, with no login and no browser, so runs are **fast and cheap**.

- **Build calling and email lists** of plumbers, dentists, roofers, lawyers or any other trade, in any US city or ZIP code.
- **Find businesses without a website** (a great list for web design agencies).
- **Filter for quality:** only businesses with a phone, a website, a minimum star rating or a minimum number of years in business.
- **Track new businesses:** schedule a run and get only listings you have not seen before.
- **Export** to Excel, CSV (comma-separated values) or JSON (JavaScript Object Notation), or send rows to your CRM (customer relationship management) tool.

#### What data does it extract?

| | |
| --- | --- |
| 🏢 Business name and Yellow Pages listing link | 📞 Phone number |
| 📍 Street, city, state, ZIP and full address | 🌐 Website |
| 📧 Email (details add-on, when published) | 🕒 Opening hours (details add-on) |
| 🗂️ Categories and main category | ⭐ Yellow Pages rating and review count |
| 📅 Years in business | ✅ Claimed status, paid-ad flag, BBB (Better Business Bureau) and TripAdvisor ratings when shown |

#### Why this scraper?

- **A third of the price of the most-used Yellow Pages scraper:** $1 per 1,000 businesses instead of $3, and every filter is free.
- **Emails when you want them:** the optional details add-on opens each listing page and adds the email and hours for $1 more per 1,000.
- **Many searches in one run:** every search term is combined with every location, and duplicates across searches are removed.
- **Clean, flat columns** that are the same on every row, ready for spreadsheets and CRMs.

### ⬇️ Input

Example input:

```json
{
    "searchTerms": ["plumber", "electrician"],
    "locations": ["Denver, CO", "Phoenix, AZ", "10001"],
    "maxResultsPerSearch": 100,
    "includeDetails": true,
    "onlyWithPhone": true
}
```

| Setting | What it does |
| --- | --- |
| **Search terms** | Business types or names, one per line. |
| **Locations** | City and state, ZIP code or state, one per line. Every term is searched in every location. |
| **Yellow Pages search links** | Optional: paste search result links from yellowpages.com instead. |
| **Maximum businesses per search** | Stops after this many saved businesses for each term and location pair (Yellow Pages shows 30 per page, up to 3,000). |
| **Details add-on ($)** | Opens each listing page to add email and opening hours. |
| **Filters (free)** | Only with phone, only with website, minimum stars, minimum years in business, name or category keywords. |
| **Only new businesses** | After the first run, save only businesses you have not seen before. |

### ⬆️ Output

You can download the results as Excel, CSV, JSON, HTML or XML, or read them through the Apify API. The **Overview**, **Contacts** and **Ratings and trust** views show the most useful columns for each job.

#### Table view

| Business | Phone | City | Category | Stars | Years | Website |
| --- | --- | --- | --- | --- | --- | --- |
| Bell Plumbing, Heating, Cooling &… | (720) 828-8886 | Centennial, CO | Electricians |  | 100 | https://bellplumbing.com |
| Xcel Energy | (800) 895-1999 |  | Electric Companies |  | 26 | http://my.xcelenergy.com |
| Drain Pro Plumbing | (623) 321-3470 |  | Plumbers | 4.5 | 41 | http://drainproplumbingaz.locals… |
| Blue Plumbing LLC | (602) 618-0900 |  | Plumbers | 5 |  | http://www.blueplumbingphx.com |
| Absolute Plumbing, Electrical, Hea… | (678) 322-8938 | Denver, CO | Plumbers |  |  | https://absolutefix.com/service-… |
| Good Plumbing Service Co | (303) 962-3628 | Denver, CO | Plumbers | 5 | 67 |  |
| Colter Electric LLC | (480) 447-3860 |  | Electricians |  |  | https://www.colterelectricllc.co… |
| Granado's Electrical Service | (480) 999-1557 | Mesa, AZ | Electricians |  | 24 | https://www.granadoselectrical.c… |

#### JSON example

One business row from a real run with the details add-on:

```json
{
    "name": "Heart Heating Cooling Plumbing & Electric",
    "phone": "(720) 372-2211",
    "street": "646 Bryant Street",
    "city": "Denver",
    "state": "CO",
    "zip": "80204",
    "address": "646 Bryant Street, Denver, CO 80204",
    "website": "https://servicebyheart.com",
    "email": "customerservice@heart-hvac.com",
    "categories": [
        "Electricians",
        "Backflow Prevention Devices & Services",
        "Sewer Contractors"
    ],
    "primaryCategory": "Electricians",
    "rating": 4.5,
    "reviewCount": 7,
    "tripAdvisorRating": null,
    "tripAdvisorReviewCount": null,
    "yearsInBusiness": 43,
    "bbbRating": null,
    "openStatus": "open now",
    "hours": "Mon - Sun:12:00 am - 11:59 pm",
    "snippet": "Wesley Jeffords was pleasant and provided excellent timely service on short notice. Clean-up on completion was excellent as well.\"",
    "isAd": true,
    "isClaimed": true,
    "ypId": "469605577",
    "ypUrl": "https://www.yellowpages.com/denver-co/mip/heart-heating-cooling-plumbing-electric-469605577",
    "thumbnail": "https://i4.ypcdn.com/blob/de50fab3c86b192bd80fdb5b9a9f3fdc1f00f8c1_130x130_crop.jpg?fbfdc6472",
    "position": 3,
    "searchTerm": "electrician",
    "searchLocation": "Denver, CO",
    "searchUrl": "https://www.yellowpages.com/search?search_terms=electrician&geo_location_terms=Denver%2C+CO",
    "detailsLoaded": true,
    "scrapedAt": "2026-11-20T04:02:35.448Z"
}
```

A summary of every search (businesses listed, pages read, rows saved and any error) is saved as `RUN_SUMMARY` in the run's key-value store.

### ▶️ How to use it

1. Click **Try for free** (an Apify account is free to create).
2. Type your **Search terms** and **Locations**.
3. Set **Maximum businesses per search**, and turn on the details add-on if you need emails.
4. Click **Start**. The default run (30 plumbers in Denver) finishes in about 4 seconds.
5. Download your leads from the **Output** tab, or connect them to another tool.

### 💲 How much does it cost?

This Actor uses **pay-per-event pricing**: you pay only for the businesses you get.

| Event | Price (free plan) | When it is charged |
| --- | --- | --- |
| Actor start | $0.00005 | Once per run |
| **Business saved** | **$0.001** ($1 per 1,000) | For each business saved, after your filters |
| Listing details loaded (add-on) | $0.001 ($1 per 1,000) | Only with the details add-on, for each listing page opened |

Paid Apify plans get lower prices automatically. See the **Pricing** tab for every plan.

**Worked examples**

- **Default test run, 30 businesses:** $0.00005 + 30 × $0.001 = **about $0.03**.
- **1,000 businesses:** **$1.00**, or **$2.00** with emails and hours.
- **Monthly list of new dentists in 10 cities, only new (about 300 a month):** **about $0.30 per month**.

The most-used Yellow Pages scraper in Apify Store charges $3 per 1,000 results. Filters and de-duplication never add to the price here.

### 🎯 Use cases

- **Cold calling and email outreach** to local businesses by trade and city.
- **Agency prospecting:** businesses without a website, with few reviews or that have not claimed their listing.
- **Market research:** count and compare businesses by category and city.
- **Data enrichment:** add phone numbers, websites and categories to your own lists.

### 🔌 Integrations

- **Schedules:** run it every week or month from the Schedules page.
- **Webhooks:** get a call to your own system when a run finishes.
- **Apps:** send results to Google Sheets, HubSpot, Zapier, Make, Airtable and more with Apify's ready-made integrations.
- **AI agents:** the Actor is available through the Apify MCP (Model Context Protocol) server, so AI assistants can call it as a tool.

### 💻 Use it from code (API)

Replace `YOUR_APIFY_TOKEN` with the API token from the **Settings > API & Integrations** page in Apify Console.

**Python** (install with `pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("techliondev/yellow-pages-scraper").call(run_input={
    "searchTerms": ["roofing"],
    "locations": ["Austin, TX"],
    "maxResultsPerSearch": 100,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["phone"], item["website"])
```

**JavaScript / Node.js** (install with `npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('techliondev/yellow-pages-scraper').call({
    searchTerms: ['roofing'],
    locations: ['Austin, TX'],
    maxResultsPerSearch: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Any language (HTTP):** send a POST request with the input as JSON to the `run-sync-get-dataset-items` endpoint for `techliondev~yellow-pages-scraper` and you get the businesses back in the response.

### ❓ FAQ

#### How many businesses can I get per search?

As many as Yellow Pages lists for that search, up to 3,000 per term and location pair (100 pages of 30). For bigger lists, split a city into ZIP codes.

#### How do I get emails?

Turn on **Load listing details: email and hours ($)**. The Actor opens each listing page and adds the email when the business publishes one (about half of businesses in our tests) and the opening hours.

#### Does it work outside the United States?

Yellow Pages (yellowpages.com) covers the United States. Use US cities, states or ZIP codes.

#### Do I need an account, an API key or a proxy?

No. The Actor reads public pages without logging in. If Yellow Pages refuses direct requests, it retries through Apify proxy on its own, with a traffic cap, at no extra charge to you.

#### Is it legal to scrape Yellow Pages?

The Actor collects only business information that Yellow Pages shows publicly. It does not log in or collect private data. When you contact businesses, follow the marketing and privacy rules that apply to you (for example rules on cold email and calling).

#### Your feedback

Found a bug or want a feature? Please open an issue on the **Issues** tab. We aim to reply within a few days.

# Actor input Schema

## `searchTerms` (type: `array`):

Business types or names, one per line, for example plumber, dentist, roofing, Italian restaurant.

## `locations` (type: `array`):

US cities with state (Denver, CO), ZIP codes (10001) or states, one per line.

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

Paste search result links from yellowpages.com instead of (or as well as) terms and locations.

## `maxResultsPerSearch` (type: `integer`):

Stop after this many saved businesses for each term and location pair. Yellow Pages shows 30 per page. Businesses removed by filters are not counted or charged.

## `includeDetails` (type: `boolean`):

Opens each business's Yellow Pages listing page to add its email (when published) and opening hours. Charged as one "details" event per listing page loaded.

## `onlyWithPhone` (type: `boolean`):

Skip listings without a phone number.

## `onlyWithWebsite` (type: `boolean`):

Skip listings without a website. Turn it off to find businesses that may need a website.

## `minRating` (type: `number`):

Keep only businesses rated at least this many stars on Yellow Pages (unrated businesses are skipped when set).

## `minYearsInBusiness` (type: `integer`):

Keep only businesses with at least this many years in business.

## `includeKeywords` (type: `array`):

Keep only businesses whose name or categories mention one of these words.

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

Skip businesses whose name or categories mention any of these words.

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

Remembers every listing and, after the first run, saves only businesses that are new since last time.

## `stateName` (type: `string`):

Use a different name for each separate watch list.

## `maxProxyMegabytes` (type: `integer`):

If Yellow Pages starts refusing direct requests, the Actor retries through Apify proxy, up to this much traffic per run. Included in the price.

## Actor input object example

```json
{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Denver, CO"
  ],
  "maxResultsPerSearch": 30,
  "includeDetails": false,
  "onlyWithPhone": false,
  "onlyWithWebsite": false,
  "onlyNew": false,
  "maxProxyMegabytes": 100
}
```

# Actor output Schema

## `businesses` (type: `string`):

Dataset with one row per business

## `summary` (type: `string`):

Searches, pages read, businesses saved and any errors

# 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 = {
    "searchTerms": [
        "plumber"
    ],
    "locations": [
        "Denver, CO"
    ],
    "maxResultsPerSearch": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("techliondev/yellow-pages-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 = {
    "searchTerms": ["plumber"],
    "locations": ["Denver, CO"],
    "maxResultsPerSearch": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("techliondev/yellow-pages-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 '{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Denver, CO"
  ],
  "maxResultsPerSearch": 30
}' |
apify call techliondev/yellow-pages-scraper --silent --output-dataset

```

## MCP server setup

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