# Yellow Pages Scraper — US Business Leads, Phones & Addresses (`technicaldost/yellow-pages-scraper-business-leads`) Actor

Scrape YellowPages.com business listings by keyword and city: name, phone, full address, website, categories, rating, reviews, years in business, open status, plus optional coordinates, hours, payment methods and generic business email. $1 per 1,000.

- **URL**: https://apify.com/technicaldost/yellow-pages-scraper-business-leads.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** Lead generation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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/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

Yellow Pages Scraper extracts **US local business listings from YellowPages.com** for any **keyword and location** (city, state or ZIP code), or from any Yellow Pages search or category URL. Each business comes with its **name, phone, street address, city, state, ZIP, website, categories, star rating and review count, years in business, open status and description snippet**. Turn on **business details** to add **latitude/longitude, opening hours, payment methods, founding year, full description, social links and the business's generic email (info@, sales@...)**. Built for lead generation, local SEO and market research.

### What you get

- Search any keyword in many cities or ZIP codes in one run (keywords x locations).
- Or paste Yellow Pages search or category URLs (e.g. https://www.yellowpages.com/austin-tx/plumbers).
- Up to 3,000 businesses per search, all pages, de-duplicated across searches.
- Contact fields: phone, website, full address split into street, city, state and ZIP.
- Optional details: coordinates, opening hours, payment methods, founding year, description, social links, generic business email.
- Privacy-aware: only role e-mail addresses (info@, sales@, contact@...) are kept; personal-looking addresses are dropped.

### How to use Yellow Pages Scraper

1. Enter **Search terms** (e.g. `plumber`, `dentist`, `pizza`) and **Locations** (e.g. `Austin, TX`, `90210`).
2. Set **Max results per search** and optionally turn on **Business details**.
3. Run and export to CSV or Excel for your CRM, or send to Google Sheets, HubSpot, Make or Zapier.

### Input example

```json
{
  "searchTerms": [
    "plumber",
    "electrician"
  ],
  "locations": [
    "Austin, TX",
    "Dallas, TX"
  ],
  "maxResultsPerSearch": 200,
  "includeDetails": true
}
```

All fields are described in the **Input** tab.

### Output example

```json
{
  "ypid": "501663288",
  "position": 1,
  "name": "Giordano's",
  "url": "https://www.yellowpages.com/chicago-il/mip/giordanos-501663288",
  "categories": [
    "Pizza",
    "Restaurant Delivery Service",
    "Restaurants"
  ],
  "phone": "(312) 951-0747",
  "address": "730 N Rush St, Chicago, IL 60611",
  "street": "730 N Rush St",
  "city": "Chicago",
  "state": "IL",
  "zip": "60611",
  "website": "https://giordanos.com/locations/gold-coast-magnificent-mile",
  "rating": 4,
  "reviewCount": 8,
  "yearsInBusiness": 52,
  "yearsWithYp": null,
  "openStatus": "open now",
  "snippet": "This is our favorite pizza in Chicago...",
  "offer": null,
  "thumbnailUrl": "https://i3.ypcdn.com/blob/c10ddc6ba1ca8bf5ebd6823b77bebe4b5d8b1236_130x130_crop.jpg",
  "email": null,
  "latitude": 41.89588,
  "longitude": -87.62564,
  "description": "Famous Chicago-style deep dish pizza right in your neighborhood.",
  "paymentAccepted": "amex, discover, visa, cash, master card",
  "foundingYear": 1974,
  "openingHours": [
    "Mo-Th 10:30-22:00",
    "Fr-Sa 10:30-23:00",
    "Su 10:30-22:00"
  ],
  "socialLinks": [],
  "priceRange": null,
  "websiteFromProfile": "https://giordanos.com/locations/gold-coast-magnificent-mile",
  "aggregateRating": 4,
  "aggregateReviewCount": 8,
  "search": "pizza in Chicago, IL",
  "page": 1,
  "scrapedAt": "2026-11-01T20:54:48.933Z"
}
```

#### Output fields

| Field | Description |
|---|---|
| `ypid` | Yellow Pages business ID. |
| `position` | Position in results. |
| `name` | Business name. |
| `url` | Yellow Pages profile URL. |
| `categories` | Categories. |
| `phone` | Business phone. |
| `address` | Full address. |
| `street` | Street. |
| `city` | City. |
| `state` | State. |
| `zip` | ZIP code. |
| `website` | Business website. |
| `rating` | Star rating, 1-5. |
| `reviewCount` | Number of reviews. |
| `yearsInBusiness` | Years in business. |
| `yearsWithYp` | Years listed on Yellow Pages. |
| `openStatus` | Open status when scraped. |
| `snippet` | Description or review snippet. |
| `offer` | Advertised offer, if any. |
| `thumbnailUrl` | Thumbnail image. |
| `email` | Generic business email (details only). |
| `latitude` | Latitude (details). |
| `longitude` | Longitude (details). |
| `description` | Business description (details). |
| `paymentAccepted` | Payment methods (details). |
| `foundingYear` | Founding year (details). |
| `openingHours` | Opening hours (details). |
| `socialLinks` | Social profiles (details). |
| `priceRange` | Price range (details). |
| `websiteFromProfile` | Website from the profile (details). |
| `aggregateRating` | Rating from the profile (details). |
| `aggregateReviewCount` | Review count from the profile (details). |
| `search` | Search that found the business. |
| `page` | Results page. |
| `scrapedAt` | When the row was scraped. |

Export results as JSON, CSV, Excel, XML or HTML, or read them with the API.

### Use cases

- B2B lead generation: local businesses by trade and city with phone, website and address.
- Local SEO and agencies: find businesses without websites or with low ratings to pitch.
- Market research: count and map competitors in a category across cities.
- Data enrichment: match your list to phones, categories and years in business.
- Sales territory planning with coordinates and categories.

### How much does Yellow Pages Scraper cost?

This Actor uses **pay-per-event** pricing: **$0.001 per business** ($1 per 1,000). Platform usage is included. There is no start fee. Searches with no results are free, and duplicates across pages and searches are removed before saving.

Set **Maximum cost per run** in the run options to cap your spend; the Actor stops when the limit is reached.

### Use Yellow Pages Scraper with AI agents (MCP)

Give Claude, ChatGPT, Cursor or any MCP client this Actor as a tool through the hosted [Apify MCP server](https://mcp.apify.com):

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=technicaldost/yellow-pages-scraper-business-leads" --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Or in a JSON MCP config:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=technicaldost/yellow-pages-scraper-business-leads",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

The tool is named `technicaldost--yellow-pages-scraper-business-leads`. Ask your agent, for example, to *"run Yellow Pages Scraper with {"searchTerms": \["plumber", "electrician"], "locations": \["Austin, TX", "Dallas, TX"], "maxResultsPerSearch": 200, "includeDetails": true}"*.

### Run Yellow Pages Scraper via API

```bash
curl -X POST "https://api.apify.com/v2/acts/technicaldost~yellow-pages-scraper-business-leads/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["plumber", "electrician"], "locations": ["Austin, TX", "Dallas, TX"], "maxResultsPerSearch": 200, "includeDetails": true}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("technicaldost/yellow-pages-scraper-business-leads").call(run_input={"searchTerms": ["plumber", "electrician"], "locations": ["Austin, TX", "Dallas, TX"], "maxResultsPerSearch": 200, "includeDetails": True})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('technicaldost/yellow-pages-scraper-business-leads').call({"searchTerms": ["plumber", "electrician"], "locations": ["Austin, TX", "Dallas, TX"], "maxResultsPerSearch": 200, "includeDetails": true});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Integrations

Schedule runs (daily, hourly) in Apify Console and send results to Google Sheets, Slack, Make, Zapier, n8n, Airbyte or your own webhook.

### FAQ

#### Which country does it cover?

The United States (yellowpages.com). Use city and state (Austin, TX) or a ZIP code as the location.

#### How many results can I get?

Up to 3,000 per keyword-location search; Yellow Pages shows 30 per page. Duplicates across pages and searches are removed.

#### Does it return emails?

With Business details on, it returns the email the business published on Yellow Pages only if it is a generic role address (info@, sales@, office@...). Addresses that look like a person's are dropped, and personal data is not collected.

#### What do Business details add?

Coordinates, opening hours, payment methods, founding year, description, social links and the generic email. It costs one extra page load per business, so runs are slower.

#### How is it priced?

$1 per 1,000 businesses, details included. No start fee.

#### Is it legal to scrape this data?

The Actor collects publicly available information only and does not log in or bypass access controls. Use the data in line with the website's terms and the laws that apply to you, especially when processing personal data.

### Related Actors

More tools from the same developer that work well together with this one:

- [Google Maps Business Scraper](https://apify.com/technicaldost/google-maps-business-scraper): Find local businesses by search term, such as "dentist in Chicago": name, address, phone, website, email, opening hours and coordinates.
- [Public Business Directory Leads Extractor](https://apify.com/technicaldost/structured-local-business-leads-scraper): Extract local business leads from business pages and store-locator directories: name, address, phone, email, website, category and rating.
- [Website Contact & Email Extractor](https://apify.com/technicaldost/website-contact-extractor): Extract contact details from websites in bulk: emails, phone numbers and social profiles, plus the contact page.
- [Local Business Finder (OpenStreetMap)](https://apify.com/technicaldost/osm-local-business-finder): Find local businesses by category and city from OpenStreetMap, a free and legal alternative to Google Maps scraping.

# Actor input Schema

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

What to search, e.g. plumber, dentist, pizza, roofing contractor.

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

US city and state or ZIP code, e.g. Austin, TX or 90210. Each search term runs in every location.

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

Optional search or category URLs, e.g. https://www.yellowpages.com/austin-tx/plumbers.

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

Up to 3,000.

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

Adds coordinates, hours, payment methods, founding year, description, social links and generic business email (one extra request per business).

## Actor input object example

```json
{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Austin, TX"
  ],
  "startUrls": [],
  "maxResultsPerSearch": 30,
  "includeDetails": false
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "plumber"
    ],
    "locations": [
        "Austin, TX"
    ],
    "startUrls": [],
    "maxResultsPerSearch": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/yellow-pages-scraper-business-leads").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": ["Austin, TX"],
    "startUrls": [],
    "maxResultsPerSearch": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("technicaldost/yellow-pages-scraper-business-leads").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": [
    "Austin, TX"
  ],
  "startUrls": [],
  "maxResultsPerSearch": 30
}' |
apify call technicaldost/yellow-pages-scraper-business-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,technicaldost/yellow-pages-scraper-business-leads"
        }
    }
}
```

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/4QKdpdsNY6tDtJtWU/builds/39XeJhJve5AEplRLt/openapi.json
