# Realtor Email Scraper (`w3crawler/realtor-email-scraper`) Actor

Extract publicly displayed Realtor.com agent names, email addresses, phones, brokerages, and profile URLs.

- **URL**: https://apify.com/w3crawler/realtor-email-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 emails

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Realtor Email Scraper

Extract **explicitly published Realtor.com agent email addresses** from named public agent profiles or identified agent cards. Each saved contact stays tied to a verified public Realtor.com agent profile URL and can include public name, phone, brokerage, title, specialties, service areas, address, website, and source pagination fields when exposed. Runs are API-accessible, schedulable, proxy-capable, and monitored through the Apify platform.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/realtor-email-scraper) and select **Try for free**, or open the **Input** tab.
2. Add public Realtor.com agent directory or profile URLs to `startUrls`, or leave it empty and set `location` and an optional `keyword`. The Actor builds a directory route from the location.
3. Keep `maxItems` at 100 and `maxPages` at 2 for the first run. Keep `includeDetails` enabled to visit discovered profiles for email enrichment.
4. Start the Actor, open the dataset, and export the saved contacts as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `startUrls` | object array | Optional | `[]` | Public agent directory or profile URLs, up to 20. When empty, `location` and `keyword` build the directory route. |
| `location` | string | Optional | `"New York, NY"` | City/state path used when no start URLs are supplied, up to 160 characters. |
| `keyword` | string | Optional | Not supplied | Agent-directory keyword appended to the location route, up to 120 characters. |
| `maxItems` | integer | Optional | `100` | Maximum unique public email contacts to save, 1–500. |
| `maxPages` | integer | Optional | `2` | Maximum observed directory pages to request per start URL, 1–10. |
| `includeDetails` | boolean | Optional | `true` | Request selected public agent profiles discovered from directory pages. |
| `maxDetailItems` | integer | Optional | `10` | Maximum profile pages requested for email enrichment, 0–50. |
| `includeDiagnostics` | boolean | Optional | `true` | Write minimal diagnostic rows for blocked, failed, or empty public routes. |
| `requestTimeoutSeconds` | integer | Optional | `45` | Maximum time allowed for each public page request, 5–120 seconds. |
| `requestDelayMs` | integer | Optional | `500` | Delay between requests and retry attempts, 0–10,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Maximum retries for transient public failures, 0–3. |
| `userAgent` | string | Optional | Not supplied; runtime Chrome UA | Transparent HTTP user-agent value, up to 300 characters. |
| `acceptLanguage` | string | Optional | Not supplied; runtime `en-US,en;q=0.8` | Language preference sent with the public request, up to 120 characters. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings. Public access controls are not bypassed. |

Full default input:

```json
{
  "startUrls": [],
  "location": "New York, NY",
  "maxItems": 100,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 10,
  "includeDiagnostics": true,
  "requestTimeoutSeconds": 45,
  "requestDelayMs": 500,
  "maxRequestRetries": 1
}
```

With empty `startUrls`, the route is `https://www.realtor.com/realestateagents/<location>` with the optional keyword appended. The Actor reads public data from Realtor.com; optional `proxyConfiguration` uses the standard Apify Proxy settings.

### Output

The dataset contains one **email contact** per unique published email, plus, when `includeDiagnostics` is `true`, minimal diagnostic rows for blocked, failed, or empty routes. A contact is only saved when the page exposes both a named public agent and an explicitly published email with a verified profile URL. Optional fields are omitted when the source does not publish them; addresses are never guessed.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always for contacts | Stable email-and-profile contact identity. |
| `sourceUrl` | string | Always for contacts | Public directory or profile route that produced the row. |
| `pageUrl` | string | Always for contacts | Public page actually parsed. |
| `searchUrl` | string | Always for contacts | Directory route associated with the contact. |
| `profileUrl` | string | Always for contacts | Verified public Realtor.com agent profile route. |
| `agentId` | string | When exposed | Public source agent identifier. |
| `name` | string | Always for contacts | Public agent name associated with the email. |
| `email` | string | Always for contacts | Email explicitly published on the public profile or identified agent card. |
| `phone` | string | When exposed | Public agent phone. |
| `brokerage` | string | When exposed | Public brokerage or office name. |
| `title` | string | When exposed | Public agent title. |
| `specialties` | string array | When exposed | Public specialties or services. |
| `serviceAreas` | string array | When exposed | Publicly displayed service areas. |
| `address` | string | When exposed | Public office or profile address. |
| `websiteUrl` | string | When exposed | Public external website URL. |
| `pageNumber` | integer | Always for contacts | Observed directory page number. |
| `position` | integer | Always for contacts | Observed position on the source page. |
| `scrapedAt` | string | Always | UTC time when the contact was saved. |
| `url` | string | Always in diagnostic rows | Diagnostic public Realtor.com route. |
| `error` | string | Always in diagnostic rows | Bounded diagnostic message. |
| `errorCode` | string | Always in diagnostic rows | Stable diagnostic code. |

#### JSON output

```json
[]
```

No dataset row from a live run is stored in this repository, so an actual saved contact cannot be shown without fabricating values. The table above and `.actor/dataset_schema.json` define the shape; a successful run returns objects containing at least `recordId`, `sourceUrl`, `pageUrl`, `profileUrl`, `name`, `email`, and `scrapedAt`, plus whatever optional public fields the page exposes.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `status` | Run outcome: `SUCCEEDED`, `PARTIAL`, `BLOCKED`, `FAILED`, or `NO_PUBLIC_DATA`. |
| `dataAvailable` | Whether at least one email contact was saved. |
| `sourceCount` | Number of directory or profile routes used for the run. |
| `pagesRequested` | Unique pages requested, including detail pages. |
| `pagesVisited` | Pages for which a request completed, including failed pages. |
| `pagesFailed` | Pages that could not be loaded. |
| `requestsAttempted` | Page requests started; retries are counted separately. |
| `retryCount` | Retries performed after transient failures. |
| `itemsStored` | Email contacts saved, excluding diagnostic rows. |
| `diagnosticsStored` | Diagnostic rows written; zero when `includeDiagnostics` is `false`. |
| `failedUrls` | Unique URLs that failed. |
| `proxyConfigured` | Whether Apify Proxy was configured. |
| `finishedAt` | Time the summary was written, in ISO UTC. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | Contacts were saved and no diagnostic was detected. |
| `PARTIAL` | Contacts were saved, and at least one route or page produced a diagnostic. |
| `BLOCKED` | No contact was saved and an access challenge or blocked source response was seen. |
| `FAILED` | No contact was saved and a page failed for another reason. |
| `NO_PUBLIC_DATA` | No contact was saved and no page failure was recorded. |

Example `OUTPUT_SUMMARY`:

```json
[]
```

No saved `OUTPUT_SUMMARY` from a live run exists in this repository, so no example object is invented. The field table above matches `.actor/key_value_store_schema.json`.

### Coverage and limitations

The Actor reads public Realtor.com directory and profile pages. It does not log in, solve CAPTCHAs, fingerprint browsers, call private endpoints, scrape unrelated footer emails, guess address patterns, or bypass access controls. A page that does not explicitly publish an email for a named agent does not produce a contact.

`includeDetails` requests up to `maxDetailItems` discovered profile pages, which is usually where public emails appear. Without it, only emails already visible on directory cards are captured. Pagination follows observed next links up to `maxPages`.

A contact requires a verified agent profile route; an email on a generic page, a brokerage footer, or an unverified card is not saved. Duplicate emails are removed, so one published address produces one row even if it appears on multiple pages. Optional fields reflect what the public page exposed at collection time.

This Actor has no archived-page fallback: blocked, failed, and empty routes are reported in `OUTPUT_SUMMARY`, and with `includeDiagnostics` enabled they also add a four-field diagnostic row to the dataset. Realtor.com can change its pages or remove profiles at any time.

Realtor.com's terms restrict automated collection and may require express written permission. Confirm that you have the necessary permission and that your use complies with those terms before running the Actor. Email addresses are personal information; use the output only for lawful purposes and do not use it for unsolicited contact.

### Usage and support

A location-based directory run:

```json
{
  "location": "New York, NY",
  "maxItems": 100,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 10
}
```

A keyword-filtered directory run:

```json
{
  "location": "Austin, TX",
  "keyword": "luxury",
  "maxItems": 50,
  "maxPages": 1,
  "includeDetails": true
}
```

A direct public profile route:

```json
{
  "startUrls": [
    {
      "url": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444"
    }
  ],
  "maxItems": 5,
  "maxPages": 1,
  "includeDetails": false
}
```

Use `proxyConfiguration` only when ordinary Apify Proxy routing is needed, and raise `requestDelayMs` if Realtor.com rate-limits. Keep `maxItems`, `maxPages`, and `maxDetailItems` small while testing.

Cost depends on Apify compute, directory and profile requests, retries, proxy usage, and the Actor resource allocation. Start with one location or profile, inspect the dataset and `OUTPUT_SUMMARY`, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/realtor-email-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Realtor.com, Move, Inc., or the National Association of REALTORS®. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Actor input Schema

## `startUrls` (type: `array`):

Public agent-directory or profile routes. If omitted, location and keyword build a directory route.

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

Optional city/state path used when no startUrls are provided.

## `keyword` (type: `string`):

Optional agent-directory keyword used to build a search route.

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

Maximum number of unique public email contacts to emit.

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

Maximum observed directory pages to request per start URL.

## `includeDetails` (type: `boolean`):

Request selected public agent profiles discovered from directory pages.

## `maxDetailItems` (type: `integer`):

Maximum profile pages requested for email enrichment.

## `includeDiagnostics` (type: `boolean`):

Emit minimal diagnostics for blocked, failed, or empty public routes.

## `requestTimeoutSeconds` (type: `integer`):

Maximum time allowed for each public page request.

## `requestDelayMs` (type: `integer`):

Delay between requests and retry attempts.

## `maxRequestRetries` (type: `integer`):

Maximum retries for transient public failures.

## `userAgent` (type: `string`):

Optional transparent HTTP user-agent value.

## `acceptLanguage` (type: `string`):

Optional language preference for the public request.

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

Optional Apify proxy settings. Public access controls are not bypassed.

## Actor input object example

```json
{
  "startUrls": [],
  "location": "New York, NY",
  "maxItems": 100,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 10,
  "includeDiagnostics": true,
  "requestTimeoutSeconds": 45,
  "requestDelayMs": 500,
  "maxRequestRetries": 1
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/realtor-email-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/realtor-email-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 '{}' |
apify call w3crawler/realtor-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/realtor-email-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/cFCbz3apBYeQPDcbU/builds/czXzEsjPd6WwJ1ys3/openapi.json
