# Yellow Pages Scraper — US Leads, Phones & Addresses ✅ (`themineworks/yellowpages-us`) Actor

Scrape YellowPages.com US local business listings into clean leads: name, phone, full address (street, city, state, ZIP), categories, website and years in business. Search any term in any US city. No login. Works in Claude, ChatGPT & any MCP-compatible AI agent.

- **URL**: https://apify.com/themineworks/yellowpages-us.md
- **Developed by:** [The Mine Works](https://apify.com/themineworks) (community)
- **Categories:** Business, Developer tools, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 businesses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper - US Business Listings & Leads

Turn any **YellowPages.com** search into a clean, structured lead list. Give it a category and a US city, and this actor returns every matching business with its **name, phone, full address, categories, website and years in business** — ready to drop into a CRM, a spreadsheet, or an outbound campaign.

No login, no API key, no manual copy-paste. The actor searches YellowPages, walks every result page, de-duplicates listings, and hands you back tidy JSON / CSV / Excel.

**Works in Claude, ChatGPT and any MCP-compatible AI agent** — call it as a tool to pull local-business leads on demand ("get me 50 plumbers in Austin, TX").

---

### What you can do with it

- Build **local lead lists** for sales outreach (plumbers, dentists, contractors, restaurants, salons…).
- Power **lead-gen and agency** workflows: pull fresh prospects by city and vertical.
- Enrich a **territory map**: who offers what service, where, and how to reach them.
- Feed an **AI agent** that needs real local-business data on the fly.

---

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `searchTerm` | string | yes | `plumbers` | Business type / keyword to search (e.g. `dentists`, `coffee shops`, `law firms`). |
| `location` | string | yes | `Austin, TX` | US location as `City, ST` (e.g. `Chicago, IL`) or a 5-digit ZIP code. |
| `maxResults` | integer | no | `100` | Max unique businesses to return (1–1000). Pagination continues until reached. |
| `proxyConfiguration` | object | no | RESIDENTIAL / US | Apify Proxy config. **US residential proxy is required** — YellowPages blocks datacenter IPs. |

#### Example input

```json
{
  "searchTerm": "plumbers",
  "location": "Austin, TX",
  "maxResults": 50,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US" }
}
````

***

### Output

One dataset item per business. The final item is a `summary` record with run totals.

#### Sample record

```json
{
  "name": "Radiant Plumbing & Air Conditioning",
  "phone": "+1-512-263-9988",
  "street": "10612 Metric Blvd",
  "city": "Austin",
  "state": "TX",
  "zip": "78758",
  "categories": ["Plumbers", "Plumbing-Drain & Sewer Cleaning", "Air Conditioning Service & Repair"],
  "website": "https://www.radiantplumbing.com",
  "years_in_business": 25,
  "url": "https://www.yellowpages.com/austin-tx/mip/radiant-plumbing-air-conditioning-12345678",
  "search_term": "plumbers",
  "scraped_at": "2026-06-16T12:00:00.000Z"
}
```

#### Fields

| Field | Description |
|-------|-------------|
| `name` | Business name |
| `phone` | Primary phone, normalised to `+1-XXX-XXX-XXXX` when possible |
| `street` | Street address |
| `city` / `state` / `zip` | Parsed city, 2-letter state, ZIP |
| `categories` | Array of YellowPages category labels |
| `website` | Business website URL (if listed) |
| `years_in_business` | Number of years in business (if shown) |
| `url` | YellowPages detail-page URL |
| `search_term` | The term you searched |
| `scraped_at` | ISO-8601 timestamp of when the record was scraped |

Some fields may be `null` when a listing doesn't publish them (e.g. no website, no years badge).

***

### Pricing

**Pay-per-result.** You are charged **$0.002 per business** delivered (event `business-scraped`).

- The **first 25 results are FREE** on your Apify account (lifetime), so you can fully try the actor before paying a cent.
- Empty searches and failed/blocked runs are **never charged** — you only pay for real businesses pushed to the dataset.
- The `summary` record is free.

Apify platform usage (compute + residential proxy) is billed separately by Apify at their standard rates.

***

### Tips for best results

- Use **broad, common categories** (`plumbers`, `dentists`, `electricians`) for the densest result lists.
- Use **major cities** for high volume; small towns naturally have fewer listings.
- Format location as `City, ST` (e.g. `Austin, TX`). ZIP codes also work.
- Keep `RESIDENTIAL` / `US` proxy enabled — it is required to avoid blocking.

***

### FAQ

**Do I need a YellowPages login or API key?**
No. The actor reads public search-result pages.

**Why is a residential US proxy required?**
YellowPages serves a block page (HTTP 403) to datacenter IPs. US residential proxies look like ordinary US visitors, so requests succeed. The prefilled proxy config handles this for you.

**Does it paginate, or just the first page?**
It paginates. The actor walks `&page=2`, `&page=3`, … de-duplicating across pages until it reaches `maxResults` or runs out of listings.

**How are duplicates handled?**
Each listing is de-duplicated by a stable id (YellowPages listing id / detail URL, falling back to name + phone), so you won't get the same business twice across pages.

**Why are some fields empty?**
Not every business publishes a website, ZIP or "years in business" badge. The actor returns what the listing shows and leaves the rest `null`.

**Can I use this from an AI assistant?**
Yes. It's exposed as an MCP server, so Claude, ChatGPT and other MCP-compatible agents can call it directly as a tool.

**Is scraping YellowPages legal?**
The actor only collects publicly available business information. You are responsible for using the data in compliance with YellowPages' terms and applicable laws (e.g. respecting do-not-call rules for any outreach).

# Actor input Schema

## `searchTerm` (type: `string`):

What kind of business to find (e.g. "plumbers", "dentists", "coffee shops", "law firms"). Maps to the YellowPages keyword search.

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

US city and 2-letter state to search in, formatted "City, ST" (e.g. "Austin, TX", "Chicago, IL", "Miami, FL"). You can also use a 5-digit ZIP code.

## `maxResults` (type: `integer`):

Maximum number of business listings to return. Pagination continues across result pages until this many unique businesses are collected or YellowPages runs out of results.

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

YellowPages.com blocks datacenter traffic; US residential proxies are required for reliable access. Leave the prefilled value as-is unless you have a reason to change it.

## Actor input object example

```json
{
  "searchTerm": "plumbers",
  "location": "Austin, TX",
  "maxResults": 25,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchTerm": "plumbers",
    "location": "Austin, TX",
    "maxResults": 25,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("themineworks/yellowpages-us").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 = {
    "searchTerm": "plumbers",
    "location": "Austin, TX",
    "maxResults": 25,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("themineworks/yellowpages-us").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchTerm": "plumbers",
  "location": "Austin, TX",
  "maxResults": 25,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call themineworks/yellowpages-us --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=themineworks/yellowpages-us",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yellow Pages Scraper — US Leads, Phones & Addresses ✅",
        "description": "Scrape YellowPages.com US local business listings into clean leads: name, phone, full address (street, city, state, ZIP), categories, website and years in business. Search any term in any US city. No login. Works in Claude, ChatGPT & any MCP-compatible AI agent.",
        "version": "0.1",
        "x-build-id": "wUXBd8RATPViUilgT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/themineworks~yellowpages-us/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-themineworks-yellowpages-us",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/themineworks~yellowpages-us/runs": {
            "post": {
                "operationId": "runs-sync-themineworks-yellowpages-us",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/themineworks~yellowpages-us/run-sync": {
            "post": {
                "operationId": "run-sync-themineworks-yellowpages-us",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchTerm": {
                        "title": "Search term / category",
                        "type": "string",
                        "description": "What kind of business to find (e.g. \"plumbers\", \"dentists\", \"coffee shops\", \"law firms\"). Maps to the YellowPages keyword search."
                    },
                    "location": {
                        "title": "Location (City, ST)",
                        "type": "string",
                        "description": "US city and 2-letter state to search in, formatted \"City, ST\" (e.g. \"Austin, TX\", \"Chicago, IL\", \"Miami, FL\"). You can also use a 5-digit ZIP code."
                    },
                    "maxResults": {
                        "title": "Max businesses",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of business listings to return. Pagination continues across result pages until this many unique businesses are collected or YellowPages runs out of results.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "YellowPages.com blocks datacenter traffic; US residential proxies are required for reliable access. Leave the prefilled value as-is unless you have a reason to change it.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
