# Yellow Pages USA Scraper | $1 / 1k | With Numbers (`fatihtahta/yellow-pages-us-scraper`) Actor

Scrape business listings from Yellow Pages USA (YellowPages.com). Including names, phones, websites, ratings, and addresses. Ideal for lead gen, territory mapping, or research. Clean, export-ready data. $2 / 1k listings.

- **URL**: https://apify.com/fatihtahta/yellow-pages-us-scraper.md
- **Developed by:** [Fatih Tahta](https://apify.com/fatihtahta) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 15 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$0.99 / 1,000 results

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 USA Scraper | $2 / 1k | Fast & Reliable

**Slug:** `fatihtahta/yellow-pages-usa-scraper`\
**Price:** **$2.00 per 1,000 saved listings**

Unlock local business intelligence from **YellowPages.com** in minutes. Whether you're prospecting for leads, enriching a directory, or mapping a territory, this actor turns any Yellow Pages search into a clean, structured dataset ready for outreach or analysis.

***

### 🚀 Why use this scraper?

- **U.S. coverage, coast-to-coast** – Capture businesses from all 50 states by city, ZIP code, neighborhood, or metro area.
- **Laser-focused targeting** – Combine category keywords with location filters to find the exact businesses you care about.
- **Rich business profiles** – Each item includes core contact details, categories, rating info, and when available, extras like website, phone, and hours.
- **Clean output formats** – Download results as JSON, CSV, Excel, or feed the dataset directly to your workflow.
- **Built for scale** – Handle long search result lists with confidence; simply set your preferred maximum results.

***

### 🧠 Typical use cases

- **Local lead generation:** Build call lists for sales reps, agencies, and service providers.
- **Territory research:** Understand the competitive landscape in any city or ZIP code.
- **Business directory enrichment:** Refresh listings with up-to-date details before publishing.
- **Market analysis:** Aggregate ratings, categories, and contact info for benchmarking studies.

***

### 📥 Input configuration

Configure the run from the **Input** tab. Key fields include:

- `searches` *(array of objects, required)* – Each entry describes a Yellow Pages search to perform. Use keyword + location pairs.
  - `keyword` *(string)* – Category, business type, or service (e.g., `plumbers`, `coffee shops`).
  - `location` *(string)* – City, state, ZIP, or neighborhood (e.g., `Austin, TX`, `30301`).
- `maxResultsPerSearch` *(integer, default `500`)* – Caps the number of listings saved for each search.
- `minRating` *(number, optional)* – Filter out listings below a certain star rating.
- `includeUnclaimed` *(boolean, default `true`)* – Toggle whether unclaimed businesses are saved.
- `proxyConfiguration` *(object, optional)* – Keep default settings unless you have a custom proxy preference.

> 💡 Tip: Start with a smaller `maxResultsPerSearch` (e.g., 100) to validate your targeting before scaling up.

***

### 🧪 Example input

```
{
    "maxResults": 120,
    "targetUrl": "https://www.yellowpages.com/search?search_terms=sushi&geo_location_terms=San+Francisco%2C+CA"
}
```

***

### 📦 Output (fields you can expect)

Each dataset item represents a single Yellow Pages listing with fields such as:

- `businessName`
- `category`
- `street`, `city`, `state`, `postalCode`
- `phone`
- `website`
- `rating`, `reviewCount`
- `isClaimed`
- `hours` *(array of `{ day, open, close }` when available)*
- `sourceUrl`
- `crawlTimestamp`

Download in JSON, CSV, Excel, or access via API.

***

### ▶️ How to run

1. **Open** **Yellow Pages USA Scraper | $2 / 1k | Fast & Reliable** in Apify Console.
2. **Add** your `searches` array and adjust optional filters.
3. **Set** `maxResultsPerSearch` to control volume.
4. **Start** the actor and monitor progress in the console.
5. **Download** the dataset once the run completes.

***

### 💸 Pricing

- **$2.00 per 1,000 saved listings.**
- You only pay for successfully stored results.

***

### ⚖️ Responsible use

This actor collects publicly available business information. Depending on your jurisdiction, the data may include personal data (e.g., owner names). Always ensure you have a lawful basis for processing, follow applicable regulations (GDPR/CCPA), respect do-not-call policies, and honor platform terms when using the data.

***

### ❓ Support

Need help or have custom requirements? Open an issue in the **Issues** tab of the actor page and we'll respond around the clock.

Happy scraping!\
**Fatih**

# Actor input Schema

## `targetUrl` (type: `string`):

enter the url of the yellowpages.com list that you want to scrape.

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

The maximum number of contacts to scrape.

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

The default Apify Residential proxy keeps the scraper reliable.

## Actor input object example

```json
{
  "targetUrl": "https://www.yellowpages.com/search?search_terms=sushi&geo_location_terms=San+Francisco%2C+CA",
  "maxResults": 50000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "targetUrl": "https://www.yellowpages.com/search?search_terms=sushi&geo_location_terms=San+Francisco%2C+CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihtahta/yellow-pages-us-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 = { "targetUrl": "https://www.yellowpages.com/search?search_terms=sushi&geo_location_terms=San+Francisco%2C+CA" }

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/yellow-pages-us-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 '{
  "targetUrl": "https://www.yellowpages.com/search?search_terms=sushi&geo_location_terms=San+Francisco%2C+CA"
}' |
apify call fatihtahta/yellow-pages-us-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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