# Realtor Agent Phone Scraper (`w3crawler/realtor-agent-phone-scraper`) Actor

Extract publicly displayed Realtor.com agent details using a public profile URL or profile identifiers.

- **URL**: https://apify.com/w3crawler/realtor-agent-phone-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 agent phones

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 Agent Phone Scraper

Extract **publicly displayed Realtor.com agent contact and profile details** from agent profile pages, profile IDs, or public agent directories. Saved records can include names, public phones and email, brokerage and office address, license, biography, specialties, areas served, ratings, reviews, public listing and sale rows, media, and optional testimonials when the page exposes them. 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-agent-phone-scraper) and select **Try for free**, or open the **Input** tab.
2. Add public Realtor.com profile URLs to `startUrls`, or add profile IDs to `profileIds`. Source lists can be left empty because related-agent discovery is enabled by default.
3. Keep `maxItems` small for the first run. Disable listing, review, or testimonial enrichment if you only need contact details.
4. Start the Actor, open the dataset, and export the saved records 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 | Not supplied | Public HTTPS Realtor.com profile URLs under `/realestateagents/`, up to 50. Custom URLs take precedence over `profileIds`. |
| `profileIds` | string array | Optional | Not supplied | Public profile IDs used in `/realestateagents/{profileId}` URLs, up to 50. Ignored when the same source is already supplied in `startUrls`. |
| `fulfillmentIds` | string array | Optional | Not supplied | Context identifiers, up to 50. They never generate guessed URLs; with `includeDiagnostics` enabled, a non-empty array adds an `IDENTIFIER_NOT_RESOLVED` diagnostic. |
| `nrdsIds` | string array | Optional | Not supplied | Context identifiers, up to 50. They never generate guessed URLs; with `includeDiagnostics` enabled, a non-empty array adds an `IDENTIFIER_NOT_RESOLVED` diagnostic. |
| `maxItems` | integer | Optional | `50` | Maximum profile pages requested and records saved, 1–200. |
| `includeListings` | boolean | Optional | `true` | Include bounded public listing and sale rows found in the profile payload or page links. |
| `maxListings` | integer | Optional | `25` | Maximum listing or sale rows retained per profile, 0–100. `0` disables listing rows. |
| `includeReviews` | boolean | Optional | `true` | Include bounded public review summaries exposed by the profile page. |
| `maxReviews` | integer | Optional | `10` | Maximum public review summaries retained per profile, 0–50. `0` disables review rows. |
| `includeTestimonials` | boolean | Optional | `false` | Include a small bounded sample of public testimonials. Disabled by default because testimonials can contain personal narratives. |
| `maxTestimonials` | integer | Optional | `5` | Maximum public testimonials retained per profile, 0–25. `0` disables testimonial rows. |
| `includeDiagnostics` | boolean | Optional | `true` | Write minimal `{url, error, errorCode, scrapedAt}` dataset rows for blocked, empty, or failed pages and unresolved context identifiers. Run-level counts stay in `OUTPUT_SUMMARY`. |
| `discoverRelatedAgents` | boolean | Optional | `true` | When the supplied pages cannot fill `maxItems`, read additional public agents from a public Realtor.com directory served without an access boundary. |
| `requestDelayMs` | integer | Optional | `0` | Delay between profile requests and retry backoff, 0–10,000 ms. |
| `requestTimeoutSecs` | integer | Optional | `30` | Maximum time to wait for one public page request, 5–120 seconds. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retries, 0–3. Clear access blocks, HTTP 401/403/404/429 responses, and untrusted redirects are not retried. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy configuration for public page requests. Proxy rotation does not bypass access controls. |

Full default input:

```json
{
  "maxItems": 50,
  "includeListings": true,
  "maxListings": 25,
  "includeReviews": true,
  "maxReviews": 10,
  "includeTestimonials": false,
  "maxTestimonials": 5,
  "includeDiagnostics": true,
  "discoverRelatedAgents": true,
  "requestDelayMs": 0,
  "requestTimeoutSecs": 30,
  "maxRequestRetries": 1
}
```

With no `startUrls` or `profileIds`, the Actor reads a public Realtor.com agent directory and can discover agents when `discoverRelatedAgents` is enabled. `fulfillmentIds` and `nrdsIds` are context only and never resolve to a profile URL.

### Output

The dataset contains one **agent record** per verified public profile, plus, when `includeDiagnostics` is `true`, minimal diagnostic rows for blocked, empty, failed, or unresolved-identifier cases. Optional values are omitted when the source does not publish them; nothing is inferred.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always for agent records | Stable source-derived identity, normally `agent:<profileId>`. |
| `sourceUrl` | string | Always for agent records | Public profile or directory URL that produced the record. |
| `pageUrl` | string | Always for agent records | Public page URL used for extraction. |
| `profileUrl` | string | Always for agent records | Canonical or observed public agent profile URL. |
| `profileId` | string | When exposed | Profile identifier from the public profile path or supplied `profileIds`. |
| `fulfillmentId` | string | When supplied or exposed | Context or public fulfillment identifier. |
| `nrdsId` | string | When supplied or exposed | Context or public NRDS identifier. |
| `fullName` | string | Always for agent records | Public agent name. Records require a name and public agent evidence. |
| `firstName` | string | When published | Public first name. |
| `lastName` | string | When published | Public last name. |
| `phones` | string array | When published | Distinct public phone numbers displayed on the profile, up to 10. |
| `email` | string | When published | Public email displayed on the profile. |
| `brokerageName` | string | When published | Public brokerage or company name. |
| `address` | string | When published | Public office street address or normalized address label. |
| `city` | string | When published | Public office city. |
| `state` | string | When published | Public office state or region. |
| `postalCode` | string | When published | Public office postal code. |
| `licenseNumber` | string | When published | Public agent license identifier. |
| `bio` | string | When published | Public profile biography or about text, bounded to the page content. |
| `specialties` | string array | When published | Publicly displayed specialties or areas of expertise. |
| `areasServed` | string array | When published | Public areas served by the agent. |
| `yearsOfExperience` | integer | When published | Public years-of-experience value. |
| `rating` | number | When published | Public overall rating. |
| `reviewCount` | integer | When published | Public review count. |
| `recentSalesCount` | integer | When published | Public recent-sales count. |
| `priceRangeMin` | number | When published | Parsed lower bound of the public price range. |
| `priceRangeMax` | number | When published | Parsed upper bound of the public price range. |
| `priceRangeText` | string | When published | Original public price-range label. |
| `photoUrl` | string | When published | Public agent portrait URL when identifiable. |
| `imageUrls` | string array | When published | Bounded public profile media URLs belonging to the agent. |
| `websiteUrl` | string | When published | Public external agent or brokerage website linked from the profile. |
| `isRealtor` | boolean | When published | Whether the public page identifies the agent as a REALTOR® member. |
| `listings` | object array | When `includeListings` is enabled and listings exist | Bounded public listing and sale rows. |
| `reviews` | object array | When `includeReviews` is enabled and reviews exist | Bounded public review summaries; reviewer names are not collected. |
| `testimonials` | object array | When `includeTestimonials` is enabled and testimonials exist | Bounded public testimonial text. |
| `scrapedAt` | string | Always | UTC time when the row was saved. |
| `url` | string | Always in diagnostic rows | Request URL for the failed page. |
| `error` | string | Always in diagnostic rows | Bounded diagnostic message. |
| `errorCode` | string | Always in diagnostic rows | Stable diagnostic code. |

`listings` entries can contain `listingId`, `listingUrl`, `title`, `address`, `city`, `state`, `postalCode`, `transactionType`, `price`, `priceFormatted`, `beds`, `baths`, `squareFeet`, `lotSize`, `transactionDate`, and `imageUrl` when published. `reviews` entries contain `rating`, `role`, `location`, `date`, and `text`; `testimonials` entries contain `text` and `yearsAgo`.

#### Full JSON output

Real saved agent row from the 2026-10-22 run, with listing and review enrichment disabled for that run. Contact details are redacted in this example:

```json
{
  "recordId": "agent:56748b94bb954c010068639c",
  "sourceUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "pageUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "profileUrl": "https://www.realtor.com/realestateagents/56748b94bb954c010068639c",
  "profileId": "56748b94bb954c010068639c",
  "fullName": "James Kempski",
  "firstName": "A",
  "lastName": "Kempski",
  "phones": [
    "555) 010-0100"
  ],
  "email": "redacted@example.com",
  "brokerageName": "Mallard Realty Group",
  "address": "318 CLOISTER CT",
  "city": "CHAPEL HILL",
  "state": "NC",
  "postalCode": "27514",
  "bio": "Seasoned experience and the ability to foster solid relationships. James Kempski is a full-service full-time real estate professional who strives's to service a",
  "specialties": [
    "Buyer Specialist",
    "Listing Specialist"
  ],
  "rating": 5,
  "reviewCount": 2,
  "photoUrl": "https://ap.rdcpix.com/1157983103/af3b14a9cc3b589e32fc1c3f391d7d31a-e0s.jpg",
  "imageUrls": [
    "https://ap.rdcpix.com/1157983103/af3b14a9cc3b589e32fc1c3f391d7d31a-e0s.jpg"
  ],
  "websiteUrl": "http://ibuyerpro.com/",
  "isRealtor": false,
  "scrapedAt": "2026-10-22T20:59:03.191Z"
}
```

The phone string and truncated bio above are exactly what the public page exposed and the Actor saved; they were not cleaned up or completed.

### 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`, `BLOCKED`, `FAILED`, or `NO_PUBLIC_DATA`. |
| `dataAvailable` | Whether at least one agent record was saved. |
| `pagesVisited` | Pages successfully fetched, including supplied profiles and directory discovery pages. |
| `requestsAttempted` | Profile and directory page requests started; retries are counted separately in `retryCount`. |
| `retryCount` | Retries performed across supplied profile and directory requests. |
| `itemsStored` | Agent records saved, excluding diagnostic rows. |
| `diagnosticsStored` | Diagnostic rows written to the dataset. |
| `failedUrls` | URLs that failed, whether or not diagnostic rows were stored. |
| `unresolvedIdentifierCount` | Total `fulfillmentIds` and `nrdsIds` supplied; these are context only. |
| `proxyConfigured` | Whether Apify Proxy was configured. |
| `startedAt` | Run start time in ISO UTC. |
| `finishedAt` | Time the summary was written, in ISO UTC. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | At least one agent record was saved. |
| `BLOCKED` | No agent record was saved and an access challenge or HTTP 401, 403, or 429 response was recorded as a diagnostic. |
| `FAILED` | No agent record was saved but a diagnostic was produced, including a fatal error handled at the top level. |
| `NO_PUBLIC_DATA` | No agent record and no diagnostic was produced. |

Status is derived from recorded diagnostics. With `includeDiagnostics` set to `false`, a blocked or failed page that saves no records is reported as `NO_PUBLIC_DATA`; `failedUrls` can still show the failed URLs. A fatal top-level error still writes a `FAILED` summary.

Example `OUTPUT_SUMMARY` from the saved 2026-10-22 run:

```json
{
  "status": "SUCCEEDED",
  "dataAvailable": true,
  "pagesVisited": 0,
  "requestsAttempted": 1,
  "retryCount": 0,
  "itemsStored": 1,
  "diagnosticsStored": 0,
  "failedUrls": [],
  "unresolvedIdentifierCount": 0,
  "proxyConfigured": false,
  "startedAt": "2026-10-22T20:58:58.954Z",
  "finishedAt": "2026-10-22T20:59:03.191Z"
}
```

`pagesVisited` is `0` in this saved summary even though one request succeeded; the current Actor increments `pagesVisited` for each successfully fetched page, so newer summaries can differ.

### Coverage and limitations

The Actor reads public Realtor.com profile and directory pages. It does not log in, access private dashboards or CRM data, call hidden contact endpoints, solve CAPTCHAs, bypass access controls, or invent contact details. Fields the public page does not publish are omitted.

With `discoverRelatedAgents` enabled, the Actor can add agents from the public Realtor.com International directory or an observed city agent directory when the supplied profiles do not fill `maxItems`. Those records can describe agents you did not supply, and they still must pass the same public-evidence checks. Set the option to `false` to keep the dataset limited to supplied profile URLs or IDs.

When a supplied profile or city directory cannot be fetched or parsed, the Actor may try public Wayback Machine captures of the same Realtor.com URL. Archived values can be older than the live page. A blocked or failed live profile can still produce a row from a public archive capture; the Actor does not log in or bypass the access control on Realtor.com itself.

`includeDiagnostics` writes failed lookups as dataset rows. `itemsStored` never includes diagnostic rows. When diagnostics are disabled, `diagnosticsStored` stays `0`, `failedUrls` still lists failed requests, and status falls back to `NO_PUBLIC_DATA` if no records were saved. Listing, review, and testimonial arrays are bounded by their `max*` settings; reviewer names are not collected.

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. Do not use the output for unauthorized profiling or contact.

### Usage and support

A profile-ID lookup with enrichment disabled:

```json
{
  "profileIds": ["56748b94bb954c010068639c"],
  "maxItems": 1,
  "includeListings": false,
  "includeReviews": false,
  "includeDiagnostics": true
}
```

A profile-URL lookup with discovery turned off:

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

Use `proxyConfiguration` only when ordinary Apify Proxy routing is needed, and raise `requestDelayMs` if the source starts rate-limiting. Keep `maxItems` small while testing, and disable unused enrichment to reduce run time.

Cost depends on Apify compute, profile and directory requests, retries, proxy usage, and the Actor resource allocation. Start with one 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-agent-phone-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.

#### Additional examples (provenance, redaction, and blocks)

Contact details from directory-discovered agents are withheld by default. The run status now
reports whether the requested profile was actually fulfilled.

```json
{
  "maxItems": 1,
  "discoverRelatedAgents": false,
  "includeDiscoveredContactDetails": false
}
```

```json
{
  "recordId": "agent:5680d97bbb954c0100691b56",
  "fullName": "Example Requested Agent",
  "recordScope": "requestedProfile",
  "dataOrigin": "live",
  "fulfillmentStatus": "FULFILLED",
  "sourceTargetUrl": "https://www.realtor.com/realestateagents/5680d97bbb954c0100691b56"
}
```

```json
{
  "recordId": "agent:example-profile",
  "fullName": "Example Discovered Agent",
  "recordScope": "discoveredRelated",
  "dataOrigin": "live",
  "listingsVerified": false,
  "piiRedacted": true
}
```

```json
{
  "url": "https://www.realtor.com/realestateagents/example-profile",
  "error": "Realtor.com returned an access boundary.",
  "errorCode": "HTTP_429",
  "scrapedAt": "2026-11-18T08:00:00.000Z"
}
```

```json
{
  "status": "BLOCKED",
  "dataAvailable": false,
  "requestedProfileFulfilled": false,
  "fulfillmentStatus": "TARGET_BLOCKED",
  "discoveredRecordCount": 0
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

# Actor input Schema

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

Public HTTPS Realtor.com profile URLs under /realestateagents/. Custom profile URLs take precedence over profileIds.

## `profileIds` (type: `array`):

Public profile identifiers used in /realestateagents/{profileId} URLs. Ignored when the same source is already supplied in startUrls.

## `fulfillmentIds` (type: `array`):

Optional context identifiers. They do not generate guessed URLs; a non-empty array always produces an IDENTIFIER_NOT_RESOLVED diagnostic because this Actor does not resolve these identifiers.

## `nrdsIds` (type: `array`):

Optional context identifiers. They do not generate guessed URLs; a non-empty array always produces an IDENTIFIER_NOT_RESOLVED diagnostic because this Actor does not resolve these identifiers.

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

Maximum number of profile pages requested across all supplied sources. Range: 1–200.

## `includeListings` (type: `boolean`):

Include bounded public listing/sale rows discovered in the profile payload or page links.

## `maxListings` (type: `integer`):

Maximum listing or sales rows retained per profile. 0 disables listing rows.

## `includeReviews` (type: `boolean`):

Include bounded public review summaries when exposed by the profile page.

## `maxReviews` (type: `integer`):

Maximum public review summaries retained per profile. 0 disables review rows.

## `includeTestimonials` (type: `boolean`):

Include a small bounded sample of public testimonials when exposed. Disabled by default because testimonials can contain personal narratives.

## `maxTestimonials` (type: `integer`):

Maximum public testimonials retained per profile. 0 disables testimonial rows.

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

Emit minimal {url,error,errorCode,scrapedAt} dataset rows for blocked, empty, or failed pages. Run-level counts remain in OUTPUT_SUMMARY.

## `discoverRelatedAgents` (type: `boolean`):

When the supplied profile pages cannot fill maxItems, read additional publicly displayed agents from a public Realtor.com agent directory that is served without an access boundary. Set to false to keep the dataset limited to the supplied profile URLs.

## `includeDiscoveredContactDetails` (type: `boolean`):

Related agents discovered on a public directory are not the requested profile. Their email and phone are withheld by default; enable only with a lawful basis to store that personal data.

## `allowArchivedCapture` (type: `boolean`):

Disabled by default: a blocked live profile fails closed with a diagnostic instead of substituting a stale Wayback capture. Enabling labels rows with dataOrigin=archive and sourceCapturedAt.

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

Delay between profile requests and bounded retry backoff. Range: 0–10000 ms.

## `requestTimeoutSecs` (type: `integer`):

Maximum time to wait for one public page request. Range: 5–120 seconds.

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

Retries are bounded and are not used for clear access blocks, 401/403/404/429 responses, or untrusted redirects. Range: 0–3.

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

Optional Apify Proxy configuration used for the actual public page requests. Proxy rotation does not bypass access controls; credentials are never written to output.

## Actor input object example

```json
{
  "maxItems": 50,
  "includeListings": true,
  "maxListings": 25,
  "includeReviews": true,
  "maxReviews": 10,
  "includeTestimonials": false,
  "maxTestimonials": 5,
  "includeDiagnostics": true,
  "discoverRelatedAgents": true,
  "includeDiscoveredContactDetails": false,
  "allowArchivedCapture": false,
  "requestDelayMs": 0,
  "requestTimeoutSecs": 30,
  "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-agent-phone-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-agent-phone-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-agent-phone-scraper --silent --output-dataset

```

## MCP server setup

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