# Whitepages Public Directory Scraper (`bovi/whitepages-scraper`) Actor

Collect public Whitepages person-profile links. Get displayed names, absolute profile URLs, and state codes when present. Run with nameContains, stateCode, maxResults, and optional proxy settings. Pricing: $0.01 per dataset item and $0.00005 per actor-start event on Free.

- **URL**: https://apify.com/bovi/whitepages-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 whitepages public directory scrapers

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

## Whitepages Public Directory Scraper

Whitepages Public Directory Scraper reads the public person-profile links displayed on the Whitepages homepage. It returns displayed names, absolute profile URLs, and state codes when present. Pricing is listed in the Pricing section. No login or API key is needed; the default run goes through Apify residential proxy.

- Extract displayed names and profile URLs into dataset records, for example to seed a list of names or states for further directory work.
- Filter public person links by a case-insensitive name substring.
- Filter the links with the optional two-letter `stateCode` input.
- Keep collection limited to fields exposed in the public links, without adding phone numbers, addresses, ages, or dates.

### What you get

The Actor reads person-profile links displayed on the Whitepages homepage. It does not submit a Whitepages search or open full profile pages.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Person name as displayed in the public Whitepages directory link. |
| `url` | string | Yes | Absolute Whitepages profile URL from the directory link. |
| `state` | string | No | Two-letter state code taken from the profile URL. |

The Actor returns only these fields.

### Sample output

The sample below shows one real record from the dataset sample.

```json
{
  "name": "Richard Brewer",
  "url": "https://www.whitepages.com/name/Richard-Brewer/OH",
  "state": "OH"
}
```

### Pricing

Pricing charges per event.

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

| Charge event | Applies when | Price on the Free plan |
| --- | --- | --- |
| `apify-actor-start` | The Actor starts; one event is charged per GB of run memory, with a minimum of one event. | $0.00005 per event on the Free plan; $0.05 per 1,000 events on the Free plan; $0.50 per 10,000 events on the Free plan |
| `apify-default-dataset-item` | One scraped result with all fields is written. | $0.01 per dataset item on the Free plan; $10.00 per 1,000 items on the Free plan; $100.00 per 10,000 items on the Free plan |

Worked example: **100 dataset items cost $1.00 on the Free plan**; each `apify-actor-start` event adds **$0.00005 on the Free plan**, charged once per GB of run memory with a minimum of one event.

The Apify Free plan includes **$5 of monthly platform usage credit**. The Free plan's $5 credit covers **499 dataset items**, because 499 items cost $4.99 and the start event adds $0.00005.

### How to use

1. **Open** the Whitepages Public Directory Scraper in your Apify account.
2. **Enter** a value in `nameContains` to keep names containing a case-insensitive substring, or leave it empty to apply no name filter.
3. **Enter** a two-letter value in `stateCode` to keep only links whose profile URL exposes that state code.
4. **Set** `maxResults` to the maximum number of records to write. The default is 50, and the schema requires a value of at least 1.
5. **Optionally adjust** `proxyConfiguration`; it defaults to Apify Proxy with the `RESIDENTIAL` group.
6. **Start** the run and review the structured records in the default dataset. The Actor fetches the homepage and uses a fallback variant only if the previous one returns 403/406, parses matching links, applies the filters, and enforces `maxResults` before sending records to the dataset. A run with zero matching records still pays the start event.
7. **Repeat** the run with Apify Schedules.

Example input:

```json
{
  "nameContains": "Richard",
  "stateCode": "OH",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the default dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
| --- | --- | --- |
| `nameContains` | Optional case-insensitive substring filter for names shown in public directory links. The Actor trims the value and compares it without case sensitivity. | `""` |
| `stateCode` | Optional state filter. The Actor trims the value, converts it to uppercase, and keeps only records whose `state` matches it. Links without a state code do not match a non-empty filter. | `""` |
| `maxResults` | Maximum number of records to write. Records are limited before they are sent to the dataset. | `50` |
| `proxyConfiguration` | Optional Apify proxy settings. The Actor uses no proxy when this is missing or `useApifyProxy` is false. | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` |

### Limits and edge cases

| Condition | What the buyer sees | What to do |
| --- | --- | --- |
| The homepage contains no matching public profile links. | The run emits no matching records. | Clear or broaden `nameContains` and `stateCode`, then run again. |
| A link does not include a two-letter state code in its profile URL. | No state code is available from that URL. | Leave `stateCode` empty if you want to include the link. |
| A non-empty `stateCode` filter is used. | Links without a state code do not match, even if their names match. | Use a two-letter state code or leave the filter empty. |
| A link is not a Whitepages `/name/...` profile path or has no displayed anchor text. | The link is not emitted as a record. | Use the public profile links that are exposed on the homepage. |
| The same canonical profile URL appears more than once on the page. | The URL is emitted only once. | No action is required. |
| Planning how many records one run can return. | The output is bounded by the person links present on a single Whitepages homepage load, and these links change over time. `maxResults` of 50 is only a ceiling, not a promised count. | Expect a limited set per run. Filters such as the example `nameContains` "Richard" with `stateCode` "OH" may return few records or none. |
| `maxResults` is set. | No more than the requested number of matching records is sent to the dataset. | Increase the value if you need more of the links found on the page. The input schema requires at least `1`. |
| Whitepages returns a 403 or 406 response. | The Actor tries the next variant only after a 403 or 406: first the homepage, then `?consent=true`, then `?locale=es`. It emits no records, and logs a warning, only if all three variants are blocked. | Retry the run later, and keep the default Apify proxy configuration (`useApifyProxy` true, `RESIDENTIAL`) enabled. |
| A request raises another exception. | The Actor retries the request up to three attempts for that homepage variant. If the exception remains after the third attempt, it is raised and the run can fail instead of producing a normal result. | Review the run log and retry the run. |

### FAQ

#### How much does it cost to scrape Whitepages?

See the Pricing section for the Free-plan event prices and worked example.

#### Why did my run not return records?

See the Limits and edge cases table for empty results, blocked homepage variants, and request exceptions.

#### Does this Actor collect full Whitepages profiles?

No. Each record is limited to the displayed name, the absolute profile URL, and the two-letter state code when that code is present in the URL. It does not add phone numbers, addresses, ages, dates, or other profile details.

#### Is it legal to use the public Whitepages data?

The Actor collects public person-profile links displayed on the Whitepages homepage. Whether a particular use is allowed depends on the Whitepages source terms, applicable law, and the buyer’s use case; review those requirements before using the data.

# Actor input Schema

## `nameContains` (type: `string`):

Optional case-insensitive substring filter for names shown in the public directory links.

## `stateCode` (type: `string`):

Optional two-letter US state filter, such as WA. Only links that expose a state code match.

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

Maximum number of public profile links to return.

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

Optional Apify proxy settings. The actor uses no proxy when this is missing or useApifyProxy is false.

## Actor input object example

```json
{
  "nameContains": "",
  "stateCode": "",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with public profile-link records.

# 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 = {
    "nameContains": "",
    "stateCode": "",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/whitepages-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 = {
    "nameContains": "",
    "stateCode": "",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/whitepages-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 '{
  "nameContains": "",
  "stateCode": "",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/whitepages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/whitepages-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/HizUa7rePWOMm81UJ/builds/F3kyWgkKYkEFmCiYk/openapi.json
