# Zillow Market Trends Scraper (`crawlerbros/zillow-market-trends-scraper`) Actor

Scrape Zillow market data for cities, ZIP codes, and states. Returns median listing price, days on market, inventory, price cuts, sale-to-list ratio, and historical trend arrays.

- **URL**: https://apify.com/crawlerbros/zillow-market-trends-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Real estate, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 21 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Zillow Market Trends Scraper

Scrape real estate market trend data from Zillow for any US city or state. Returns the Zillow Home Value Index (ZHVI), median listing and sale prices, for-sale inventory, days to pending, sale-to-list ratio, rental index (ZORI), and configurable months of historical data — everything an investor or market analyst needs in one structured record.

### Features

- **City or state input** — e.g. `"Austin, TX"`, `"Texas"`, or `"TX"`
- **Home Value Index** — latest ZHVI with year-over-year change
- **Listing & sale metrics** — median listing price, median sale price, inventory, new listings
- **Transaction ratios** — sale-to-list ratio, % selling above/below list, days to pending
- **Rental index** — latest ZORI (Zillow Observed Rent Index)
- **Historical arrays** — configurable months (1–120) of monthly trend data
- **Multiple locations per run** — pass a list and get one record per location

### Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `locations` | string[] | ✅ | — | City (`"Austin, TX"`) or state (`"Texas"` / `"TX"`) |
| `historyMonths` | integer | ❌ | 24 | Months of historical trend arrays to return (1–120) |

**Note:** ZIP codes are not supported by Zillow's market data pages — use a city or state instead.

### Output

One JSON record per location:

```json
{
  "location": "Austin, TX",
  "locationType": "city",
  "slug": "austin-tx",
  "url": "https://www.zillow.com/austin-tx/home-values/",
  "regionId": 10221,
  "regionName": "Austin",
  "zhviLatest": 508000,
  "zhviYoY": -0.057,
  "zhviAsOf": "2026-03-31",
  "medianListingPrice": 556000,
  "forSaleInventory": 4193,
  "newListings": 1163,
  "medianSalePrice": 528000,
  "saleToListRatio": 0.972,
  "pctSellingAboveList": 0.118,
  "pctSellingBelowList": 0.741,
  "medianDaysToPending": 53,
  "zoriLatest": 1542,
  "zhviHistory": [
    {"date": "2026-03-31", "value": 508000}
  ],
  "rentalHistory": [
    {"date": "2026-03-31", "zori": 1542}
  ],
  "scrapedAt": "2026-05-01T12:00:00Z"
}
````

Full field reference: see the **Output** tab in the Apify Console.

### Use Cases

- **Investor research** — score markets by ZHVI growth + sale-to-list ratio + days to pending
- **Real estate dashboards** — feed Zillow's authoritative metrics into BI tools
- **Comparative market analysis** — pull 50+ cities in one run for cross-market reports
- **Trend modeling** — historical arrays drive YoY/QoQ analysis without scraping calendars
- **Rental yield calc** — combine ZORI + ZHVI per market to model gross rental yield

### Examples

**Single city, 12-month history:**

```json
{
  "locations": ["Austin, TX"],
  "historyMonths": 12
}
```

**Multi-state comparison:**

```json
{
  "locations": ["TX", "FL", "CA", "NY"],
  "historyMonths": 60
}
```

### FAQs

**What locations are supported?**
Any US city or state that has a home-values page on Zillow (`zillow.com/{slug}/home-values/`). ZIP codes are not supported — use a city name instead. International locations are not supported.

**What is ZHVI?**
The Zillow Home Value Index is Zillow's estimate of the typical home value for a region. `zhviYoY` is the year-over-year change as a decimal (e.g. `-0.057` = -5.7%).

**What is ZORI?**
The Zillow Observed Rent Index tracks typical market-rate rents. Available for most cities and states.

**Why are some fields missing?**
Zillow's data coverage varies by market. Smaller markets may omit some metrics. The actor returns whatever Zillow provides for each location.

**Why are some history arrays shorter than `historyMonths`?**
Zillow may have less historical data available for certain markets. The actor returns up to the requested number of months, capped at what Zillow provides.

**How many locations can I scrape per run?**
There is no hard cap — pass as many locations as you need. Each location takes 2–5 seconds including the inter-location delay.

# Actor input Schema

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

List of locations to scrape: city name (e.g. 'Austin, TX') or state name/abbreviation (e.g. 'Texas' or 'TX'). ZIP codes are not supported.

## `historyMonths` (type: `integer`):

Number of months of historical trend data to include per metric (1–120). Default is 24.

## Actor input object example

```json
{
  "locations": [
    "Austin, TX"
  ],
  "historyMonths": 24
}
```

# Actor output Schema

## `trends` (type: `string`):

Dataset of scraped Zillow market-trend records (one per location).

# 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 = {
    "locations": [
        "Austin, TX"
    ],
    "historyMonths": 24
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/zillow-market-trends-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 = {
    "locations": ["Austin, TX"],
    "historyMonths": 24,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/zillow-market-trends-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Austin, TX"
  ],
  "historyMonths": 24
}' |
apify call crawlerbros/zillow-market-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/zillow-market-trends-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Zillow Market Trends Scraper",
        "description": "Scrape Zillow market data for cities, ZIP codes, and states. Returns median listing price, days on market, inventory, price cuts, sale-to-list ratio, and historical trend arrays.",
        "version": "0.1",
        "x-build-id": "GyS6yYvBXITh4ZX8u"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~zillow-market-trends-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-zillow-market-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~zillow-market-trends-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-zillow-market-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~zillow-market-trends-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-zillow-market-trends-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "locations"
                ],
                "properties": {
                    "locations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "List of locations to scrape: city name (e.g. 'Austin, TX') or state name/abbreviation (e.g. 'Texas' or 'TX'). ZIP codes are not supported.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "historyMonths": {
                        "title": "History Months",
                        "minimum": 1,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Number of months of historical trend data to include per metric (1–120). Default is 24.",
                        "default": 24
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
