# Public records market figures

Source: https://help.ruuster.com/idx/public-records-market

> Get a fixed set of market figures built from public records for one ZIP code, city or county, as counts and medians, with your secret key and the Public Records add-on.

```http
GET https://idx.ruuster.com/v1/public-records/market
```

secret key only · 1 unit · never cached

A fixed list of market figures built from county public records for one area: how many homes are on
the tax roll, how many the owner lives in, how long owners have held them, the last year's recorded
sales, and loan and equity estimates. It is part of the Public Records add-on, and it is for market
reports.

## What to know

- **Secret key only,** from your server. Your account needs the Public Records add-on.
- Send one area: `zip`, or `city` with `state`, or one county as the `where` object `/v1/suggest`
  returned for it.
- The answer is counts and medians only. It never holds a property, an address, an owner or a
  record id.
- **Every figure needs at least 10 properties behind it.** A figure with fewer is `null`, and its
  `reason` says why. A share is also `null` when fewer than 10 properties are on one side of it.
  When a single month of `salesByMonth` is withheld, one more month is withheld with it.
- The figures are fixed. There is no grouping, and the only filters are `type` and a year-built
  range in whole decades (`yearMin` ends in 0, `yearMax` ends in 9).
- A city or a county is the ZIP codes of its listings on your MLS boards; `area.postalCodes` lists
  them. An area wider than 25 ZIP codes answers 400 `area_too_large`.
- A neighborhood, a school, a map box, a radius, a polygon or a saved shape is not accepted.
- Only the states your approved MLS boards cover.
- `definitions` says in plain words how each figure is worked out. Loan and equity figures are
  estimates.
- The same area is worked out once a day.

## Limits

The market figures have their own limit for your account: 10 a minute and 200 a day unless your
account has its own. A call past a limit answers 429 and names the limit and when it resets.

## In the sandbox

A sandbox secret key answers this endpoint from the sample records, with no add-on.

## Where it is used

- [Public records for CMAs and listing presentations](https://help.ruuster.com/idx/guide-public-records)
- [Market statistics for an area](https://help.ruuster.com/idx/guide-market-stats): the market
  numbers built from the listings on your boards, which are a different source.

## Query parameters

| Name | Type | Description |
|---|---|---|
| `zip` | string | The area as one five-digit ZIP code. Send one area: zip, or city with state, or one county where object. |
| `city` | string | The area as a city, sent together with state (city=Decatur&state=GA). The figures cover the ZIP codes of that city's listings on your MLS boards. At most 80 characters. |
| `state` | string | The two-letter state code that goes with city. |
| `where` | json | The area as one county, as the JSON object /v1/suggest returned for it in `where` (source "county"), passed back unchanged. Only a county is accepted here: no neighborhood, school, place, map area or saved shape. |
| `type` | enum | Only this property type. Left out, every property on the tax roll. Values: `single_family`, `condo`, `townhouse`, `multi_family`. |
| `yearMin` | integer 1800 to 2090 | Built in or after this year. Whole decades only: a year ending in 0 (1980). |
| `yearMax` | integer 1809 to 2099 | Built in or before this year. Whole decades only: a year ending in 9 (1999). |

## Response

The answer is `{ ok: true, data, meta }`. These are the fields of `data`; `meta` carries `brokerageId`, `freshness.asOf`, `mls` (each board's display rules) and `canonical`.

| Field | Type | Description |
|---|---|---|
| `area` | object | The area the figures describe. |
| `area.kind` | string (enum) | What you asked for. One of `zip`, `city`, `county`. |
| `area.label` | string | The area's name. |
| `area.postalCodes` | array of string | The ZIP codes the figures cover. A city or county is the ZIP codes of its listings on your MLS boards. |
| `filters` | object | The filters applied. |
| `filters.type` | string (enum) or null | The property type filter, or null. One of `single_family`, `condo`, `townhouse`, `multi_family`. |
| `filters.yearMin` | integer or null | Built in or after this year (a decade start), or null. |
| `filters.yearMax` | integer or null | Built in or before this year (a decade end), or null. |
| `period` | object | The window of the sale figures. |
| `period.months` | integer | The months of sales the sale figures cover. |
| `period.from` | string | The first day of the sales window (YYYY-MM-DD). |
| `period.through` | string | The last day (YYYY-MM-DD). |
| `minimumProperties` | integer | The fewest properties a figure may be built from (10). |
| `measures` | object | The fixed list of figures. Nothing else can be asked for. |
| `measures.homes` | object | Properties on the county tax roll in the area, after the type and year-built filters. |
| `measures.homes.value` | number or null | Properties on the county tax roll in the area, after the type and year-built filters. null when fewer than 10 properties are behind it. |
| `measures.homes.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.homes.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.ownerOccupiedShare` | object | The share of properties the owner lives in (0 to 1), among those whose occupancy the county records. |
| `measures.ownerOccupiedShare.value` | number or null | The share of properties the owner lives in (0 to 1), among those whose occupancy the county records. null when fewer than 10 properties are behind it. |
| `measures.ownerOccupiedShare.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.ownerOccupiedShare.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.absenteeOwnerShare` | object | The share of properties whose owner lives elsewhere (0 to 1), among those whose occupancy the county records. |
| `measures.absenteeOwnerShare.value` | number or null | The share of properties whose owner lives elsewhere (0 to 1), among those whose occupancy the county records. null when fewer than 10 properties are behind it. |
| `measures.absenteeOwnerShare.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.absenteeOwnerShare.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.medianYearsOwned` | object | The median years since each property's last recorded sale. |
| `measures.medianYearsOwned.value` | number or null | The median years since each property's last recorded sale. null when fewer than 10 properties are behind it. |
| `measures.medianYearsOwned.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.medianYearsOwned.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.sales12m` | object | Properties whose last recorded sale was in the last 12 months. |
| `measures.sales12m.value` | number or null | Properties whose last recorded sale was in the last 12 months. null when fewer than 10 properties are behind it. |
| `measures.sales12m.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.sales12m.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.medianLastSalePrice12m` | object | The median price of those sales, in dollars. |
| `measures.medianLastSalePrice12m.value` | number or null | The median price of those sales, in dollars. null when fewer than 10 properties are behind it. |
| `measures.medianLastSalePrice12m.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.medianLastSalePrice12m.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.medianSalePricePerSqft12m` | object | The median price per square foot of those sales, in dollars. |
| `measures.medianSalePricePerSqft12m.value` | number or null | The median price per square foot of those sales, in dollars. null when fewer than 10 properties are behind it. |
| `measures.medianSalePricePerSqft12m.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.medianSalePricePerSqft12m.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.openMortgageShare` | object | The share of properties with an estimated open loan balance (0 to 1). An estimate. |
| `measures.openMortgageShare.value` | number or null | The share of properties with an estimated open loan balance (0 to 1). An estimate. null when fewer than 10 properties are behind it. |
| `measures.openMortgageShare.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.openMortgageShare.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `measures.medianEquityShare` | object | The median equity share (0 to 1): one minus the estimated open loan balance over the county's market value. An estimate. |
| `measures.medianEquityShare.value` | number or null | The median equity share (0 to 1): one minus the estimated open loan balance over the county's market value. An estimate. null when fewer than 10 properties are behind it. |
| `measures.medianEquityShare.properties` | integer or null | How many properties the value is built from; null when the value is withheld. |
| `measures.medianEquityShare.reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `salesByMonth` | array of object | Properties by the month of their last recorded sale, oldest month first. A month under 10 is null (and one more month is withheld with it, so it cannot be worked out). |
| `salesByMonth[].month` | string | The month (YYYY-MM). |
| `salesByMonth[].sales` | integer or null | Sales that month; null when withheld. |
| `salesByMonth[].reason` | string (enum) or null | Why the value is null: fewer than 10 properties behind it, or (a share) fewer than 10 on one side of it. null when the value is published. One of `fewer_than_10_properties`, `fewer_than_10_on_one_side`. |
| `definitions` | object | How each figure is defined, in plain words. |
| `definitions.homes` | string | How the figure is defined. |
| `definitions.ownerOccupiedShare` | string | How the figure is defined. |
| `definitions.absenteeOwnerShare` | string | How the figure is defined. |
| `definitions.medianYearsOwned` | string | How the figure is defined. |
| `definitions.sales12m` | string | How the figure is defined. |
| `definitions.medianLastSalePrice12m` | string | How the figure is defined. |
| `definitions.medianSalePricePerSqft12m` | string | How the figure is defined. |
| `definitions.openMortgageShare` | string | How the figure is defined. |
| `definitions.medianEquityShare` | string | How the figure is defined. |
| `definitions.salesByMonth` | string | How the figure is defined. |

## Errors

These are the error codes this endpoint can answer. Every error has the same body; [Errors](https://help.ruuster.com/idx/reference-errors) explains each code and what to show.

`area_too_large`, `invalid_parameter`, `location_required`, `secret_key_in_url`, `invalid_credentials`, `missing_credentials`, `payment_required`, `access_revoked`, `addon_not_enabled`, `brokerage_not_enabled`, `secret_key_in_browser`, `secret_key_required`, `boundary_not_found`, `mls_not_in_scope`, `not_found`, `location_not_supported`, `daily_quota_exceeded`, `rate_limited`, `internal_error`, `api_paused`, `source_unavailable`

## Example request

cURL:

```bash
curl -s -G "https://idx.ruuster.com/v1/public-records/market" \
  --data-urlencode zip=30308 \
  -H "Authorization: Bearer $IDX_SECRET_KEY"
```

TypeScript:

```typescript
import { createClient } from "@ruuster/idx";

const idx = createClient({ secretKey: process.env.IDX_SECRET_KEY });

const r = await idx.request("/public-records/market", {
  zip: "30308",
});
if (!r.ok) throw new Error(`${r.error.code}: ${r.error.message}`);
console.log(r.data);
```

Python:

```python
import os

import requests

res = requests.get(
    "https://idx.ruuster.com/v1/public-records/market",
    params={
        "zip": "30308",
    },
    headers={"Authorization": "Bearer " + os.environ["IDX_SECRET_KEY"]},
    timeout=30,
)
body = res.json()
if not body["ok"]:
    raise RuntimeError(body["error"]["code"] + ": " + body["error"]["message"])
print(body["data"])
```

PHP:

```php
<?php

$query = http_build_query([
    'zip' => '30308',
], '', '&', PHP_QUERY_RFC3986);
$ch = curl_init('https://idx.ruuster.com/v1/public-records/market' . '?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('IDX_SECRET_KEY')],
    CURLOPT_TIMEOUT => 30,
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!$body['ok']) {
    throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
```

## Example response

```json
{
  "ok": true,
  "data": {
    "area": {
      "kind": "zip",
      "label": "ZIP 30308",
      "postalCodes": [
        "30308"
      ]
    },
    "filters": {
      "type": null,
      "yearMin": null,
      "yearMax": null
    },
    "period": {
      "months": 12,
      "from": "2025-11-01",
      "through": "2026-10-22"
    },
    "minimumProperties": 10,
    "measures": {
      "homes": {
        "value": 4180,
        "properties": 4180,
        "reason": null
      },
      "ownerOccupiedShare": {
        "value": 0.61,
        "properties": 3990,
        "reason": null
      },
      "absenteeOwnerShare": {
        "value": 0.39,
        "properties": 3990,
        "reason": null
      },
      "medianYearsOwned": {
        "value": 8.4,
        "properties": 3875,
        "reason": null
      },
      "sales12m": {
        "value": 312,
        "properties": 312,
        "reason": null
      },
      "medianLastSalePrice12m": {
        "value": 468500,
        "properties": 312,
        "reason": null
      },
      "medianSalePricePerSqft12m": {
        "value": 241.4,
        "properties": 301,
        "reason": null
      },
      "openMortgageShare": {
        "value": 0.64,
        "properties": 4180,
        "reason": null
      },
      "medianEquityShare": {
        "value": 0.582,
        "properties": 4102,
        "reason": null
      }
    },
    "salesByMonth": [
      {
        "month": "2025-11",
        "sales": 22,
        "reason": null
      },
      {
        "month": "2025-12",
        "sales": null,
        "reason": "fewer_than_10_properties"
      },
      {
        "month": "2026-01",
        "sales": 24,
        "reason": null
      },
      {
        "month": "2026-02",
        "sales": 31,
        "reason": null
      },
      {
        "month": "2026-03",
        "sales": 35,
        "reason": null
      },
      {
        "month": "2026-04",
        "sales": 38,
        "reason": null
      },
      {
        "month": "2026-05",
        "sales": 33,
        "reason": null
      },
      {
        "month": "2026-06",
        "sales": 29,
        "reason": null
      },
      {
        "month": "2026-07",
        "sales": 26,
        "reason": null
      },
      {
        "month": "2026-08",
        "sales": 21,
        "reason": null
      },
      {
        "month": "2026-09",
        "sales": 25,
        "reason": null
      },
      {
        "month": "2026-10",
        "sales": null,
        "reason": "fewer_than_10_properties"
      }
    ],
    "definitions": {
      "homes": "Properties on the county tax roll in the area (after the type and year-built filters).",
      "ownerOccupiedShare": "Of the properties whose occupancy the county records, the share the owner lives in.",
      "absenteeOwnerShare": "Of the properties whose occupancy the county records, the share whose owner lives elsewhere.",
      "medianYearsOwned": "The median years since each property's last recorded sale, among properties with one.",
      "sales12m": "Properties whose last recorded sale was in the last 12 months, for more than a nominal price.",
      "medianLastSalePrice12m": "The median price of those sales.",
      "medianSalePricePerSqft12m": "The median price per square foot of living area of those sales, among the ones with a recorded living area.",
      "openMortgageShare": "The share of properties with an estimated open loan balance. An estimate: counties do not always record a payoff.",
      "medianEquityShare": "The median of one minus the estimated open loan balance over the county's market value on the tax roll, among properties with a market value. An estimate.",
      "salesByMonth": "Properties by the month of their last recorded sale, for each of the last 12 months."
    }
  },
  "meta": {
    "brokerageId": "bbbbbbbb-0000-4000-8000-000000000001",
    "freshness": {
      "asOf": "2026-10-22T15:00:00.000Z"
    },
    "mls": [],
    "canonical": null,
    "notice": "Built from county public records, which run about two months behind recording. Counts and medians only; a figure with fewer than 10 properties behind it is null. Loan and equity figures are estimates.",
    "audience": "display"
  }
}
```
