# Yellow Pages Scraper Us (`hulkscrape/yellowpages-scraper-us`) Actor

Scrape US business listings from Yellow Pages (yellowpages.com) by keyword and location. Extracts name, address, phone, email, website, ratings, reviews, hours, categories, and social media. Optionally visits business websites for extra contact data. Uses proxy rotation and pay-per-result pricing.

- **URL**: https://apify.com/hulkscrape/yellowpages-scraper-us.md
- **Developed by:** [Kulwinder](https://apify.com/hulkscrape) (community)
- **Categories:** Lead generation, Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 result storeds

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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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 US Business Scraper

### What does Yellow Pages US Business Scraper do?

The **Yellow Pages US Business Scraper** is an [Apify Actor](https://apify.com/actors) that extracts business listings
from [Yellow Pages (yellowpages.com)](https://www.yellowpages.com/) — the leading US business directory. It searches by
**keyword** and **location**, then extracts detailed business data including name, address, phone, email, website,
ratings, reviews, opening hours, and social media links.

Run it on the [Apify platform](https://console.apify.com/) for scheduled scraping, API access, proxy rotation, and
automatic scaling — or run it locally for development.

### Why use Yellow Pages US Business Scraper?

- **Lead generation** — Build targeted lists of businesses by category and location for sales outreach
- **Market research** — Analyze competitor density, ratings, and review trends across regions
- **Data enrichment** — Append business contact info and social profiles to your existing CRM data
- **Local SEO audits** — Collect structured business data (NAP, categories, hours) at scale
- **Cost-effective** — Uses HTTP-like efficiency via JSON-LD extraction combined with Playwright for dynamic content

### How to use Yellow Pages US Business Scraper

1. Go to the Actor's page on [Apify Console](https://console.apify.com/)
2. Enter your search **keyword (s)** (e.g., "Restaurants", "Auto Repair")
3. Optionally enter **location (s)** (e.g., "CA", "New York, NY")
4. Toggle options for email scraping and website crawling
5. Set the **max items** limit
6. Click **Start** and wait for results

You can also run it via the Apify API:

```bash
apify call hulkscrape/yellowpages-scraper-us --input '{"keywords": "Restaurants", "locations": "CA"}'
````

### Input

| Field            | Type      | Default         | Description                                                                       |
|------------------|-----------|-----------------|-----------------------------------------------------------------------------------|
| `keywords`       | `string`  | `"Restaurants"` | Business type to search for (required)                                            |
| `locations`      | `string`  | `"CA"`          | Geographic location filter                                                        |
| `scrapeEmail`    | `boolean` | `true`          | Visit each business's Yellow Pages profile to extract email                       |
| `additionalData` | `boolean` | `false`         | Visit each business's own website to extract email, phone, and social media links |
| `maxItems`       | `integer` | `100`           | Maximum number of results to return                                               |
| `useApifyProxy`  | `boolean` | `true`          | Use Apify residential proxy (US) for requests                                     |

### Output

The Actor outputs a dataset with structured business records:

```json
{
    "searchKeyword": "Restaurants",
    "searchLocation": "CA",
    "name": "Joe's Pizza Palace",
    "category": "Italian Restaurants, Pizza",
    "url": "https://www.yellowpages.com/los-angeles-ca/mip/joes-pizza-palace-12345678",
    "address": "123 Main St, Los Angeles, CA 90001",
    "phone": "(213) 555-1234",
    "email": "info@joespizza.com",
    "website": "https://www.joespizza.com",
    "rating": 4.5,
    "reviews": 128,
    "businessYear": 2005,
    "image": "https://www.yellowpages.com/.../photo.jpg",
    "emailWebsite": "info@joespizza.com",
    "phoneWebsite": "(213) 555-1234",
    "facebookWeb": "https://www.facebook.com/joespizza",
    "twitterWeb": "https://twitter.com/joespizza",
    "instagramWeb": "https://www.instagram.com/joespizza",
    "linkedinWeb": "https://www.linkedin.com/company/joespizza",
    "youtubeWeb": "https://www.youtube.com/@joespizza",
    "tiktokWeb": "https://www.tiktok.com/@joespizza",
    "pinterestWeb": "https://www.pinterest.com/joespizza",
    "rawAddress": {
        "addressCountry": "US",
        "streetAddress": "123 Main St",
        "addressLocality": "Los Angeles",
        "addressRegion": "CA",
        "postalCode": "90001"
    },
    "openingHours": [
        "Mon-Fri 11:00 AM - 10:00 PM",
        "Sat-Sun 12:00 PM - 11:00 PM"
    ],
    "categories": [
        "Italian Restaurants",
        "Pizza"
    ],
    "reviewSnippet": "Best pizza in town!",
    "infoSnippet": "Family-owned since 2005"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data fields

| Field            | Description                                                   |
|------------------|---------------------------------------------------------------|
| `searchKeyword`  | The keyword used for the search                               |
| `searchLocation` | The location used for the search                              |
| `name`           | Business name                                                 |
| `category`       | Primary category (comma-separated)                            |
| `url`            | Yellow Pages listing URL                                      |
| `address`        | Full address string                                           |
| `phone`          | Business phone number                                         |
| `email`          | Email (from Yellow Pages profile, if `scrapeEmail` enabled)   |
| `website`        | Business website URL                                          |
| `rating`         | Aggregate rating (1-5)                                        |
| `reviews`        | Total review count                                            |
| `businessYear`   | Year business was established                                 |
| `image`          | Business photo URL                                            |
| `emailWebsite`   | Email from business website (if `additionalData` enabled)     |
| `phoneWebsite`   | Phone from business website (if `additionalData` enabled)     |
| `facebookWeb`    | Facebook URL from business website                            |
| `twitterWeb`     | Twitter/X URL from business website                           |
| `instagramWeb`   | Instagram URL from business website                           |
| `linkedinWeb`    | LinkedIn URL from business website                            |
| `youtubeWeb`     | YouTube URL from business website                             |
| `tiktokWeb`      | TikTok URL from business website                              |
| `pinterestWeb`   | Pinterest URL from business website                           |
| `categories`     | Array of all categories                                       |
| `rawAddress`     | Structured address object (country, street, city, state, zip) |
| `openingHours`   | Array of business hours strings                               |
| `reviewSnippet`  | Customer review excerpt                                       |
| `infoSnippet`    | Business info excerpt                                         |

### Pricing

This Actor uses **pay-per-result** pricing. Each stored result, email scrape, and additional data extraction is charged
as a separate event. Free-tier users are limited to **30 records** per run.

Enabling `additionalData` (website crawling) significantly increases crawl time and usage, as each business website is
visited and scraped individually.

### Tips

- Use specific keywords for better results (e.g., "Italian Restaurant" instead of "Food")
- Combine multiple locations by separating with commas (e.g., "CA, NY, TX")
- Start with `scrapeEmail: true` and `additionalData: false` for a quick, cost-effective run
- Enable `additionalData: true` only when you need social media and website contact data
- Set `maxItems` conservatively for your first run to test output quality
- Use the Apify Proxy with residential IPs to avoid rate limiting

### FAQ

**How accurate is the data?**
The Actor extracts data as it appears on Yellow Pages. Business owners update their own listings, so accuracy depends on
the source. Always verify critical data points.

**Why are some fields null?**
Not all businesses provide all information (e.g., some lack a website, email, or social media presence). Null values
indicate the data was not available on the listing.

**Can I scrape multiple keywords at once?**
Run the Actor multiple times with different keyword/location combinations, or combine keywords with commas (e.g.,
"Restaurants, Cafes").

**Issues or feedback?**
Report bugs or request features on the [Issues tab](https://apify.com/hulkscrape/yellowpages-scraper-us/issues/open). For custom enterprise solutions,
contact the Apify team.

# Actor input Schema

## `keywords` (type: `string`):

Find a business

## `locations` (type: `string`):

Where?

## `scrapeEmail` (type: `boolean`):

When enabled, visits each business's Yellow Pages profile to extract the email address shown on the listing page.

## `additionalData` (type: `boolean`):

When enabled, visits each business's own website to extract additional contact data: email, phone, and social media links (Facebook, Twitter, Instagram, LinkedIn, YouTube, TikTok, Pinterest). Significantly increases crawl time and usage.

## `maxItems` (type: `integer`):

Maximum number of outputted results.

## `useApifyProxy` (type: `boolean`):

Enable or disable Apify Proxy for requests.

## Actor input object example

```json
{
  "keywords": "Restaurants, Auto Repair",
  "locations": "CA, NY, NC, FL",
  "scrapeEmail": true,
  "additionalData": false,
  "maxItems": 100,
  "useApifyProxy": true
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("hulkscrape/yellowpages-scraper-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("hulkscrape/yellowpages-scraper-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 '{}' |
apify call hulkscrape/yellowpages-scraper-us --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yellow Pages Scraper Us",
        "description": "Scrape US business listings from Yellow Pages (yellowpages.com) by keyword and location. Extracts name, address, phone, email, website, ratings, reviews, hours, categories, and social media. Optionally visits business websites for extra contact data. Uses proxy rotation and pay-per-result pricing.",
        "version": "0.0",
        "x-build-id": "iJbg1Q24jokhUjdbW"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/hulkscrape~yellowpages-scraper-us/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-hulkscrape-yellowpages-scraper-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/hulkscrape~yellowpages-scraper-us/runs": {
            "post": {
                "operationId": "runs-sync-hulkscrape-yellowpages-scraper-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/hulkscrape~yellowpages-scraper-us/run-sync": {
            "post": {
                "operationId": "run-sync-hulkscrape-yellowpages-scraper-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",
                "required": [
                    "keywords"
                ],
                "properties": {
                    "keywords": {
                        "title": "Keyword(s)",
                        "type": "string",
                        "description": "Find a business",
                        "default": "Restaurants"
                    },
                    "locations": {
                        "title": "Location(s)",
                        "type": "string",
                        "description": "Where?",
                        "default": "CA"
                    },
                    "scrapeEmail": {
                        "title": "Scrape Individual Yellow Pages Profiles for Email",
                        "type": "boolean",
                        "description": "When enabled, visits each business's Yellow Pages profile to extract the email address shown on the listing page.",
                        "default": true
                    },
                    "additionalData": {
                        "title": "Enable Website Crawling (For Additional Data)",
                        "type": "boolean",
                        "description": "When enabled, visits each business's own website to extract additional contact data: email, phone, and social media links (Facebook, Twitter, Instagram, LinkedIn, YouTube, TikTok, Pinterest). Significantly increases crawl time and usage.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "type": "integer",
                        "description": "Maximum number of outputted results.",
                        "default": 100
                    },
                    "useApifyProxy": {
                        "title": "Use Apify Proxy",
                        "type": "boolean",
                        "description": "Enable or disable Apify Proxy for requests.",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
