# Realtor.com Location Scraper (`w3crawler/realtor-com-location-scraper`) Actor

Extract verified public Realtor.com residential listings by location, including price, beds/baths, square footage, address, photos, and publicly embedded agent/broker contact data. Direct public pages only; access boundaries are reported without bypass attempts.

- **URL**: https://apify.com/w3crawler/realtor-com-location-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 property listings

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

Extract **public Realtor.com residential listings** by location slug or public search and detail URL. Saved records include listing identity and URL, status, price and currency, beds and baths, interior and lot size, year built, property type, address, coordinates, photos, publicly embedded agent and brokerage details, and optional price and tax history. 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-location-scraper) and select **Try for free**, or open the **Input** tab.
2. Add public Realtor.com search or detail URLs to `startUrls`, or use `locations` / `location` with a slug such as `Austin_TX`. Supplied URLs take precedence.
3. Keep `maxItems` at 20 and `maxPages` at 1 for the first run. Leave detail enrichment disabled unless you need per-property pages.
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 search or detail URLs, up to 20. When supplied, they take precedence over locations. |
| `location` | string | Optional | `"New-York_NY"` | One location slug or name, 1–120 characters. Used when `locations` is empty and no start URLs are supplied. |
| `locations` | string array | Optional | `[]` | One to twenty non-URL location names or slugs. Takes precedence over `location`. |
| `maxResults` | integer | Optional | `20` | Compatibility alias for `maxItems`, 1–1,000. Used only when `maxItems` is absent. |
| `maxItems` | integer | Optional | `20` | Maximum unique listing records to save, 1–1,000. |
| `maxPages` | integer | Optional | `1` | Maximum observed search pages to request per start URL, 1–20. Page URLs are not guessed beyond observed next links. |
| `includeDetails` | boolean | Optional | `false` | Request selected public detail pages discovered from search results. |
| `maxDetailItems` | integer | Optional | `5` | Maximum detail pages requested for enrichment, 0–50. |
| `includeHistory` | boolean | Optional | `true` | Retain bounded public price and tax history arrays when present. |
| `includeDiagnostics` | boolean | Optional | `true` | Write minimal diagnostic rows for blocked, failed, or empty public routes. |
| `timeoutSecs` | integer | Optional | `30` | Maximum time allowed for each public request, 5–120 seconds. |
| `requestDelayMs` | integer | Optional | `500` | Delay between requests and retry attempts, 0–10,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Maximum retries for transient public failures, 0–3. |
| `userAgent` | string | Optional | `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36` | Transparent HTTP user agent, up to 300 characters. |
| `acceptLanguage` | string | Optional | `"en-US,en;q=0.8"` | Language preference sent with the public request, up to 120 characters. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings. Public access controls are not bypassed. |

Full default input:

```json
{
  "startUrls": [],
  "location": "New-York_NY",
  "locations": [],
  "maxResults": 20,
  "maxItems": 20,
  "maxPages": 1,
  "includeDetails": false,
  "maxDetailItems": 5,
  "includeHistory": true,
  "includeDiagnostics": true,
  "timeoutSecs": 30,
  "requestDelayMs": 500,
  "maxRequestRetries": 1,
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
  "acceptLanguage": "en-US,en;q=0.8"
}
```

The Actor reads public data from Realtor.com. Optional `proxyConfiguration` uses the standard Apify Proxy settings. Location values are converted to `/realestateandhomes-search/<slug>` routes; a detail URL is fetched once.

### Output

The dataset contains one **listing record** per unique property, 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 listing records | Stable source-derived listing identity, normally `listing:<listingId>`. |
| `sourceUrl` | string | Always for listing records | Public search or detail route that produced the row. |
| `pageUrl` | string | Always for listing records | Public page actually parsed. |
| `searchUrl` | string | Always for listing records | Search route associated with the listing. |
| `detailUrl` | string | When enriched from a detail page | Public detail route used for optional enrichment. |
| `listingId` | string | When exposed | Public source listing identifier. At least one of `listingId` and `listingUrl` is present. |
| `listingUrl` | string | When exposed | Public Realtor.com property route. At least one of `listingId` and `listingUrl` is present. |
| `title` | string | Always for listing records | Public listing title or address label. |
| `status` | string | When published | Public listing or availability status. |
| `price` | number | When published | Public listing price. |
| `currency` | string | When published | Observed listing currency. |
| `beds` | number | When published | Public bedroom count. |
| `baths` | number | When published | Public bathroom count. |
| `squareFeet` | number | When published | Public interior square-foot value. |
| `lotSquareFeet` | number | When published | Public lot-size square-foot value. |
| `yearBuilt` | number | When published | Public year-built value. |
| `propertyType` | string | When published | Public property type. |
| `address` | string | When published | Public street address or address label. |
| `city` | string | When published | Public city. |
| `state` | string | When published | Public state or region. |
| `postalCode` | string | When published | Public postal code. |
| `latitude` | number | When published | Public latitude. |
| `longitude` | number | When published | Public longitude. |
| `photos` | string array | When published | Bounded public property image URLs. |
| `agentName` | string | When published | Public listing agent name. |
| `agentPhone` | string | When published | Public listing agent phone. |
| `agentEmail` | string | When published | Public listing agent email. |
| `agentProfileUrl` | string | When published | Public Realtor.com agent or brokerage profile URL. |
| `brokerage` | string | When published | Public brokerage or seller organization. |
| `priceHistory` | object array | When `includeHistory` is enabled and present | Bounded public price-history rows. |
| `taxHistory` | object array | When `includeHistory` is enabled and present | Bounded public tax-history rows. |
| `pageNumber` | integer | Always for listing records | Observed search-page number. |
| `position` | integer | Always for listing records | Observed position on the source page. |
| `scrapedAt` | string | Always | UTC time when the row was saved. |
| `url` | string | Always in diagnostic rows | Diagnostic source route. |
| `error` | string | Always in diagnostic rows | Bounded diagnostic message. |
| `errorCode` | string | Always in diagnostic rows | Stable diagnostic code. |

`priceHistory` and `taxHistory` rows contain the public history key/value fields exposed by the source, bounded for size; the Actor does not invent missing periods.

#### Full JSON output

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

```json
{
  "recordId": "listing:9106-Marybank-Dr_Austin_TX_78750_M83054-04816",
  "sourceUrl": "https://www.realtor.com/realestateandhomes-search/Austin_TX",
  "pageUrl": "https://www.realtor.com/realestateandhomes-search/Austin_TX",
  "searchUrl": "https://www.realtor.com/realestateandhomes-search/Austin_TX",
  "listingId": "9106-Marybank-Dr_Austin_TX_78750_M83054-04816",
  "listingUrl": "https://www.realtor.com/realestateandhomes-detail/9106-Marybank-Dr_Austin_TX_78750_M83054-04816",
  "title": "9106 Marybank Dr, Austin, TX 78750",
  "price": 740000,
  "currency": "USD",
  "propertyType": "RealEstateListing",
  "photos": [
    "https://ap.rdcpix.com/f736a9cf1d239b2e3e35a64dfbccd9b4l-m4259698504s.jpg"
  ],
  "pageNumber": 1,
  "position": 1,
  "scrapedAt": "2026-10-22T20:59:13.488Z"
}
```

### 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 listing was saved. |
| `sourceCount` | Number of resolved search or detail routes used for the run. |
| `pagesRequested` | Unique pages requested, including detail pages. |
| `pagesVisited` | Pages for which a request completed, including failed pages. |
| `pagesFailed` | Pages that could not be loaded. |
| `requestsAttempted` | Page requests started; retries are counted separately. |
| `retryCount` | Retries performed after transient failures. |
| `itemsStored` | Listing rows saved, excluding diagnostic rows. |
| `diagnosticsStored` | Diagnostic rows written; zero when `includeDiagnostics` is `false`. |
| `failedUrls` | Unique URLs that failed. |
| `proxyConfigured` | Whether Apify Proxy was configured. |
| `finishedAt` | Time the summary was written, in ISO UTC. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | Listings were saved and no diagnostic was detected. |
| `PARTIAL` | Listings were saved, and at least one route or page produced a diagnostic. |
| `BLOCKED` | No listing was saved and an access challenge or HTTP 401, 403, 429, or 451 response was seen. |
| `FAILED` | No listing was saved and a page failed for another reason. |
| `NO_PUBLIC_DATA` | No listing 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": 5,
  "diagnosticsStored": 0,
  "failedUrls": [],
  "proxyConfigured": false,
  "finishedAt": "2026-10-22T20:59:13.591Z"
}
```

### Coverage and limitations

The Actor reads public Realtor.com search and property 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.

Search pagination follows only next links the public page exposes, up to `maxPages`. Detail enrichment is off by default and limited to `maxDetailItems`; without it, records contain only fields present on the search page. `includeHistory` controls whether public price and tax history arrays are retained.

When a live page cannot be fetched or parsed, the Actor may try public Wayback Machine captures of the same Realtor.com URL. Archived listings can be stale or no longer on the market, even though the row records the current request. 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.

Prices, availability, listing status, and agent details are point-in-time values and can change after the run. Realtor.com can remove or alter listings, and a clean empty result is reported with `NO_PUBLIC_DATA` rather than fabricated data.

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 search with history:

```json
{
  "location": "Austin_TX",
  "maxItems": 20,
  "maxPages": 1,
  "includeDetails": false,
  "includeHistory": true
}
```

Multiple locations with detail enrichment:

```json
{
  "locations": ["Austin_TX", "Dallas_TX"],
  "maxItems": 40,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5
}
```

A supplied search URL:

```json
{
  "startUrls": [
    {
      "url": "https://www.realtor.com/realestateandhomes-search/Austin_TX"
    }
  ],
  "maxItems": 5,
  "maxPages": 1,
  "includeDiagnostics": true
}
```

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

Cost depends on Apify compute, search and detail requests, retries, proxy usage, and the Actor resource allocation. Start with one location, 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-location-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Realtor.com, Move, Inc., or the National Association of REALTORS®. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Actor input Schema

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

Public Realtor.com search or detail pages. If omitted, locations are used.

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

One location slug such as Austin_TX. Used when locations is omitted.

## `locations` (type: `array`):

One to twenty non-URL location names or slugs.

## `maxResults` (type: `integer`):

Backward-compatible alias for maxItems.

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

Maximum unique listing records to emit.

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

Maximum observed search pages to request per start URL.

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

Request selected public detail pages discovered from search results.

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

Maximum detail pages requested for enrichment.

## `includeHistory` (type: `boolean`):

Retain bounded public price and tax history arrays when present.

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

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

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

Omit agent phone and email from emitted records (PII opt-out).

## `timeoutSecs` (type: `integer`):

Maximum time allowed for each public request.

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

Delay between requests and retry attempts.

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

Maximum retries for transient public failures.

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

Optional transparent HTTP user-agent string.

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

Optional language preference for the public request.

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

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

## Actor input object example

```json
{
  "startUrls": [],
  "location": "New-York_NY",
  "locations": [],
  "maxResults": 20,
  "maxItems": 20,
  "maxPages": 1,
  "includeDetails": false,
  "maxDetailItems": 5,
  "includeHistory": true,
  "includeDiagnostics": true,
  "redactContactInfo": false,
  "timeoutSecs": 30,
  "requestDelayMs": 500,
  "maxRequestRetries": 1,
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
  "acceptLanguage": "en-US,en;q=0.8"
}
```

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

```

## MCP server setup

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