# Yellow Pages Scraper — US Business Leads & Phones (`rbbscrap/yellowpages-scraper`) Actor

Extract real-time US local business leads, verified phone numbers, addresses, ratings, categories, and websites from YellowPages.com on 256MB RAM.

- **URL**: https://apify.com/rbbscrap/yellowpages-scraper.md
- **Developed by:** [Hector](https://apify.com/rbbscrap) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.70 / 1,000 verified business leads

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

<p align="center">
  <img src="https://apify.com/rbbscrap/yellowpages-scraper/icon.png" width="110" height="110" style="border-radius: 24px;" alt="Yellow Pages Scraper — US Business Leads & Phones Official Logo" />
</p>

## Yellow Pages Scraper — US Business Leads & Phones

**yellowpages-scraper** extracts structured Yellow Pages US local businesses in real time. Built on a zero-browser HTTP/2 engine running in **256 MB RAM**, it delivers normalized datasets with **zero `null` fields** ready for **CSV, Excel, JSON**, or API pipelines.

> **Looking for related scrapers?** Check out [Google Maps Scraper](https://apify.com/rbbscrap/google-maps-scraper), [Yelp Scraper](https://apify.com/rbbscrap/yelp-scraper), [Contact & Email Extractor](https://apify.com/rbbscrap/contact-info-scraper), [Bing Search Scraper](https://apify.com/rbbscrap/bing-search-scraper), or browse our [full catalog of 120+ dedicated scrapers](https://apify.com/rbbscrap).

***

### What does Yellow Pages Scraper do?

Extract real-time US local business leads, verified phone numbers, addresses, ratings, categories, and websites from YellowPages.com on 256MB RAM.

Whether you need to monitor Yellow Pages US local businesses at scale, enrich B2B/B2C databases, or feed structured records into analytics and AI workflows, **yellowpages-scraper** handles pagination, field normalization, and schema validation automatically:

- **Bulk Data Extraction:** Collect records in batches using search queries, location filters, or direct target URLs.
- **Complete Public Metadata:** Capture identifiers, pricing/engagement metrics, contact details, timestamps, and canonical URLs.
- **Multi-Format Export:** Download results in **JSON, CSV, Excel (XLSX), XML, or HTML Table** directly from the Apify Console.
- **Ready for Automation & AI:** Connect seamlessly to [Apify Integrations](https://apify.com/integrations) (Make, Zapier, n8n, Google Sheets), [REST API endpoints](https://apify.com/rbbscrap/yellowpages-scraper/api), or the [Apify MCP Server](https://apify.com/rbbscrap/yellowpages-scraper/api/mcp).

#### Beyond the Official API

- **No API Keys or Approval Delays:** Start extracting public data immediately without registering developer accounts or waiting for access tokens.
- **No Restrictive Rate Quotas:** Bypass rigid per-minute caps while capturing the complete public data displayed on the platform.
- **256 MB Zero-Browser Architecture:** Uses native HTTP/2 and TLS session emulation instead of heavy Chromium instances, executing in seconds at a fraction of standard compute costs.

***

### What data can you scrape?

| Data Category | Extracted Fields & Data Points |
| :--- | :--- |
| **Business Identity** | `id`, `name`, `categories`, `isClaimed`, `yearsInBusiness` |
| **Contact & Location** | `phone`, `website`, `streetAddress`, `locality`, `region`, `postalCode` |
| **Reputation & Links** | `rating`, `reviewCount`, `ypUrl`, `scrapedAt` |

***

### Why scrape Yellow Pages Scraper? (Typical Use Cases)

You can use **yellowpages-scraper** for a wide range of data-driven workflows:

- **Competitive & Market Intelligence:** Track real-time listings, pricing shifts, volume velocity, and competitor catalog changes without manual copy-pasting.
- **B2B Lead Generation & CRM Enrichment:** Extract structured records to enrich pipelines in HubSpot, Salesforce, Clay, Pipedrive, or Airtable.
- **Trend Detection & Sentiment Monitoring:** Analyze customer ratings, review volume, and marketplace feedback to identify high-converting niches early.
- **AI Agents, RAG & LLM Pipelines:** Feed clean, normalized, zero-null datasets directly into vector databases (Pinecone, Qdrant), autonomous AI agents, and LLM workflows.
- **Automated Alerts & Scheduled Refreshes:** Schedule periodic runs on Apify and trigger automated webhooks directly into Make, n8n, or Slack.

***

### How to scrape data in 4 steps

1. **Open the Input Tab:** Navigate to the **Input** tab on this Actor's page.
2. **Configure Your Search:** Enter your search queries, location, or keep the pre-filled defaults for an instant 1-Click Run.
3. **Click Start:** Hit the orange **Start** button. The scraper executes in seconds on a lightweight 256MB container.
4. **Export Your Dataset:** Download your clean data in **JSON, CSV, Excel, XML**, or query it via the Apify REST API.

***

### ⬇️ Input Configuration & Examples

#### Input Parameters Reference

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `searchTerms` | `array` | `["plumber"]` | Business categories or service terms to search (e.g. plumbers, dentists, attorneys, electricians). |
| `location` | `string` | `"Austin, TX"` | US city, state or ZIP code (e.g. Austin, TX, Los Angeles, CA, 90210). |
| `maxItems` | `integer` | `30` | Maximum number of verified business leads to collect. |
| `sortBy` | `string` | `"default"` | Order of business listings. |
| `hasPhone` | `boolean` | `false` | Only keep business leads with a verified public telephone number. |
| `hasWebsite` | `boolean` | `false` | Only keep leads that provide an official external website URL. |
| `minRating` | `number` | `0` | Filter businesses by minimum review rating (0 to 5.0). |
| `includeReviews` | `boolean` | `false` | Include the latest customer review quote when available. |
| `proxyConfiguration` | `object` | `{"useApifyProxy":false}` | Optional proxy settings for high-volume enterprise crawls. |

#### Input Examples

##### Example 1: Standard Search (1-Click Run)

```json
${JSON.stringify(example1Json, null, 2)}
```

##### Example 2: Advanced Filtered Run

```json
{
  "maxItems": 50,
  "sortBy": "rating"
}
```

***

### ⬆️ Output Example (Table View, JSON & Fields Reference)

#### Table View (CSV / Excel Preview)

| **id** | **name** | **phone** | **website** | **streetAddress** | **locality** |
| :--- | :--- | :--- | :--- | :--- | :--- |
| `yp_austin_plumbing_849201` | `Reliant Plumbing & Dra...` | `(512) 555-0194` | `https://reliantplumbin...` | `1204 S Congress Ave` | `Austin` |

#### JSON Output Example

```json
{
  "id": "yp_austin_plumbing_849201",
  "name": "Reliant Plumbing & Drain Service",
  "phone": "(512) 555-0194",
  "website": "https://reliantplumbingaustin.com",
  "streetAddress": "1204 S Congress Ave",
  "locality": "Austin",
  "region": "TX",
  "postalCode": "78704",
  "rating": 4.8,
  "reviewCount": 142,
  "categories": [
    "Plumbing Contractors",
    "Water Heater Repair",
    "Drain Cleaning"
  ],
  "yearsInBusiness": 18,
  "ypUrl": "https://www.yellowpages.com/austin-tx/mip/reliant-plumbing-849201",
  "isClaimed": true,
  "scrapedAt": "2026-11-11T16:00:00.000Z"
}
```

#### Output Fields Reference

| Field | Type | Description |
| :--- | :---: | :--- |
| `id` | `string` | Unique listing identifier on YellowPages |
| `name` | `string` | Full business or trade name |
| `phone` | `string` | Direct phone number formatted for dialing |
| `website` | `string` | Official company website URL |
| `streetAddress` | `string` | Physical street address |
| `locality` | `string` | City or municipality |
| `region` | `string` | Two-letter US state code (e.g. TX, CA) |
| `postalCode` | `string` | US 5-digit ZIP code |
| `rating` | `number` | YellowPages customer star rating (0.0 to 5.0) |
| `reviewCount` | `integer` | Total number of customer reviews |
| `categories` | `array` | Business classifications and industry tags |
| `yearsInBusiness` | `integer` | Number of verified years in business |
| `ypUrl` | `string` | Direct canonical YellowPages listing link |
| `isClaimed` | `boolean` | Whether the business profile has been verified by the owner |
| `scrapedAt` | `string` | ISO 8601 timestamp of extraction |

***

### 🔗 Related & Dedicated Scrapers

| Scraper | Slug | Primary Use Case |
| :--- | :--- | :--- |
| [Google Maps Scraper](https://apify.com/rbbscrap/google-maps-scraper) | `google-maps-scraper` | Extract local Google business places & reviews |
| [Yelp Scraper](https://apify.com/rbbscrap/yelp-scraper) | `yelp-scraper` | Local merchant leads, ratings & menu links |
| [Contact & Email Extractor](https://apify.com/rbbscrap/contact-info-scraper) | `contact-info-scraper` | Discover email addresses and social profiles from websites |
| [Bing Search Scraper](https://apify.com/rbbscrap/bing-search-scraper) | `bing-search-scraper` | Clean Bing SERP rankings & localized search results |

***

### ⚠️ Error Items & Resilience Reference

**yellowpages-scraper** is engineered with an enterprise fault-tolerant architecture:

- **Zero-Crash Batching:** If a single item is blocked or missing, the actor logs a structured warning and resumes extraction without failing the entire run.
- **Automatic Exponential Backoff:** Detects transient HTTP 429 and 503 rate limits and retries with jittered delays.
- **Zero-Null Guarantee:** All missing or optional attributes are normalized to valid empty values (`""`, `0`, or `[]`) to protect downstream database schemas.

***

### ❓ Frequently Asked Questions (FAQ)

#### How much does this scraper cost?

**yellowpages-scraper** uses a strictly transparent **PAY_PER_EVENT** pricing model charged at **$0.00035 per record** (**$0.35 per 1,000 items**), which is **10x cheaper** than competing solutions ($3.50 / 1,000 leads). Additionally, your **very first run is 100% FREE** ($0.00 charged) via Apify's persistent free trial store. Apify's $5 monthly free tier covers thousands of extractions every month!

#### Can I integrate this scraper with Make, Zapier, n8n, or Google Sheets?

Yes. Every dataset extracted can be automatically synced to Google Sheets, Airtable, Notion, or CRM systems via native [Apify Integrations](https://apify.com/integrations) or webhooks.

#### Can I use this scraper with the Apify API (Python & Node.js)?

Yes. Simply install the official Apify client library:

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("rbbscrap/yellowpages-scraper").call(run_input={"maxItems": 30})
```

#### Can I use this scraper as an MCP Server (Claude, Cursor, AI Agents)?

Yes. Connect directly via the Apify Model Context Protocol (MCP) server endpoint:
`https://api.apify.com/v2/acts/rbbscrap~yellowpages-scraper/api/mcp`

#### Do I need proxies or login cookies?

No. The scraper runs on an optimized HTTP/2 zero-browser engine with automated TLS fingerprint emulation that works out of the box without requiring personal credentials.

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

Yes. **yellowpages-scraper** exclusively extracts publicly accessible data in accordance with international web standards and EU Regulation 2016/679 (GDPR).

#### Need help, custom features, or found an issue?

Open a ticket directly on our [Issues Tracker](https://apify.com/rbbscrap/yellowpages-scraper/issues/open) — our team investigates and updates scrapers within 24 hours.

# Actor input Schema

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

Business categories or service terms to search (e.g. plumbers, dentists, attorneys, electricians).

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

US city, state or ZIP code (e.g. Austin, TX, Los Angeles, CA, 90210).

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

Maximum number of verified business leads to collect.

## `sortBy` (type: `string`):

Order of business listings.

## `hasPhone` (type: `boolean`):

Only keep business leads with a verified public telephone number.

## `hasWebsite` (type: `boolean`):

Only keep leads that provide an official external website URL.

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

Filter businesses by minimum review rating (0 to 5.0).

## `includeReviews` (type: `boolean`):

Include the latest customer review quote when available.

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

Optional proxy settings for high-volume enterprise crawls.

## Actor input object example

```json
{
  "searchTerms": [
    "plumber",
    "dentist"
  ],
  "location": "Austin, TX",
  "maxItems": 30,
  "sortBy": "default",
  "hasPhone": false,
  "hasWebsite": false,
  "minRating": 0,
  "includeReviews": false,
  "proxyConfiguration": {
    "useApifyProxy": 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",
        "dentist"
    ],
    "location": "Austin, TX",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("rbbscrap/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 = {
    "searchTerms": [
        "plumber",
        "dentist",
    ],
    "location": "Austin, TX",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("rbbscrap/yellowpages-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",
    "dentist"
  ],
  "location": "Austin, TX",
  "maxItems": 30
}' |
apify call rbbscrap/yellowpages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rbbscrap/yellowpages-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/EIIfOQK65KqsR5SoX/builds/5jq3tMUgjUc8ZsSAV/openapi.json
