# YellowPages Scraper & Email Extractor (Cloudflare Bypass) USA (`zenox-agency/my-actor-1`) Actor

Premium YellowPages scraper with fully integrated Cloudflare bypass. Extracts verified business leads, phones,Business names,review,primary image,website url,address, emails, and 6-channel social profiles. All-inclusive flat pricing—no hidden proxy or platform compute fees.

- **URL**: https://apify.com/zenox-agency/my-actor-1.md
- **Developed by:** [Zenox agency](https://apify.com/zenox-agency) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$5.00 / 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

## YellowPages Leads Scraper

Collect public business listings from YellowPages.com by keyword and location, and optionally scan each business's own website for contact details. Results are saved to an Apify Dataset that you can download as CSV, Excel or JSON, or send to Google Sheets, Zapier, Make and other tools through Apify integrations.

### What it does

1. Searches YellowPages.com for your keyword and location (for example "plumber" in "Austin, TX").
2. Reads each result page and follows the "Next" link until `Max Pages` is reached or there are no more pages.
3. If **Find emails & social links** is on, it opens each business's own website (when the listing has one) and looks for a public email address, social profiles and basic business details.

### Input

| Field | Description | Default |
|---|---|---|
| Search Keyword | Business category or name to search | `real estate` |
| Target Location | City and state, or ZIP code | `Los Angeles, CA` |
| Max Pages | Maximum number of result pages to read | `5` |
| Find emails & social links | Visit each business website for extra details | on |
| Proxy | Proxy settings. Residential proxy is recommended | Apify Residential |

> **Proxy:** Leave the Proxy setting at its default (Apify Residential, US). It is configured automatically. Changing it to datacenter proxies will likely cause blocking.

### Output

Each dataset item looks like this:

```json
{
  "name": "Example Realty",
  "phone": "(310) 555-1234",
  "website": "https://www.example-realty.com",
  "email": "info@example-realty.com",
  "address": "123 Main St, Los Angeles, CA 90001",
  "categories": "Real Estate; Real Estate Agents",
  "ypUrl": "https://www.yellowpages.com/los-angeles-ca/mip/example-realty-123456",
  "rating": "4.5 (23 reviews)",
  "photo": "https://example.com/photo.jpg",
  "facebook": "https://www.facebook.com/examplerealty",
  "instagram": "Not Found",
  "linkedin": "Not Found",
  "twitter": "Not Found",
  "youtube": "Not Found",
  "tiktok": "Not Found"
}
```

A field that could not be found is filled with the text `Not Found`.

### Please read: what to expect

- **Not every field is filled.** Many listings have no website, and many websites do not publish an email address. Email, social links, rating and photo depend on what the business itself makes public. Expect a lot of `Not Found` values.
- **Blocking can happen.** YellowPages uses anti-bot protection. The Actor uses a stealth browser, rotating proxy IPs and automatic retries to reduce blocking, but it **cannot guarantee** access. If a page stays blocked after several retries, the run stops and keeps the results collected so far, so a run can return fewer results than you asked for.
- **Use a residential proxy** for the best chance of success. Datacenter proxies are far more likely to be blocked. Proxy usage has its own cost on your Apify account.
- **Website changes.** If YellowPages changes its page layout, some fields may come back empty until the Actor is updated. Please report this through the Issues tab.
- **Emails are only taken from public pages** of the business's own website. The Actor does not guess or generate email addresses, and it does not verify that an address is active.
- **Speed.** Scanning websites makes a run slower. Turn off **Find emails & social links** for faster runs with listing data only.

### Responsible use and legal notice

This Actor collects publicly visible business information. You are responsible for how you use the data.

- Check YellowPages' Terms of Service and the laws that apply to you before scraping or using the results.
- If you use the emails for marketing, follow rules such as CAN-SPAM (US), GDPR and ePrivacy (EU/UK) and similar laws where your recipients live. Include an unsubscribe option and respect opt-out requests.
- Do not use the data for harassment, fraud or any unlawful purpose.

This Actor is not affiliated with, endorsed by or connected to YellowPages or Thryv. This README is not legal advice.

### Tips for better results

- Start with `Max Pages = 1` to check that the output suits you.
- For large jobs, run several smaller searches (different cities or categories) instead of one very large run.
- Use specific keywords and a clear location, for example `Austin, TX`.

### Pricing

See the **Pricing** section on this Actor's page for the current price. Platform and proxy costs are shown in your Apify usage.

### Support

Found a bug or a layout change? Open a ticket in the **Issues** tab and include the run link.

# Actor input Schema

## `searchKeyword` (type: `string`):

Business category to search (e.g. real estate, plumber)

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

City, State or ZIP (e.g. Los Angeles, CA)

## `maxPages` (type: `integer`):

Maximum number of result pages to scrape

## `enrichWebsites` (type: `boolean`):

Visit each business website to find email, social profiles, rating, photo, phone and address (slower).

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

Residential proxy is strongly recommended for Cloudflare / IP-block protection.

## Actor input object example

```json
{
  "searchKeyword": "real estate",
  "location": "Los Angeles, CA",
  "maxPages": 5,
  "enrichWebsites": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

Collected business leads (open to view, or download as CSV / Excel / JSON)

# 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 = {
    "searchKeyword": "real estate",
    "location": "Los Angeles, CA",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zenox-agency/my-actor-1").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 = {
    "searchKeyword": "real estate",
    "location": "Los Angeles, CA",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("zenox-agency/my-actor-1").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 '{
  "searchKeyword": "real estate",
  "location": "Los Angeles, CA",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call zenox-agency/my-actor-1 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zenox-agency/my-actor-1"
        }
    }
}
```

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/JSn4wy5qVCSllUg6Z/builds/I8mGcEEptOoM567Vt/openapi.json
