Get Market Statistics
get_market_statsGet aggregate market statistics for a US ZIP code: average/median sale price and rent, price per square foot, days on market, and listing counts. Establish a local market baseline to compare property estimates.
Instructions
Get aggregate market statistics and trends for a ZIP CODE — average and median sale price, average and median rent, price/rent per square foot, average days on market, and listing counts. Use this to establish the local baseline: e.g. compare a single property's get_rent_estimate against the zip's average rent, or gauge whether an area is hot (low days-on-market, many new listings). Choose data_type to get sale stats, rental stats, or both. All prices are USD; rents are USD/month. Returns a summarized snapshot; if RentCast has too little data for a zip, the corresponding sale or rental block is omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes | The 5-digit US zip code to pull market statistics for, e.g. '78244'. | |
| data_type | No | Which stats to return: 'Sale', 'Rental', or 'All' (default). | |
| history_range | No | Months of historical trend data to consider (default 12). |