# Realtor.com Market Data Scraper — Hotness, History, Schools (`w3crawler/realtor-market-analytics-scraper`) Actor

Extract public Realtor.com market-page metrics, historical chart rows, school ratings, and linked public hotness data without claiming fields absent from the source.

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

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 Market Data Scraper — Hotness, History, Schools

Extract public Realtor.com local-market facts and the linked Realtor.com Economic Research metro CSV history. The Actor can save one market summary plus per-month chart and core-metric history rows, public school facts, related-region comparisons, and filtered metro hotness rows. Every row keeps the exact source URL, source website, and retrieval timestamp.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/realtor-market-analytics-scraper) and select **Try for free** or open the **Input** tab.
2. Set `marketUrls` for the local market pages you need and `metroNames` or `metroCodes` for the hotness CSV.
3. Keep the default limits for the first run and enable only the row types you need.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check page, CSV, and record 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 |
| --- | --- | --- | --- | --- |
| `marketUrls` | string array | Optional | `["https://www.realtor.com/local/market/new-york/zipcode-10001"]` | Public HTTPS Realtor.com local-market URLs, such as state, county, city, or ZIP pages; up to 20. |
| `metroNames` | string array | Optional | `["New York-Newark-Jersey City, NY-NJ"]` | Exact metro names from the public hotness CSV; up to 20. |
| `metroCodes` | string array | Optional | Not supplied | Exact five-digit CBSA codes from the hotness CSV; up to 20. |
| `hotnessCsvUrl` | string | Optional | `https://econdata.s3-us-west-2.amazonaws.com/Reports/Hotness/RDC_Inventory_Hotness_Metrics_Metro_History.csv` | Public Realtor.com Economic Research metro hotness history CSV. |
| `includeHotness` | boolean | Optional | `true` | Download and filter the hotness CSV. At least one metro name or code is needed when enabled. |
| `coreCsvUrl` | string | Optional | `https://econdata.s3-us-west-2.amazonaws.com/Reports/Core/RDC_Inventory_Core_Metrics_Metro_History.csv` | Public Realtor.com Economic Research metro core-metrics history CSV. |
| `includeCoreMetrics` | boolean | Optional | `true` | Use the core-metrics CSV for the market summary and monthly history rows. |
| `includeHistory` | boolean | Optional | `true` | Emit chart and core-metric history rows. |
| `includeSchools` | boolean | Optional | `true` | Emit school rating, enrollment, ratio, and proficiency rows when the market page publishes them. |
| `includeRelatedRegions` | boolean | Optional | `true` | Emit related-region comparison rows found in public JSON-LD. |
| `maxMarkets` | integer | Optional | `3` | Maximum local-market pages to fetch, from 1 to 20. |
| `maxRecords` | integer | Optional | `300` | Maximum source-backed dataset rows, from 1 to 2,000. Diagnostics do not consume this limit. |
| `maxHotnessRows` | integer | Optional | `36` | Maximum newest matching hotness months per selected metro, from 1 to 240. |
| `timeoutSecs` | integer | Optional | `60` | Timeout for each direct HTML or CSV request, from 5 to 180 seconds. |
| `requestDelayMs` | integer | Optional | `200` | Delay between direct public requests, from 0 to 5,000 ms. |

Full default input:

```json
{
  "marketUrls": [
    "https://www.realtor.com/local/market/new-york/zipcode-10001"
  ],
  "metroNames": [
    "New York-Newark-Jersey City, NY-NJ"
  ],
  "hotnessCsvUrl": "https://econdata.s3-us-west-2.amazonaws.com/Reports/Hotness/RDC_Inventory_Hotness_Metrics_Metro_History.csv",
  "includeHotness": true,
  "coreCsvUrl": "https://econdata.s3-us-west-2.amazonaws.com/Reports/Core/RDC_Inventory_Core_Metrics_Metro_History.csv",
  "includeCoreMetrics": true,
  "includeHistory": true,
  "includeSchools": true,
  "includeRelatedRegions": true,
  "maxMarkets": 3,
  "maxRecords": 300,
  "maxHotnessRows": 36,
  "timeoutSecs": 60,
  "requestDelayMs": 200
}
```

The Actor reads public Realtor.com market pages and the two official Economic Research CSVs over direct HTTPS. A blocked or unavailable market page does not stop a CSV-only run; the failure is counted in `OUTPUT_SUMMARY`, and any rows produced from the CSV remain available.

### Output

The dataset contains public market facts only. A row is one of five record types: `realtor-market-summary`, `realtor-market-history`, `realtor-market-related`, `realtor-school`, or `realtor-hotness`. Optional fields are omitted when the source does not publish them; operational errors never become dataset rows.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always | Row kind: `realtor-market-summary`, `realtor-market-history`, `realtor-market-related`, `realtor-school`, or `realtor-hotness`. |
| `recordId` | string | Always | Stable identifier built from the row kind, region or metro, metric, and period. |
| `sourceUrl` | string | Always | Exact market-page or CSV URL used for the row. |
| `sourceWebsite` | string | Always | Source origin, `https://www.realtor.com/` or the Economic Research CSV host. |
| `scrapedAt` | string | Always | Time the row was normalized, in ISO UTC. |
| `regionName` | string | When present | Market, metro, city, county, or ZIP name. |
| `regionType` | string | When present | Geography kind, such as `metro`, `city`, `county`, or `zip`. |
| `city` | string | When present | City from the market page. |
| `state` | string | When present | State or region code. |
| `county` | string | When present | Normalized county name. |
| `postalCode` | string | When present | ZIP code for a ZIP market page. |
| `countyFipsCode` | string | When present | Normalized five-digit county FIPS code. |
| `geographyValidation` | string enum | When present | ZIP-to-county validation state: `verified_known_zip`, `corrected_known_zip`, `source_only`, or `unverified`. |
| `sourceCounty` | string | When present | County label exactly as shown by the source. |
| `sourceCountyFipsCode` | string | When present | County FIPS code exactly as shown by the source. |
| `pageTitle` | string | When present | Public title of the market page. |
| `dateModified` | string | When present | Source modified label or the core CSV period label for a summary row. |
| `metrics` | object array | When present | Named summary metrics; each entry has `name`, `value`, and optional `unitCode`, `unitText`, `oneYearChange`, and `threeYearChange`. |
| `medianListingPrice` | number | When present | Median listing price reported for the period. |
| `medianListingPriceYoY` | number | When present | Year-over-year median listing price change as a decimal fraction. |
| `pricePerSquareFoot` | number | When present | Median or reported price per square foot. |
| `activeListings` | number | When present | Active listing count for the period. |
| `averageDaysOnMarket` | number | When present | Average days on market for the period. |
| `chartType` | string | When present | Chart-series origin, such as `core-metrics`. |
| `metricName` | string | When present | Metric represented by a history row. |
| `period` | string | When present | Source period label, such as `202609`. |
| `value` | number or string | When present | Metric value for the history point. |
| `yAxis` | object or array | When present | Chart axis configuration when the market page exposes it. |
| `schoolName` | string | When present | Public school name. |
| `schoolGradeLevel` | string | When present | Grade range served by the school. |
| `schoolUrl` | string | When present | Public school page URL. |
| `rating` | number | When present | Public school rating. |
| `studentTeacherRatio` | string | When present | Student-to-teacher ratio as published. |
| `totalEnrollment` | number | When present | Total student enrollment. |
| `mathProficiency` | number | When present | Math proficiency value published for the school. |
| `readingProficiency` | number | When present | Reading proficiency value published for the school. |
| `relatedName` | string | When present | Name of a related region. |
| `relatedUrl` | string | When present | Public URL of the related region. |
| `relatedProperties` | object | When present | Related-region attributes as string key-value pairs. |
| `comparisonList` | string | When present | Comparison label or list shown for the related region. |
| `month` | string | When present | Source month label for a metro history row. |
| `metroCode` | string | When present | Five-digit CBSA code. |
| `metroName` | string | When present | Metro name from the CSV. |
| `hotnessRank` | number | When present | Metro hotness rank for the month. |
| `hotnessScore` | number | When present | Metro hotness score. |
| `supplyScore` | number | When present | Supply-side hotness score. |
| `demandScore` | number | When present | Demand-side hotness score. |
| `medianDaysOnMarket` | number | When present | Median days on market for the metro month. |
| `medianDaysOnMarketYoY` | number | When present | Year-over-year change in median days on market. |
| `pageViewCountPerPropertyYoY` | number | When present | Year-over-year change in page views per property. |
| `qualityFlag` | string | When present | Quality indicator from the hotness CSV. |

The example below is a real saved summary row from the 2026-10-25 run. The `metrics` array is shortened; all other values are complete.

```json
{
  "recordType": "realtor-market-summary",
  "recordId": "core-summary:35620:202609",
  "regionName": "New York-Newark-Jersey City, NY-NJ",
  "regionType": "metro",
  "metroCode": "35620",
  "metroName": "New York-Newark-Jersey City, NY-NJ",
  "month": "202609",
  "dateModified": "202609",
  "metrics": [
    {
      "name": "Median Listing Price",
      "value": 742000,
      "unitText": "USD"
    },
    {
      "name": "Price per Square Foot",
      "value": 494,
      "unitText": "USD"
    },
    {
      "name": "Active Listings",
      "value": 38158
    }
  ],
  "medianListingPrice": 742000,
  "medianListingPriceYoY": -0.023,
  "pricePerSquareFoot": 494,
  "activeListings": 38158,
  "averageDaysOnMarket": 56,
  "sourceUrl": "https://econdata.s3-us-west-2.amazonaws.com/Reports/Core/RDC_Inventory_Core_Metrics_Metro_History.csv",
  "sourceWebsite": "https://econdata.s3-us-west-2.amazonaws.com/",
  "scrapedAt": "2026-10-25T20:51:09.796Z"
}
```

Cross-field shape: `metrics` entries contain `name` and `value` plus optional units and change values; history rows use `chartType`, `metricName`, `period`, and `value`; school rows use the `school*` and proficiency fields; related rows use `related*` and `comparisonList`; hotness rows use the hotness and demand/supply 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, `realtor-market-analytics-scraper`. |
| `recordType` | Summary record type; `run-summary`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. A clean empty result is `SUCCEEDED`. |
| `runStatus` | Run execution outcome: `SUCCEEDED` when rows were written or the run completed cleanly with no results; `FAILED` only when an operational failure occurred before any usable row. |
| `dataStatus` | Saved-data completeness: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `dataAvailable` | Whether at least one source-backed row was saved. |
| `requestedMarkets` | Number of market URLs requested. |
| `sourceUrls` | Market and CSV URLs used by the run. |
| `marketUrls` | Deduplicated market URLs after `maxMarkets` is applied. |
| `hotnessCsvUrl` | Hotness CSV URL selected for the run; present only when `includeHotness` is enabled. |
| `marketPagesFetched` | Market pages successfully fetched. |
| `hotnessSourcesFetched` | Hotness CSV resources successfully fetched. |
| `marketRecords` | Summary and history records derived from market pages or the core CSV. |
| `hotnessRecords` | Hotness rows emitted. |
| `schoolRecords` | School rows emitted. |
| `relatedRecords` | Related-region rows emitted. |
| `requests` | Public requests made. |
| `requestsAttempted` | Requests attempted, including retries. |
| `retryCount` | Retry attempts performed. |
| `recordsPushed` | Rows pushed to the dataset. |
| `dataRecords` | Source-backed data rows, excluding diagnostics. |
| `datasetWriteFailureCount` | Dataset writes that failed. |
| `outputWriteFailureCount` | Summary writes that failed. |
| `diagnosticCount` | Operational issues recorded in the summary. |
| `diagnosticItems` | Diagnostic dataset rows; always `0`. |
| `diagnosticsStored` | Diagnostics written as dataset rows; always `0`. |
| `failedRequestCount` | Requests that failed. |
| `maxRecords` | Row limit used for the run. |
| `includeHotness` | Whether hotness collection was enabled. |
| `includeHistory` | Whether chart and core history rows were enabled. |
| `includeSchools` | Whether school rows were enabled. |
| `includeRelatedRegions` | Whether related-region rows were enabled. |
| `sourceWebsite` | Source label recorded for the run. |
| `proxyConfigured` | Whether proxy routing was configured; this build reports `false`. |
| `startedAt` | Run start time, in ISO UTC. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Eligible rows were saved without a source failure or dataset-write failure. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but at least one source request or dataset write failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The run completed cleanly and saved no matching rows. |
| `FAILED` | `FAILED` | No usable row was saved because a source or dataset failure occurred before any data row. |

Example `OUTPUT_SUMMARY` from the saved run. Here the market page request failed, while 30 core-CSV rows were saved, so the run is `SUCCEEDED` with `dataStatus: "PARTIAL"`.

```json
{
  "actor": "realtor-market-analytics-scraper",
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "PARTIAL",
  "dataAvailable": true,
  "requestedMarkets": 1,
  "sourceUrls": [
    "https://www.realtor.com/local/market/new-york/zipcode-10001",
    "https://econdata.s3-us-west-2.amazonaws.com/Reports/Core/RDC_Inventory_Core_Metrics_Metro_History.csv"
  ],
  "marketUrls": [
    "https://www.realtor.com/local/market/new-york/zipcode-10001"
  ],
  "marketPagesFetched": 0,
  "hotnessSourcesFetched": 0,
  "marketRecords": 30,
  "hotnessRecords": 0,
  "schoolRecords": 0,
  "relatedRecords": 0,
  "requests": 2,
  "requestsAttempted": 2,
  "retryCount": 0,
  "recordsPushed": 30,
  "dataRecords": 30,
  "datasetWriteFailureCount": 0,
  "outputWriteFailureCount": 0,
  "diagnosticCount": 1,
  "diagnosticItems": 0,
  "diagnosticsStored": 0,
  "failedRequestCount": 1,
  "maxRecords": 30,
  "includeHotness": false,
  "includeHistory": true,
  "includeSchools": true,
  "includeRelatedRegions": true,
  "sourceWebsite": "https://www.realtor.com/",
  "proxyConfigured": false,
  "startedAt": "2026-10-25T20:51:09.796Z",
  "completedAt": "2026-10-25T20:51:15.162Z"
}
```

### Coverage and limitations

The Actor reads public market pages and the two official Economic Research CSVs over direct HTTPS. It does not log in, call private endpoints, solve CAPTCHAs, bypass access controls, or infer missing metrics. Market-page layouts and CSV schemas can change; a blocked or changed page produces no page row and is counted in `OUTPUT_SUMMARY`. CSV-derived rows can still be produced when a market page fails, which is why a successful run can carry `dataStatus: "PARTIAL"`.

School and related-region coverage depends on what the selected market page publishes. Hotness coverage depends on matching the exact metro name or CBSA code in the hotness CSV, and the newest `maxHotnessRows` months are retained. Historical values are source snapshots and are not forecasts. `maxRecords` bounds data rows only.

### Usage and support

Cost grows with the number of market pages, CSV bytes transferred, enabled row types, and the row limit. Start with one market and a modest `maxRecords`; disable hotness or schools while testing. Inspect `OUTPUT_SUMMARY` to distinguish a blocked market page from a clean empty result, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/realtor-market-analytics-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by Realtor.com. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law.

# Actor input Schema

## `marketUrls` (type: `array`):

Public HTTPS Realtor.com local market URLs, such as a state, county, city, or ZIP market page.

## `metroNames` (type: `array`):

Exact metro names from the public hotness CSV. The default selects New York-Newark-Jersey City, NY-NJ.

## `metroCodes` (type: `array`):

Optional CBSA codes from the public hotness CSV; code matches are exact.

## `hotnessCsvUrl` (type: `string`):

Official public Realtor.com Economic Research metro hotness history CSV.

## `includeHotness` (type: `boolean`):

Download and filter the linked public metro hotness history CSV.

## `coreCsvUrl` (type: `string`):

Official public Realtor.com Economic Research metro core-metrics history CSV used for market summary and history rows.

## `includeCoreMetrics` (type: `boolean`):

Read the official public metro core-metrics history CSV for market summary and per-month history rows.

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

Emit one row per public market chart series/date/value point.

## `includeSchools` (type: `boolean`):

Emit public school rating, enrollment, ratio, and proficiency rows when the market page publishes them.

## `includeRelatedRegions` (type: `boolean`):

Emit public JSON-LD related-region comparison rows.

## `maxMarkets` (type: `integer`):

Maximum local market pages to fetch.

## `maxRecords` (type: `integer`):

Maximum number of source-backed dataset records. Operational diagnostics do not consume this limit.

## `maxHotnessRows` (type: `integer`):

Maximum newest matching hotness months to emit for each selected metro.

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

Timeout for each direct public HTML or CSV request.

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

Bounded delay between direct public requests.

## Actor input object example

```json
{
  "marketUrls": [
    "https://www.realtor.com/local/market/new-york/zipcode-10001"
  ],
  "metroNames": [
    "New York-Newark-Jersey City, NY-NJ"
  ],
  "hotnessCsvUrl": "https://econdata.s3-us-west-2.amazonaws.com/Reports/Hotness/RDC_Inventory_Hotness_Metrics_Metro_History.csv",
  "includeHotness": true,
  "coreCsvUrl": "https://econdata.s3-us-west-2.amazonaws.com/Reports/Core/RDC_Inventory_Core_Metrics_Metro_History.csv",
  "includeCoreMetrics": true,
  "includeHistory": true,
  "includeSchools": true,
  "includeRelatedRegions": true,
  "maxMarkets": 3,
  "maxRecords": 300,
  "maxHotnessRows": 36,
  "timeoutSecs": 60,
  "requestDelayMs": 200
}
```

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

```

## MCP server setup

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