# 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:** 17 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/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 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(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 '{
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fatihtahta/yellow-pages-us-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/b96WVd5TPs1mgMSQk/builds/Ras3XqeNxBMm3LEj9/openapi.json
