# Realtor Agents Scraper (`w3crawler/realtor-agents-scraper`) Actor

Extract public real-estate agent profiles from Realtor.com by location, name, or profile URL.

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

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 Agents Scraper

Collect **public Realtor.com agent profiles** by directory or profile URL, agent or company search term, or US location. Saved records include agent identity, profile and photo URLs, brokerage, public phone and email, website, rating and review counts, experience, price range, office address, service areas, specialties, languages, biography, license, and optional listing, review, and testimonial rows. 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-agents-scraper) and select **Try for free**, or open the **Input** tab.
2. Add a public Realtor.com agent route to `startUrls`, enter agent or company terms in `query`, or set a US `location`. With all three empty, the Actor uses the default location.
3. Keep `limit` at 25 and `maxPages` at 2 for the first run. Disable detail enrichment if you only need directory-level 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` | string array | Optional | Not supplied | Public `https://www.realtor.com/realestateagents/` directory or profile URLs, up to 20. These are used before `query` and `location`. |
| `query` | string array | Optional | Not supplied | Agent, group, or company search terms, up to 50 entries of 240 characters. A Realtor.com agent route can also be supplied. |
| `location` | string | Optional | `"Washington, DC"` | US city, state, or ZIP used to build the directory route when `startUrls` and `query` are empty, up to 120 characters. |
| `searchType` | string enum | Optional | `agent` | Validated intent for documentation and client configuration: `agent`, `group`, or `company`. It does not change route construction or apply a server-side filter. |
| `limit` | integer | Optional | `25` | Maximum unique public agent records to store, 1–200. |
| `maxPages` | integer | Optional | `2` | Maximum observed next pages to follow per directory route, 1–10. Page URLs are not guessed. |
| `includeDetails` | boolean | Optional | `true` | Fetch a bounded number of discovered public profile URLs to enrich directory records. |
| `maxDetailItems` | integer | Optional | `5` | Maximum discovered profile pages to fetch for enrichment, 0–50. |
| `includeReviews` | boolean | Optional | `false` | Keep bounded public review and testimonial text found in structured profile data. |
| `maxReviews` | integer | Optional | `10` | Maximum review or testimonial rows retained per agent, 0–50. |
| `includeListings` | boolean | Optional | `false` | Keep bounded public listing or recent-sale rows found in structured profile data. |
| `maxListings` | integer | Optional | `10` | Maximum listing or recent-sale rows retained per agent, 0–50. |
| `includeDiagnostics` | boolean | Optional | `true` | Write one minimal diagnostic row per failed, blocked, or empty request. |
| `requestDelayMs` | integer | Optional | `500` | Polite delay between page requests and retry attempts, 0–10,000 ms. |
| `requestTimeoutSecs` | integer | Optional | `45` | Timeout for each public page request, 5–120 seconds. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retries for transient network or server failures, 0–3. Access challenges are not retried. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy configuration. Leave empty for a direct request. |

Full default input:

```json
{
  "location": "Washington, DC",
  "searchType": "agent",
  "limit": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5,
  "includeReviews": false,
  "maxReviews": 10,
  "includeListings": false,
  "maxListings": 10,
  "includeDiagnostics": true,
  "requestDelayMs": 500,
  "requestTimeoutSecs": 45,
  "maxRequestRetries": 1
}
```

`searchType` is descriptive only; the route is built from `startUrls`, `query`, or `location`. Even when a profile URL is supplied, the Actor may read a public city directory if the supplied page cannot fill `limit`.

### Output

The dataset contains one **agent record** per unique public profile, plus, when `includeDiagnostics` is `true`, minimal diagnostic rows for failed, blocked, or empty requests. 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, not a run identifier. |
| `sourceUrl` | string | Always for agent records | Public Realtor.com route that led to the record. |
| `pageUrl` | string | Always for agent records | Public Realtor.com page actually parsed. |
| `searchUrl` | string | Always for agent records | Directory route associated with the profile. |
| `profileUrl` | string | Always for agent records | Public Realtor.com 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 parsed 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 observed on the page. |
| `brokerageName` | string | When published | Public brokerage or organization name. |
| `phone` | string | When published | Primary public phone number; otherwise the first value in `phones`. |
| `phones` | string array | When published | Public phone numbers observed on the page. |
| `email` | string | When published | Public email address when displayed. |
| `websiteUrl` | string | When published | Public external website linked from the profile. |
| `rating` | number | When published | Public rating. |
| `reviewCount` | integer | When published | Public review count. |
| `testimonialCount` | integer | When published | Public testimonial count. |
| `yearsOfExperience` | integer | When published | Public years-of-experience value. |
| `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. |
| `address` | string | object | When published | Public office address as text or normalized parts (`line`, `line2`, `city`, `state`, `postalCode`, `country`). |
| `serviceAreas` | string array | When published | Public areas served by the agent. |
| `specialties` | string array | When published | Public specialties or expertise labels. |
| `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 the public page identifies REALTOR® membership. |
| `listings` | object array | When `includeListings` is enabled 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; review and testimonial counts share `maxReviews`. |
| `pageNumber` | integer | Always for agent records | Observed directory page number for the row. |
| `position` | integer | Always for agent records | Observed source-page position for the row. |
| `scrapedAt` | string | Always | UTC time when the row was saved. |
| `url` | string | Always in diagnostic rows | Request URL for the failed route. |
| `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` when published. `reviews` and `testimonials` rows can contain `text`, `rating`, `date`, and `url`.

#### Full JSON output

Real saved agent row from the 2026-10-22 run, complete as stored:

```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:05.399Z"
}
```

The saved bio is already truncated by the public page payload; it was not shortened for this README.

### 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 discovery and detail pages. |
| `pagesVisited` | Pages for which a request completed, including failed pages. |
| `pagesFailed` | Pages that could not be parsed into a public page result. |
| `requestsAttempted` | Page requests made; retries are counted separately in `retryCount`. |
| `retryCount` | Retries performed after transient network or server 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": 1,
  "diagnosticsStored": 0,
  "failedUrls": [],
  "proxyConfigured": false,
  "completedAt": "2026-10-22T20:59:05.563Z"
}
```

### Coverage and limitations

The Actor reads public Realtor.com agent routes. It does not log in, bypass authentication, CAPTCHAs, consent barriers, rate limits, or paywalls. Blocked, failed, and empty routes are reported in `OUTPUT_SUMMARY`; with `includeDiagnostics` enabled they also add a four-field diagnostic row to the dataset.

When supplied pages cannot fill `limit`, the Actor actively discovers more agents from the public city directory for an observed office location and from the requested or default `location` route. Those records can describe agents you did not supply. The same behavior applies after a single profile URL. Plan your `limit`, `maxPages`, and enrichment settings accordingly.

When a live page cannot be fetched or parsed, the Actor may try public Wayback Machine captures of the same Realtor.com URL. Archived data can predate the live page, so contact details, ratings, and listing counts may be older. 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.

`includeDetails` fetches up to `maxDetailItems` discovered profile pages to enrich directory cards. Detail rows are preferred when the same agent appears twice, and duplicates are removed by agent ID, profile URL, or normalized name. `includeReviews` and `includeListings` control whether bounded review, testimonial, and listing arrays are retained.

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 location-based run with detail enrichment:

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

A profile route with enrichment disabled:

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

Use `proxyConfiguration` only when ordinary Apify Proxy routing is needed. Increase `requestDelayMs` if the source rate-limits, and keep `limit`, `maxPages`, and `maxDetailItems` modest while testing.

Cost depends on Apify compute, the number of directory, profile, and detail 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-agents-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 (capture provenance, redaction, and blocks)

Archived captures are never substituted for a blocked live page by default; opting in labels
rows with `dataOrigin: "archive"` and a real capture timestamp.

```json
{
  "location": "Washington, DC",
  "limit": 5,
  "allowArchivedCapture": false
}
```

```json
{
  "recordId": "agent:/realestateagents/jordan_lee_123",
  "name": "Jordan Lee",
  "firstName": "Jordan",
  "lastName": "Lee",
  "rating": 4.9,
  "ratingScale": "out_of_5",
  "dataOrigin": "live",
  "locationRequested": "Washington, DC"
}
```

```json
{
  "recordId": "agent:/realestateagents/example-profile",
  "name": "Example Agent",
  "dataOrigin": "archive",
  "captureType": "archive",
  "captureTimestamp": "20260215000410",
  "scrapedAt": "2026-02-15T00:04:10Z"
}
```

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

```json
{
  "status": "BLOCKED",
  "dataAvailable": false,
  "pagesRequested": 1,
  "dataOrigin": "none",
  "blocked": true,
  "allowArchivedCapture": false
}
```

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

# Actor input Schema

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

Optional https://www.realtor.com/realestateagents/ directory or profile URLs. These are used before query and location.

## `query` (type: `array`):

Optional agent, group, or company search terms. A Realtor.com agent route may also be supplied.

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

US city, state, or ZIP used to build the observed Realtor.com agent directory route when startUrls and query are empty.

## `searchType` (type: `string`):

Validated search intent for documentation and client configuration; it does not change route construction or apply a server-side filter.

## `limit` (type: `integer`):

Maximum unique public agent records to store.

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

Maximum observed next pages to follow per supplied directory route. No page URLs are guessed.

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

Fetch a bounded number of discovered public profile URLs to enrich directory records.

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

Maximum discovered profile pages to fetch for enrichment.

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

Keep bounded public review text when it is present in structured profile data.

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

Maximum review or testimonial rows retained per agent.

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

Keep bounded public listing or recent-sale rows when they are present in structured profile data.

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

Maximum public listing or recent-sale rows retained per agent.

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

Store one minimal diagnostic record per failed or blocked request.

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

Polite delay between page requests and retry attempts.

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

Timeout for each public page request.

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

Bounded retries for transient network or server failures. Access challenges are not retried.

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

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

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

Optional Apify proxy configuration. Leave empty for a direct request.

## Actor input object example

```json
{
  "location": "Washington, DC",
  "searchType": "agent",
  "limit": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5,
  "includeReviews": false,
  "maxReviews": 10,
  "includeListings": false,
  "maxListings": 10,
  "includeDiagnostics": true,
  "requestDelayMs": 500,
  "requestTimeoutSecs": 45,
  "maxRequestRetries": 1,
  "allowArchivedCapture": false
}
```

# 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-agents-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-agents-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-agents-scraper --silent --output-dataset

```

## MCP server setup

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