# Realtor Agent Details Scraper (`w3crawler/realtor-agent-details-scraper`) Actor

Look up public Realtor.com agent details by profile_id, fulfillment_id, or nrds_id, preserving source identifiers and reporting blocked or unavailable public profiles explicitly.

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

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

Look up **public Realtor.com agent profiles** by profile ID, fulfillment ID, or NRDS ID and save one normalized record per verified profile. Each record preserves the requested identifier, canonical profile URL, source URL, UTC timestamp, and source-backed identity, contact, brokerage, service-area, rating, review, and listing 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-agent-details-scraper) and select **Try for free**, or open the **Input** tab.
2. Add at least one value to `profile_id`, `fulfillment_id`, or `nrds_id`. The three arrays can be combined in one run.
3. Keep the default timeout, delay, and retry values for the first run. Leave `includeDiagnostics` enabled if you want failed lookups written to the dataset.
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

The schema declares no required property, but a run needs **at least one identifier** in `profile_id`, `fulfillment_id`, or `nrds_id`. Other 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 |
| --- | --- | --- | --- | --- |
| `work_type` | string enum | Optional | `agent_details` | Published operation; `agent_details` is the only supported value. |
| `profile_id` | string array | Conditional | Not supplied | Public Realtor profile IDs requested on `/realestateagents/<profile>`, up to 100 entries of 1–200 characters. |
| `fulfillment_id` | string array | Conditional | Not supplied | Numeric Realtor fulfillment IDs, up to 100 entries. Unresolved IDs are reported as diagnostics instead of being mapped to a guessed profile. |
| `nrds_id` | string array | Conditional | Not supplied | Numeric National Association of Realtors IDs, up to 100 entries. Unresolved IDs are reported as diagnostics instead of being mapped to a guessed profile. |
| `timeoutMs` | integer | Optional | `30000` | Per-request timeout, 5,000–120,000 ms. |
| `requestDelayMs` | integer | Optional | `250` | Delay between sequential profile requests, 0–5,000 ms. HTTP 429 and challenge responses are not retried. |
| `maxRequestRetries` | integer | Optional | `1` | Retries for network failures and HTTP 5xx responses, 0–2. Access-boundary responses fail closed. |
| `userAgent` | string | Optional | Not supplied | Transparent HTTP User-Agent value, up to 300 characters. |
| `includeDiagnostics` | boolean | Optional | `true` | Write exact four-field diagnostic rows for blocked, empty, invalid, or unresolved identifiers. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings for ordinary public profile requests. Proxies do not bypass access controls. |

Example input from the saved 2026-10-22 run:

```json
{
  "profile_id": ["-james-kempski_chapel-hill_nc_1512593_794784444"],
  "includeDiagnostics": false,
  "maxRequestRetries": 0,
  "requestDelayMs": 0,
  "timeoutMs": 20000
}
```

Replace the sample identifier with your own targets. When omitted, `timeoutMs`, `requestDelayMs`, `maxRequestRetries`, and `includeDiagnostics` use the defaults shown above.

### Output

The dataset contains one row per saved result: a **normal agent record** for each verified public profile, plus, when `includeDiagnostics` is `true`, a **four-field diagnostic row** for each identifier that was invalid, blocked, unavailable, or empty. Normal records omit optional values the source does not publish; values are never inferred. Diagnostic rows never become agent records.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always for agent records | Normal-record discriminator; always `realtor-agent`. Diagnostic rows intentionally omit it. |
| `recordId` | string | Always for agent records | Stable source-derived agent record identifier. |
| `identifierType` | string enum | Always for agent records | Identifier type used for the request: `profile_id`, `fulfillment_id`, or `nrds_id`. |
| `identifier` | string | Always for agent records | Requested source identifier. |
| `profileId` | string | When exposed | Public profile identifier, or the requested profile ID when that is the lookup type. |
| `fulfillmentId` | string | When exposed | Public Realtor fulfillment identifier, or the requested fulfillment ID when that is the lookup type. |
| `nrdsId` | string | When exposed | Public NRDS identifier, or the requested NRDS ID when that is the lookup type. |
| `profileUrl` | string | Always for agent records | Canonical public Realtor.com profile URL; falls back to the resolved source URL when no profile ID is exposed. |
| `requestedUrl` | string | Always for agent records | Public URL constructed for the requested identifier. |
| `sourceUrl` | string | Always for agent records | Final in-scope public source URL used for the record. |
| `sourceWebsite` | string | Always for agent records | Source provenance; `https://www.realtor.com/`. |
| `fullname` | string | When published | Public agent name. At least one identity field is required to save a record. |
| `bio` | string | When published | Public agent biography or profile description. |
| `email` | string | When published | Publicly displayed agent email address. |
| `website` | string | When published | Public personal or professional website. |
| `phones` | string array | When published | Distinct public phone values exposed by the profile. |
| `phone` | string | When published | Primary public phone value. |
| `averageRating` | number | When published | Public average agent rating, zero or greater. |
| `reviewsCount` | number | When published | Public review count, zero or greater. |
| `officeName` | string | When published | Public brokerage or office name. |
| `officePhone` | string | When published | Public office phone. |
| `officeAddress` | string | array | object | When published | Public office address in the source shape. |
| `brokerName` | string | When published | Public broker or brokerage name when separately exposed. |
| `servedAreas` | string | array | object | When published | Public service-area values in the source shape. |
| `specializations` | string | array | object | When published | Public specialties or designations in the source shape. |
| `languages` | string | array | object | When published | Public languages in the source shape. |
| `activeListings` | number | string | array | object | When published | Public active-listing count or bounded source structure. |
| `forSaleListings` | number | string | array | object | When published | Public for-sale listing count or bounded source structure. |
| `forRentListings` | number | string | array | object | When published | Public for-rent listing count or bounded source structure. |
| `recentlySoldListings` | number | string | array | object | When published | Public recently-sold listing count or bounded source structure. |
| `scrapedAt` | string | Always | UTC timestamp when the row was saved. |
| `url` | string | Always in diagnostic rows | Request URL for the failed lookup. |
| `error` | string | Always in diagnostic rows | Bounded explanation for an invalid, blocked, unavailable, or empty public response. |
| `errorCode` | string | Always in diagnostic rows | Stable diagnostic code such as `INVALID_IDENTIFIER`, `SOURCE_HTTP_ERROR`, or `NO_PUBLIC_DATA`. |

#### Full JSON output

Real saved agent row from the 2026-10-22 run. Contact details are redacted in this example:

```json
{
  "recordType": "realtor-agent",
  "recordId": "realtor-agent:-james-kempski_chapel-hill_nc_1512593_794784444",
  "identifierType": "profile_id",
  "identifier": "-james-kempski_chapel-hill_nc_1512593_794784444",
  "profileId": "-james-kempski_chapel-hill_nc_1512593_794784444",
  "fulfillmentId": "1512593",
  "nrdsId": "555512502",
  "profileUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "requestedUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "sourceUrl": "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444",
  "sourceWebsite": "https://www.realtor.com/",
  "fullname": "James Kempski",
  "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 wide spectrum of clients in the Raleigh, Durham Chapel Hill area. From clients with small family homes, large family homes, estates and short sale needs James can get it done. Uncompromising professionalism and drive has yielded great success in today's real estate market to connect with me just call OR text me at 407Kempski",
  "email": "redacted@example.com",
  "website": "http://ibuyerpro.com/",
  "phones": [
    "5550100"
  ],
  "phone": "(555) 010-0100",
  "averageRating": 5,
  "reviewsCount": 2,
  "officeName": "Mallard Realty Group",
  "officeAddress": {
    "line": "318 CLOISTER CT",
    "city": "CHAPEL HILL",
    "postal_code": "27514",
    "state_code": "NC",
    "country": "USA"
  },
  "brokerName": "Brokerage",
  "servedAreas": [
    "Bahama",
    "Cary",
    "Chapel Hill",
    "Creedmoor",
    "Durham",
    "Hillsborough",
    "Morrisville",
    "Pittsboro",
    "Raleigh",
    "Rougemont"
  ],
  "specializations": [
    "Buyer Specialist",
    "Listing Specialist"
  ],
  "scrapedAt": "2026-10-22T20:58:45.183Z"
}
```

`officeAddress` may also be a string or array, depending on the source shape. A diagnostic row contains exactly `url`, `error`, `errorCode`, and `scrapedAt` and no agent identity fields.

### Run summary

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

| Field | Meaning |
| --- | --- |
| `actor` | Actor name. |
| `recordType` | Always `run-summary`. |
| `status` | Run outcome: `SUCCEEDED`, `SUCCEEDED_WITH_DIAGNOSTICS`, `EMPTY`, `BLOCKED`, or `FAILED`. |
| `dataAvailable` | Whether at least one verified agent record was saved. |
| `requestedCount` | Valid targets plus invalid identifier entries. |
| `requestedProfiles` | Valid targets that were requested. |
| `invalidIdentifierCount` | Identifier entries rejected before any request. |
| `sourceUrls` | Requested public URLs for the valid targets. |
| `pagesVisited` | Profile pages visited, one per valid target attempted. |
| `requestsAttempted` | Public profile requests attempted. |
| `retryCount` | Total retries performed after transient failures. |
| `itemCount` | Dataset rows saved: agent records plus stored diagnostics. |
| `recordsStored` | Verified agent records saved. |
| `profileCount` | Verified agent profiles saved; matches `recordsStored`. |
| `diagnosticCount` | Diagnostics detected, including ones not stored. |
| `diagnosticsStored` | Diagnostic rows written to the dataset; zero when `includeDiagnostics` is `false`. |
| `diagnosticsEnabled` | Whether diagnostic rows were enabled for the run. |
| `failures` | Request-level failures as `{ url, errorCode }` entries. |
| `failedRequestCount` | Number of request-level failures. |
| `failedUrls` | URLs of the failed requests. |
| `blockedReasons` | Error codes for the failed requests. |
| `proxyConfigured` | Whether Apify Proxy was configured for the run. |
| `sourceWebsite` | Source website used for the run. |
| `startedAt` | Run start time in ISO UTC. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `error` | Fatal error message, present only when the run fails before a normal summary is written. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | At least one agent record was saved and no diagnostics were detected. |
| `SUCCEEDED_WITH_DIAGNOSTICS` | Agent records were saved, and at least one other identifier produced a diagnostic. |
| `EMPTY` | No agent record was saved and no request-level failure was detected, such as only invalid or missing identifiers or an empty public page. |
| `BLOCKED` | No agent record was saved because the source returned a request-level failure, such as an HTTP error or access challenge. |
| `FAILED` | A fatal error occurred before the run produced a normal summary. |

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

```json
{
  "actor": "realtor-agent-details-scraper",
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "dataAvailable": true,
  "requestedCount": 1,
  "requestedProfiles": 1,
  "invalidIdentifierCount": 0,
  "sourceUrls": [
    "https://www.realtor.com/realestateagents/-james-kempski_chapel-hill_nc_1512593_794784444"
  ],
  "pagesVisited": 1,
  "requestsAttempted": 1,
  "retryCount": 0,
  "itemCount": 1,
  "recordsStored": 1,
  "profileCount": 1,
  "diagnosticCount": 0,
  "diagnosticsStored": 0,
  "diagnosticsEnabled": false,
  "failures": [],
  "failedRequestCount": 0,
  "failedUrls": [],
  "blockedReasons": [],
  "proxyConfigured": false,
  "sourceWebsite": "https://www.realtor.com/",
  "startedAt": "2026-10-22T20:58:44.690Z",
  "completedAt": "2026-10-22T20:58:47.380Z"
}
```

### Coverage and limitations

The Actor reads public Realtor.com agent profile pages only; it does not sign in, use private dashboards, solve CAPTCHAs, bypass rate limits, or invent a profile when the source returns a block, an empty response, or an unresolved identifier. Fulfillment IDs and NRDS IDs are only used when they resolve to a public profile page; otherwise the lookup is reported as a diagnostic.

When a live profile cannot be parsed—including after a blocked or empty live response—the Actor may try public Wayback Machine captures of the same Realtor.com URL. In that case the saved values can reflect the archived snapshot rather than the current live page, even though `sourceUrl` and `scrapedAt` refer to the current request. Treat older-looking ratings, reviews, or listing counts accordingly.

Realtor.com availability and page markup can change. Optional fields are omitted rather than guessed, and a blocked, empty, or partial response is recorded in the run summary. With the default `includeDiagnostics: true`, a failed lookup also adds a four-field diagnostic row to the dataset; set it to `false` for agent records only.

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 small lookup by profile ID:

```json
{
  "profile_id": ["-james-kempski_chapel-hill_nc_1512593_794784444"],
  "includeDiagnostics": true
}
```

A combined lookup using all three identifier types:

```json
{
  "profile_id": ["-james-kempski_chapel-hill_nc_1512593_794784444"],
  "fulfillment_id": ["1512593"],
  "nrds_id": ["555512502"],
  "maxRequestRetries": 1
}
```

Use `proxyConfiguration` only when ordinary Apify Proxy routing is needed; it does not bypass access controls. Add `requestDelayMs` between targets if you see rate limiting, and keep identifier lists small while testing.

Cost depends on the number of identifiers, request duration, retries, proxy usage, and the Actor resource allocation. Start with one or two identifiers, 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-details-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 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

## `work_type` (type: `string`):

Published actor operation; agent_details is the supported operation.

## `profile_id` (type: `array`):

One or more public Realtor profile IDs. Each value is requested on the public /realestateagents/<profile> profile route.

## `fulfillment_id` (type: `array`):

Optional numeric Realtor fulfillment IDs. Unresolved IDs are reported as diagnostics rather than mapped to a guessed profile.

## `nrds_id` (type: `array`):

Optional numeric National Association of Realtors IDs. Unresolved IDs are reported as diagnostics rather than mapped to a guessed profile.

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

Maximum time to wait for each public page request.

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

Respectful delay between sequential public profile requests. HTTP 429 and challenge responses are never retried.

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

Maximum retries for network failures and HTTP 5xx responses. Access-boundary responses are fail-closed.

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

Optional transparent HTTP User-Agent value.

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

Store exact four-field source diagnostics in the Dataset when a public profile is blocked or empty.

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

Optional Apify proxy settings for ordinary public Realtor.com profile requests. Proxies do not bypass access controls.

## Actor input object example

```json
{
  "work_type": "agent_details",
  "timeoutMs": 30000,
  "requestDelayMs": 250,
  "maxRequestRetries": 1,
  "includeDiagnostics": true
}
```

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

```

## MCP server setup

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