The /market-stats endpoint returns current market statistics for a US ZIP code: median prices, days on market, active listings, year-over-year price change, and market temperature classification.
Request
Response Schema
Market Temperature Bands
The label is derived from median days on market alone, and is null when days on market is unknown — an absent reading is never reported as a hot market.
| Median days on market | market_temperature |
|---|---|
| Under 15 | Hot |
| 15–27 | Warm |
| 28–41 | Balanced |
| 42–57 | Cool |
| 58 or more | Buyer's Market |
Two freshness fields matter more than they look. data_source is "redfin_mls" for a real Redfin row and "estimated" when the ZIP was too sparse and a regional anchor was substituted — an estimated response also carries estimate_basis explaining what it was built from. data_age_days measures from the end of the reporting month, and once it passes 75 the response gains is_stale: true. Check both before treating a figure as current.
Code Examples
Error Responses
| Status | Meaning |
|---|---|
| 200 | Success |
| 400 | Invalid ZIP code format |
| 401 | Missing or invalid API key |
| 404 | ZIP code not found in database |
| 429 | Rate limit exceeded |