# Yellow Pages Business Scraper — Leads & Contacts (No API Key) (`jamhimself/yellowpages-scraper`) Actor

Scrape Yellow Pages business listings — no API key, no login. Export name, phone, address, rating, reviews, hours & profile URL for lead gen & sales prospecting. Pay per result.

- **URL**: https://apify.com/jamhimself/yellowpages-scraper.md
- **Developed by:** [Jaime Martinez](https://apify.com/jamhimself) (community)
- **Categories:** Lead generation, Agents, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 business listings

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Yellow Pages Business Scraper (No API Key)

Scrape Yellow Pages business listings into a clean, structured lead list — no API key, no login. Search any category and location (or paste Yellow Pages search URLs) and export every local business with its **name, phone number, full address (street, city, state/region, ZIP, country), rating, review count, opening hours, and profile URL**. Built for lead generation, sales prospecting, and local business data collection, this Yellow Pages scraper delivers bulk contact details for developers, sales teams, marketers, analysts, and AI/RAG pipelines — pay per result, no subscription.

Reliability comes from Chrome TLS impersonation (curl\_cffi) over residential US proxies with per-request session and fingerprint rotation, so the scraper clears anti-bot walls and returns consistent results.

### ⚡ Quick start

Paste this into the Actor's **Input** (JSON view) and hit **Start**:

```json
{
  "searchTerm": "plumbers",
  "location": "Los Angeles, CA",
  "maxResults": 50
}
```

Each result row looks like:

```json
{
  "name": "Hansen Bros Plumbing & Rooter",
  "phone": "(213) 555-0142",
  "street": "515 W 7th St",
  "city": "Los Angeles",
  "region": "CA",
  "postalCode": "90014",
  "rating": 4.8,
  "reviewCount": 127,
  "url": "https://www.yellowpages.com/los-angeles-ca/mip/hansen-bros-plumbing-rooter-8412345"
}
```

Or run it from the API:

```
POST https://api.apify.com/v2/acts/jamhimself~yellowpages-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
```

### What you get

Each business record contains:

| Field | Description |
|---|---|
| `name` | Business name |
| `phone` | Phone number |
| `street` | Street address |
| `city` | City |
| `region` | State / region |
| `postalCode` | ZIP / postal code |
| `country` | Country |
| `rating` | Aggregate rating value |
| `reviewCount` | Number of reviews |
| `openingHours` | Hours of operation |
| `url` | Yellow Pages profile URL |

### Use cases

- **B2B lead generation & sales prospecting** — build targeted call and email lists of local businesses by category and city.
- **Local SEO & competitor monitoring** — track competing listings, ratings, and review counts across a market.
- **Market & territory research** — quantify business density, coverage, and reputation by region or ZIP code.
- **CRM & dataset building** — enrich or seed a CRM with fresh, structured local business contact data.
- **LLM / RAG feed** — pipe clean local business listings into AI agents, retrieval pipelines, and knowledge bases.
- **Directory & aggregator building** — collect business listings to power niche directories, maps, or comparison sites.

### Input

| Param | Description | Example |
|---|---|---|
| `searchTerm` | What to search for | `plumbers` |
| `location` | City and state | `Los Angeles, CA` |
| `startUrls` | Or paste full Yellow Pages search URLs | `https://www.yellowpages.com/los-angeles-ca/plumbers` |
| `maxResults` | Max businesses per search (auto-paginates) | `100` (default; up to `3000`) |

Provide `searchTerm` + `location`, or one or more `startUrls`. Pagination is handled automatically.

### Pricing

Pay per business result delivered. No subscription.

*A quick review on the Apify Store really helps.*

# Actor input Schema

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

What to search for, e.g. "plumbers" or "coffee shops".

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

City and state, e.g. "Los Angeles, CA".

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

Full Yellow Pages search URLs, e.g. https://www.yellowpages.com/los-angeles-ca/plumbers

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

Maximum businesses to return per search.

## Actor input object example

```json
{
  "searchTerm": "plumbers",
  "location": "Los Angeles, CA",
  "maxResults": 100
}
```

# Actor output Schema

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

One row per business: name, phone, address, rating, hours.

# 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": "Los Angeles, CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jamhimself/yellowpages-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 = {
    "searchTerm": "plumbers",
    "location": "Los Angeles, CA",
}

# Run the Actor and wait for it to finish
run = client.actor("jamhimself/yellowpages-scraper").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": "Los Angeles, CA"
}' |
apify call jamhimself/yellowpages-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fg5OgVbLieEEAvYOH/builds/jfyj4fhUU7iCXiswM/openapi.json
