# Realtor.com Agent Scraper (`w3crawler/realtor-com-agent-scraper`) Actor

Extract public Realtor.com agent profile records, contact details, service areas, experience, reviews, and listing metrics.

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

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.com Agent Scraper

Extract **public Realtor.com agent records** from agent directory and profile routes. The Actor reads structured data, embedded page state, visible cards, public contact links, and narrow profile-page fallbacks, then saves one record per unique public profile with identity, contact, brokerage, service-area, experience, rating, review, listing, and provenance fields. 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-com-agent-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 a US `location` such as `Washington, DC`.
3. Keep `maxAgents` at 25 and `maxPages` at 2 for the first run. Disable detail enrichment if you only need directory-card fields.
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 | `[]` | Public Realtor.com agent directory or profile URLs, up to 20. When empty, the `location` route is used. |
| `location` | string | Optional | `"Washington, DC"` | Location used to build a public agent directory route, up to 120 characters. |
| `maxAgents` | integer | Optional | `25` | Maximum unique agent records to save, 1–200. |
| `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 | `5` | Maximum discovered profile pages to request for enrichment, 0–50. |
| `includeReviews` | boolean | Optional | `true` | Keep bounded review and testimonial fields when present in public page data. |
| `maxReviews` | integer | Optional | `10` | Maximum review or testimonial objects retained per agent, 0–50. |
| `maxListings` | integer | Optional | `10` | Maximum listing objects retained per agent, 0–50. `0` disables listing rows. |
| `includeDiagnostics` | boolean | Optional | `true` | Write minimal diagnostic rows for blocked, failed, or empty public routes. |
| `requestDelayMs` | integer | Optional | `500` | Delay between requests and retry attempts, 0–10,000 ms. |
| `timeoutMs` | integer | Optional | `45000` | Maximum time allowed for each public page request, 5,000–120,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Maximum retries for transient public HTTP failures, 0–3. |
| `userAgent` | string | Optional | Not supplied | Transparent HTTP User-Agent value, up to 300 characters. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings. Public access controls are not bypassed. |

Full default input:

```json
{
  "startUrls": [],
  "location": "Washington, DC",
  "maxAgents": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5,
  "includeReviews": true,
  "maxReviews": 10,
  "maxListings": 10,
  "includeDiagnostics": true,
  "requestDelayMs": 500,
  "timeoutMs": 45000,
  "maxRequestRetries": 1
}
```

The Actor reads public data from Realtor.com. Optional `proxyConfiguration` uses the standard Apify Proxy settings.

### Output

The dataset contains one **agent record** per saved profile, plus, when `includeDiagnostics` is `true`, minimal diagnostic rows for blocked, failed, or empty routes. 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 agent identity. |
| `sourceUrl` | string | Always for agent records | Public route that produced the record. |
| `pageUrl` | string | Always for agent records | Public page actually parsed. |
| `searchUrl` | string | Always for agent records | Directory route associated with the profile. |
| `profileUrl` | string | Always for agent records | Public agent profile URL. |
| `agentId` | string | When published | Public source agent identifier. |
| `name` | string | Always for agent records | Public agent name. |
| `firstName` | string | Always for agent records | First name derived from the public name. |
| `lastName` | string | When the name has a surname | Remaining name text after the first token. |
| `title` | string | When published | Public professional title. |
| `photoUrl` | string | When published | Public agent photo URL. |
| `imageUrls` | string array | When published | Public agent image URLs. |
| `brokerageName` | string | When published | Public brokerage or organization. |
| `phone` | string | When published | Primary public phone number; otherwise the first value in `phones`. |
| `phones` | string array | When published | Public phone numbers. |
| `email` | string | When published | Public email address. |
| `websiteUrl` | string | When published | Public external website. |
| `rating` | number | When published | Public overall rating. |
| `reviewCount` | integer | When published | Public review count. |
| `testimonialCount` | integer | When published | Public testimonial count. |
| `yearsOfExperience` | integer | When published | Public experience value. |
| `recentSalesCount` | integer | When published | Public recent-sales count. |
| `priceRangeMin` | number | When published | Parsed lower public price range. |
| `priceRangeMax` | number | When published | Parsed upper public price range. |
| `priceRangeText` | string | When published | Original public price-range label. |
| `address` | string | object | When published | Public office address as text or normalized parts. |
| `serviceAreas` | string array | When published | Public areas served. |
| `specialties` | string array | When published | Public specialties or expertise. |
| `languages` | string array | When published | Publicly displayed languages. |
| `bio` | string | When published | Public profile biography. |
| `licenseNumber` | string | When published | Public license identifier. |
| `isRealtor` | boolean | When published | Whether REALTOR® membership is identified publicly. |
| `listings` | object array | When `maxListings` is greater than 0 and listings exist | Bounded public listing or recent-sale rows. |
| `reviews` | object array | When `includeReviews` is enabled and reviews exist | Bounded public review summaries. |
| `testimonials` | object array | When `includeReviews` is enabled and testimonials exist | Bounded public testimonial summaries. |
| `pageNumber` | integer | Always for agent records | Observed directory page number. |
| `position` | integer | Always for agent records | Observed position on the source page. |
| `scrapedAt` | string | Always | UTC normalization time. |
| `url` | string | Always in diagnostic rows | Diagnostic source URL. |
| `error` | string | Always in diagnostic rows | Bounded diagnostic message. |
| `errorCode` | string | Always in diagnostic rows | Stable diagnostic code. |

`listings` rows can contain `title`, `address`, `price`, `status`, `date`, `url`, and `imageUrl`. `reviews` and `testimonials` rows can contain `text`, `rating`, `date`, and `url`.

#### Full JSON output

Real saved agent row from the 2026-10-22 run:

```json
{
  "recordId": "agent:/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "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",
  "searchUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "profileUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "name": "James Kempski",
  "firstName": "James",
  "lastName": "Kempski",
  "photoUrl": "https://ap.rdcpix.com/1157983103/af3b14a9cc3b589e32fc1c3f391d7d31a-e0s.jpg",
  "imageUrls": [
    "https://ap.rdcpix.com/1157983103/af3b14a9cc3b589e32fc1c3f391d7d31a-e0s.jpg"
  ],
  "rating": 5,
  "reviewCount": 2,
  "address": {
    "line": "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",
  "pageNumber": 1,
  "position": 1,
  "scrapedAt": "2026-10-22T20:59:10.295Z"
}
```

The saved run wrote two rows for this page; the row above is the first. The other row uses the numeric profile URL `https://www.realtor.com/realestateagents/56748b94bb954c010068639c` for the same public agent.

### 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 agent record was saved. |
| `sourceCount` | Number of starting routes built 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 made; retries are counted separately in `retryCount`. |
| `retryCount` | Retries performed after transient HTTP failures. |
| `itemsStored` | Agent records saved, excluding diagnostic rows. |
| `diagnosticsStored` | Diagnostic rows written; zero when `includeDiagnostics` is `false`. |
| `failedUrls` | Unique URLs that failed. |
| `proxyConfigured` | Whether Apify Proxy was configured. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | Agent records were saved and no diagnostic was detected. |
| `PARTIAL` | Agent records were saved, and at least one route or page produced a diagnostic. |
| `BLOCKED` | No agent record was saved and an access challenge or HTTP 401, 403, or 429 failure was seen. |
| `FAILED` | No agent record was saved and a non-blocking page failure was recorded. |
| `NO_PUBLIC_DATA` | No agent record was saved and no page failure was recorded. |

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

```json
{
  "status": "SUCCEEDED",
  "dataAvailable": true,
  "sourceCount": 1,
  "pagesRequested": 1,
  "pagesVisited": 1,
  "pagesFailed": 0,
  "requestsAttempted": 1,
  "retryCount": 0,
  "itemsStored": 2,
  "diagnosticsStored": 0,
  "failedUrls": [],
  "proxyConfigured": false,
  "completedAt": "2026-10-22T20:59:10.474Z"
}
```

### Coverage and limitations

The Actor reads public Realtor.com agent routes. It does not log in, solve CAPTCHAs, fingerprint browsers, call private endpoints, or bypass access controls. Blocked, failed, and empty routes are reported in `OUTPUT_SUMMARY`; with `includeDiagnostics` enabled they also add a four-field diagnostic row to the dataset.

`includeDetails` requests up to `maxDetailItems` public profile pages discovered on directory pages. Detail records are preferred when the same agent appears twice, and duplicates are removed by agent ID, profile URL, or normalized name. A page can still expose the same person under two different profile URLs, as the saved run above shows, and those URLs produce separate records.

When a live page 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, including contact details, ratings, and listing counts. A blocked or failed live page 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.

`includeReviews` controls public review and testimonial arrays. `maxListings` has no separate on/off switch; set it to `0` to omit listing rows. Optional fields are omitted when the source does not publish them, and values are not inferred.

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 default location run:

```json
{
  "location": "Washington, DC",
  "maxAgents": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5
}
```

A supplied profile URL with diagnostics and no enrichment:

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

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

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

Agent directory or profile URLs. If omitted, the location route is used.

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

Location used to build a public agent directory route, for example Washington, DC.

## `maxAgents` (type: `integer`):

Maximum unique agent records 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 discovered profile pages to request for enrichment.

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

Keep bounded review and testimonial fields when present in public page data.

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

Maximum review or testimonial objects retained per agent.

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

Maximum listing objects retained per agent.

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

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

## `redactContactInfo` (type: `boolean`):

Omit public email, phone, phones and address fields from emitted records (PII opt-out).

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

Delay between requests and retry attempts.

## `timeoutMs` (type: `integer`):

Maximum time allowed for each public page request.

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

Maximum retries for transient public HTTP failures.

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

Optional transparent HTTP User-Agent value.

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

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

## Actor input object example

```json
{
  "startUrls": [],
  "location": "Washington, DC",
  "maxAgents": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5,
  "includeReviews": true,
  "maxReviews": 10,
  "maxListings": 10,
  "includeDiagnostics": true,
  "redactContactInfo": false,
  "requestDelayMs": 500,
  "timeoutMs": 45000,
  "maxRequestRetries": 1
}
```

# Actor output Schema

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

No description

## `summary` (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-com-agent-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-com-agent-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-com-agent-scraper --silent --output-dataset

```

## MCP server setup

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