> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Find

> List one type of record or map feature, such as properties, sales, permits, loans, substations or market series, with filters like a database query, in a place, near a point or in a box. Every type, its fields and the filter syntax.

GET`/v1/find/{type}`POST`/v1/find/{type}`

## Parameters

| Name | Type | Description |
| - | - | - |
| `type` | path | What to list: a record type, a [map or infrastructure type](#map-and-infrastructure-types), or [`market_series`](#market_series). See [types and fields](#types-and-fields). |
| `where` | string, repeats | One clause, such as `building_sqft >= 50000`. Repeat it for more; all must match. Up to 20. See [the where grammar](#the-where-grammar). |
| `in` | string | A place: a city (`Oakland, CA`), a county (`Maricopa County, AZ`), a ZIP code (`60614`), or a neighborhood of New York City or San Francisco (`Upper West Side`). A city is searched as the properties its county records file under the city's name. A city no record names, such as one incorporated recently (`Starbase, TX`), is searched inside its Census boundary, and `resolved_scope.basis` says `census_boundary`. Neighborhood names don't resolve elsewhere: send a ZIP code, `lat` and `lng` with `radius_mi`, or `within`. |
| `near` | string | A property ID, or `longitude,latitude` (longitude first). For an address, [search](/docs/api/search.md) it first and pass the result's `id`; anything else is a `400`. |
| `lat` | number | Latitude of a point, -90 to 90. Send with `lng` instead of `near`. |
| `lng` | number | Longitude of a point, -180 to 180. Send with `lat` instead of `near`. |
| `radius_mi` | number | Miles around `near` or `lat` and `lng`. Default one mile. |
| `radius_m` | number | The same in meters, from 50 to 50,000. Send one of `radius_mi` and `radius_m`, not both. |
| `bbox` | string | Map and infrastructure types: `west,south,east,north` in decimal degrees, a box to list features inside instead of a place or a point. |
| `like` | string | `properties` only: a property ID. Returns properties like it, nearest first. See [properties like one property](#properties-like-one-property). |
| `sort` | string | A sort the type takes, listed under each [type](#types-and-fields). A leading `-` means largest or newest first. Field names differ by type: `properties` take `-last_sale_date`, `sales` take `-sale_date`, and `permits` take no sort. |
| `limit` | integer | Rows per page, up to 100. Default 25. |
| `cursor` | string | `next_cursor` from the previous page. |
| `count` | boolean | `properties`, `sales` and `permits`: the number of matches instead of rows, free. For `permits`, send `in` with a county or city: `count` is the matching permits and `properties` the properties they're on. Other types don't count: page their rows with `cursor` until `has_more` is `false`. |
| `stats` | string | With `count`: the field to summarize with a median and quartiles. Default `building_sqft`. |
| `group_by` | string | `properties` only. `owner` ranks owners by how much they hold, with affiliates combined. |
| `max_cost_usd` | number | Refuse the call if a full page could cost more on your plan. |

`POST` takes the same names as a JSON body, with `where` as an array and `lat` and `lng` as numbers, plus `within` for properties: a GeoJSON `Polygon` or `MultiPolygon` (or a `Feature` holding one) to search inside instead of `in` or `near`. Up to 8 polygons of up to 40 vertices each, outer rings only, longitude first. A `within` page's `next_cursor` goes back with the same `within`.

To search around a point, send `lat` and `lng` with `radius_mi`, such as `lat=37.8044&lng=-122.2712&radius_mi=0.5`. It's the same as `near=-122.2712,37.8044`; send one or the other, not both. Sales near something are comparables, so `sales` takes a property ID in `near`, not a point.

## Request

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/properties" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Austin, TX" \
  --data-urlencode "where=property_type = office" \
  --data-urlencode "where=building_sqft >= 50000" \
  --data-urlencode "where=held_years >= 15" \
  --data-urlencode "sort=-building_sqft"
```

```typescript TypeScript theme={null}
const params = new URLSearchParams({ in: "Austin, TX", sort: "-building_sqft" });
for (const clause of ["property_type = office", "building_sqft >= 50000", "held_years >= 15"]) {
  params.append("where", clause);
}
const res = await fetch(`https://api.westkite.com/v1/find/properties?${params}`, {
  headers: { Authorization: `Bearer ${process.env.WESTKITE_API_KEY}` },
});
const { data, billing } = await res.json();
```

```python Python theme={null}
import os, requests

res = requests.get(
    "https://api.westkite.com/v1/find/properties",
    params=[
        ("in", "Austin, TX"),
        ("where", "property_type = office"),
        ("where", "building_sqft >= 50000"),
        ("where", "held_years >= 15"),
        ("sort", "-building_sqft"),
    ],
    headers={"Authorization": f"Bearer {os.environ['WESTKITE_API_KEY']}"},
)
body = res.json()
```

## Response

```json Response 200 theme={null}
{
  "data": {
    "type": "properties",
    "properties": [
      {
        "id": "property:3f2b9c1e-…",
        "address": "6836 Austin Center Blvd, Austin, TX 78731",
        "property_type": "Office",
        "building_sqft": 150220,
        "year_built": 1984,
        "held_years": 18
      }
    ],
    "next_cursor": "cur_41b0…"
  },
  "missing": [],
  "billing": {
    "operation_id": "op_7c20…",
    "operation": "find",
    "charged_usd": 0.001,
    "balance_usd": 9.96
  },
  "request_id": "req_2a9f…"
}
```

The charge is per row returned: a full page of 25 rows is \$0.025. Pages come back whole, so an answer can hold a few rows more than `limit`, but a call never costs more than `limit` rows. To size a market before you pay for rows, ask for a count:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/properties" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Oakland, CA" \
  --data-urlencode "where=property_type = office" \
  --data-urlencode "count=true" \
  --data-urlencode "stats=last_sale_price"
```

For a whole market, use an [export](/docs/api/exports.md) instead of paging: it returns one file with an exact total.

## The where grammar

Each clause is one string: `field op value`. It reads the same in a query string, a JSON array or the CLI's `--where`.

| Operator | Means | Example |
| - | - | - |
| `=` | Equals | `zoning = C-2` |
| `!=` | Leaves one out. `property_type` and `owner_type` only. | `owner_type != government` |
| `~` | Contains | `owner ~ Prologis` |
| `>=` | At least | `last_sale_price >= 1000000` |
| `<=` | At most | `year_built <= 1960` |
| `between` | Inclusive range | `units between 2 and 10` |
| `in` | Any of | `property_type in office,retail` |
| `is known` | Has a value | `flood_zone is known` |
| `is unknown` | Has no published value | `last_sale_date is unknown` |

* Bounds are inclusive. `>` and `<` are refused rather than guessed, so a strict bound is never widened without you knowing.
* Numbers may carry commas: `1,000,000`. `true` and `false` are typed. Quotes around a value are optional.
* Dates are `YYYY-MM-DD`. A bare year means its first day in a lower bound and its last day in an upper one, so `last_sale_date between 2024 and 2025` covers both years.
* Field names are snake case, as results name them. Camel case, like `lastSalePrice`, is read the same.
* A field the type doesn't have is refused with the list of fields it does have.

## Types and fields

A field a type doesn't take is refused with [`invalid_request`](/docs/api/errors#invalid_request) and the list of fields it does take, so an agent can correct itself. The [catalog](/docs/api/catalog.md) lists every field below as data, with its type, unit, operators, values and how much of the data carries it. The [API reference](/docs/api/reference.md#find-types-and-fields) lists them all, generated from the API itself.

### properties

Parcels and buildings. Takes `in`, `near`, `radius_mi`, `sort`, `cursor`, `count` with `stats`, `group_by=owner` and `like`.

| Field | Operators | Notes |
| - | - | - |
| `property_type` | `=`, `in`, `!=` | `Office`, `Industrial`, `Retail`, `Multifamily`, `Land`, `Residential`, `Hospitality`, `Mixed use`, `Civic / institutional`. `!=` leaves one type out. |
| `owner` | `~`, `=` | `~` matches the owner of record. `=` is a company with its affiliates, such as `owner = Blackstone`, and needs `in`. |
| `last_sale_date` | `>=`, `<=`, `=`, `between`, `is known` | `YYYY-MM-DD` |
| `last_sale_price` | `>=`, `<=`, `=`, `between`, `is known` | Dollars |
| `building_sqft`, `lot_sqft` | `>=`, `<=`, `=`, `between`, `is known` | Square feet |
| `year_built`, `stories`, `units` | `>=`, `<=`, `=`, `between`, `is known` | |
| `bedrooms`, `bathrooms` | `>=`, `<=`, `=`, `between`, `is known` | |
| `held_years` | `>=`, `<=`, `=`, `between`, `is known` | Years since the owner of record took title |
| `market_value`, `assessed_value`, `tax_amount` | `>=`, `<=`, `=`, `between`, `is known` | From the assessor. Market value is the assessor's, not an appraisal. |
| `zoning`, `flood_zone`, `subtype` | `=`, `~`, `is known` | As the publisher writes them |
| `street` | `=` | The street the property's address is on, such as `Willis Ave` |
| `zoning_class` | `=` | `commercial`, `industrial`, `residential`, `mixed use`. Read from the zoning code's opening letters: a reading, not a legal finding. |
| `owner_type` | `=`, `!=` | `government`, `nonprofit`, `llc`, `corporation`, `trust`, `estate`, `individual`. Read from the owner name. `!=` leaves one class out; repeat it for more. |
| `owner_occupied` | `=` | `yes`: the owner runs a business registered at the address |
| `absentee_owner` | `=` | `true`: the owner's mailing address on the roll is a PO box or another street, including out of state. `false`: it is the property's own address. |
| `out_of_state_owner` | `=` | `true`: the mailing address is in another state. `false`: the same state. |
| `loan_due` | `>=`, `<=`, `between`, `=`, `is known` | `YYYY-MM-DD`: the earliest due date among the property's open loans on public record (CMBS, HUD/FHA, SBA and recorded mortgages). |
| `loan_due_basis` | `=`, `in` | `reported`, `document`, `sba_term` or `derived`: how `loan_due` is known. `derived` dates come from the origination date and loan type, so use `loan_due_basis in reported,document,sba_term` for real dates only. |
| `loan_to_value` | `>=`, `<=`, `between`, `is known` | Percent: the open loans' estimated balance over the market value, or the assessed value. An estimate. |
| `assemblage_parcels` | `>=`, `<=`, `=`, `between`, `is known` | Parcels in the [owner assemblage](/docs/api/properties.md#owner-assemblage) the property is in: neighbouring parcels with the same owner. `assemblage_parcels >= 2` finds assembled sites. |
| `assemblage_acres` | `>=`, `<=`, `between`, `is known` | Acres of that assemblage's combined outline |
| `business_category` | `=` | An Overture place category, such as `restaurant`, `gas_station`, `car_wash` or `dentist`: an open business of that category on the lot. A parent category takes its children, so `restaurant` finds pizza restaurants. [Lookup's places](/docs/api/lookup.md#places) lists the codes. |
| `tax_delinquent` | `=` | `true` only: on an active published tax notice (a delinquent-tax list, tax sale listing or lands-available list). |
| `land_change` | `=`, `in` | `changed`, `no_change` or `unavailable`: land change from satellite since 2017 (see [land](/docs/api/properties.md#land)). `unavailable` is a parcel too small to read, not no change. Medium-confidence `other` changes (mostly crop and pasture rotation) match only when `land_change_type` includes `other`. |
| `land_change_type` | `=`, `in` | `cleared`, `built`, `demolished`, `redeveloped`, `revegetated` or `other`. Naming `other` brings in medium-confidence `other` changes, which every land filter leaves out otherwise. |
| `land_change_year` | `>=`, `<=`, `=`, `between` | The year the land changed |
| `land_change_size` | `=`, `in` | Acres that changed: `under_0_5_ac`, `0_5_to_2_ac`, `2_to_10_ac` or `10_ac_plus` |
| `land_change_share` | `=`, `in` | Share of the parcel that changed: `part` (under 25%), `most` (25–75%) or `all` (over 75%) |
| `land_change_confidence` | `=`, `in` | `high` or `medium` |
| `distress_filing` | `=` | `any`, `foreclosure`, `foreclosure_registration`, `sheriff_sale`, `tax_lien`, `eviction` or `probate`: an active filing of that kind on public record. |
| `signal` | `=` | Long-held, Underbuilt, Recent permit, Tenant change |
| `building_to_lot_ratio` | `<=` | Building area over lot area, for underbuilt sites. 0.5 is a common screen. |
| `buildable_sqft`, `unused_buildable_sqft` | `>=`, `<=`, `between` | New York City estimates from lot area and zoning |
| `wetland_pct`, `floodplain_pct` | `>=`, `<=`, `=`, `between`, `is known`, `is unknown` | Percent of the parcel, 0 to 100: mapped wetland, and the 100-year floodplain. `flood_sfha_pct`, the record's name, reads the same as `floodplain_pct`. |
| `upland_acres`, `largest_upland_acres` | `>=`, `<=`, `=`, `between`, `is known`, `is unknown` | Acres outside the floodplain, wetlands and water, and the largest contiguous piece of it |
| `road_frontage_ft`, `water_frontage_ft` | `>=`, `<=`, `=`, `between`, `is known`, `is unknown` | Feet of parcel edge along public roads, or along water |
| `site_access` | `=` | `landlocked` (no public road within 20 m) or `road access`. `landlocked = true` and `landlocked = false` read the same. |
| `waterfront` | `=` | `any`, or one of `bay`, `canal`, `coast`, `lake`, `pond`, `river`, `stream`, `swamp`. `waterfront_type`, the record's name, reads the same. |
| `aerial_land` | `=` | built, cleared, wooded, wet, mixed. Read from the newest public aerial photo. |
| `aerial_parking_spaces`, `aerial_loading_docks` | `>=`, `<=`, `between` | Counted from the air |
| `aerial_building_pct`, `aerial_vegetation_pct` | `>=`, `<=`, `between` | Share of the lot |
| `aerial_roof` | `=` | good, fair, poor |
| `aerial_feature` | `=` | construction, pool, solar |

`absentee_owner` and `out_of_state_owner` read the owner's mailing address against the property, so they match only properties whose roll publishes a mailing address West Kite can read. A property with none matches neither `= true` nor `= false`. California rolls publish no owner names or mailing addresses.

The loan filters read each property's open loans as one summary. A property with no open loan on record matches none of them, which means unavailable, not that it has no debt.

`business_category` matches an Overture place whose point is on the lot's outline (within 3 m), isn't marked permanently closed and has a confidence of 0.5 or more. A parcel without an outline never matches.

The `land_change` filters match only in states where land cover is loaded; elsewhere nothing is known, so nothing matches. `where=land_change_type in cleared,built&where=land_change_year >= 2024` finds land being cleared or built on in the last two years.

A notice or filing is active when it's dated within the last two years and not marked paid, redeemed, satisfied, dismissed or otherwise closed. `tax_delinquent` and `distress_filing` take only `true` or a kind, never `false`: a property with nothing on record may sit in a county whose notices or filings West Kite hasn't loaded. For other date ranges, every notice, or the filing's parties and amounts, use [`tax_notices`](#tax_notices) and [`distress_filings`](#distress_filings).

Site facts and aerial readings match only parcels that have been measured. So `wetland_pct = 0` finds measured parcels with no wetland, and `wetland_pct is unknown` finds the ones not measured. What each site fact means is on [Properties](/docs/api/properties.md#site-facts).

Site facts are measured county by county. Where no parcel in the searched counties has been measured for a site fact, its clause isn't applied: rows match your other clauses, `summary` says which clause was left out, and `missing` lists the field as `not_covered`.

Sorts: `held_years`, `market_value`, `assessed_value`, `last_sale_price`, `building_sqft`, `lot_sqft`, `year_built`, `last_sale_date`, each with `-` for descending.

### sales

Recorded sales. With `near` set to a property ID, these are its comparables: closed sales from deeds, with nominal deeds left out and portfolio deeds flagged. With `in`, each property's latest sale.

| Field | Operators | Notes |
| - | - | - |
| `sale_date` | `>=`, `between`, `=` | Near a property: from that date. In a place: also `<=`. |
| `price` | `>=`, `<=`, `between` | In a place only |
| `property_type` | `=` | |
| `units`, `lot_sqft`, `building_sqft` | `>=`, `<=`, `between` | |
| `portfolio` | `=` | `false` drops multi-parcel deeds. Near a property only. |

Sorts: `-sale_date` and `distance` near a property; `sale_date` and `-sale_date` in a place.

### permits

Building permits linked to properties. Takes `in`, `near`, `radius_mi`, `cursor` and `count`. It takes no `sort`.

`count=true` with `in` (a county or city) answers how many permits match and how many properties they're on, for the same dates as the rows, free. Where West Kite holds no permits for the place, `count` is `null` and `missing` says `not_covered`. That's no data, not zero permits. [Coverage](/docs/api/coverage.md) lists the counties with permits and their dates.

```bash theme={null}
curl -G "https://api.westkite.com/v1/find/permits" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Harris County, TX" \
  --data-urlencode "count=true"
```

```json Response 200 theme={null}
{
  "data": { "count": 55596, "properties": 21102, "period": { "since": "2025-11-24", "until": "2026-11-24", "date_kind": "activity" },
    "resolved_scope": { "kind": "county", "label": "Harris County, TX", "county_fips": ["48201"], "basis": "county" } },
  "missing": []
}
```

| Field | Operators | Notes |
| - | - | - |
| `date` | `>=`, `<=`, `=`, `between` | Defaults to the last 12 months |
| `date_kind` | `=` | `activity`, `filed`, `issued`, `completed` |
| `description` | `~` | A keyword or permit number |
| `status` | `=` | |
| `valuation` | `>=` | Dollars |
| `property_type` | `=`, `in` | |
| `fire_protection` | `=`, `is known` | `sprinkler`, `standpipe`, `fire_alarm` or `suppression_other`, read from the permit's type and text |
| `contractor` | `~` | A contractor's name, firm or person |
| `contact` | `~` | Any contact's name, firm or person, in any role |

Each permit row carries `contacts` where West Kite holds the publisher's contacts: the contractor, applicant, architect, permittee, agent and others the permit names, each with the publisher's own `role` and, where published, `firm`, `person`, `licence_number`, `licence_type`, `trade`, `address` and `phone`. `contacts` is absent where the source's contacts aren't held (listed in `missing`) and `[]` where the source publishes contacts and this permit names none. `contractor ~` and `contact ~` search only those sources, so no match elsewhere isn't evidence of none.

`fire_protection` on a row is derived from the permit's type and description: the main `system`, every system named, the NFPA standard cited, `sprinkler_type`, `heads` where one count is stated, the work's `scope` (`new`, `modification`, `repair`, `inspection`) and the `matched` words. It's absent where the text names no system. Lawn and irrigation sprinklers, plumbing standpipes and negations such as "non-sprinklered" are left out.

Sprinkler permits in a county, with who pulled them:

```bash theme={null}
curl -G "https://api.westkite.com/v1/find/permits" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Orange County, FL" \
  --data-urlencode "where=fire_protection = sprinkler"
```

### tax\_notices

Parcels on published tax-distress notices. Notices are dated, so taxes may have been paid since. Sorts: `-amount`, `-notice_date`, `-times_listed`.

| Field | Operators | Notes |
| - | - | - |
| `kind` | `=`, `in` | `delinquent`, `tax_sale`, `lands_available` |
| `tax_year` | `=` | |
| `all_years` | `=` | `true` includes earlier years |
| `amount` | `>=` | Dollars owed |
| `times_listed` | `>=` | |
| `property_type` | `=`, `in` | |

### distress\_filings

Court and lien filings on a parcel: mortgage foreclosures and lis pendens, notices of default or of a trustee's sale, foreclosed properties registered with a city, sheriff's sales, tax liens filed by a city, county or school district, eviction cases and probate estates. Each property is listed once, with its newest matching filing and how many it has. Coverage is the counties whose courts and recorders publish these filings; when nothing matches, `filingsCoverage` says whether West Kite could check where filings are loaded. With `checked`, `filingsLoadedFor` lists those counties in the states searched (an empty list: none loaded there yet). With `unavailable`, because the scope names no state or the check did not finish, there is no list and `missing` names `filingsLoadedFor`: zero matches is then not evidence that none exist. A filing may have been paid, dismissed or resolved since. `filedOn` is the filing's date (for a sheriff's sale, the day of the sale) and is null where the publisher gives none. Amounts differ in meaning by kind (a claim, a lien, a sale price), and one claim can cover several parcels, so they are never totalled. Names of private parties (defendants, tenants, individual lenders, heirs) are never kept; a lender or lien buyer is named only when it is an organisation. Sorts: `-filed_on` (default), `-amount`.

| Field | Type | Operators | Description |
| - | - | - | - |
| `kind` | enum | `=` `in` | The kind of filing. One of `foreclosure`, `foreclosure_registration`, `sheriff_sale`, `tax_lien`, `eviction`, `probate`. |
| `filed_on` | date | `=` `>=` `<=` `>` `<` | The date the filing was recorded (YYYY-MM-DD). Also read as date, filed\_date, filing\_date, recorded\_on. |
| `status` | enum | `=` | Whether to keep only filings not marked closed. One of `open`, `any`. |
| `amount` | number, usd | `>=` `>` | The amount the filing names (judgment, lien or debt), US dollars. |
| `property_type` | enum | `=` `in` | The property's broad use as West Kite classifies it from the county roll. One of `Office`, `Industrial`, `Retail`, `Multifamily`, `Land`, `Residential`, `Hospitality`, `Mixed use`, `Civic / institutional`. |

### recorded\_loans

New York City only: each building's latest recorded financing (mortgage, CEMA or consolidation) with lender and amount. Records carry no maturity date. Sorts: `recorded_on`, `-recorded_on`, `-amount`.

| Field | Operators | Notes |
| - | - | - |
| `recorded_on` | `>=`, `<=`, `between` | |
| `amount` | `>=` | |
| `lender` | `~` | |
| `lender_kind` | `=`, `in` | `bank`, `insurer`, `nonbank`, `private`, `government` |
| `satisfied` | `=` | `true` includes satisfied loans |
| `stale` | `=` | `true` includes stale ones |
| `lots` | `<=` | Leaves out blanket loans over more lots |
| `property_type` | `=`, `in` | |

### cmbs\_loans

Loans in commercial mortgage-backed securities, from servicer filings, for maturity walls and refinancing risk. `in` takes `City, ST` or a state. Sorts: `maturity`, `-balance`.

| Field | Operators | Notes |
| - | - | - |
| `maturity` | `>=`, `<=`, `between` | Default: the next 24 months |
| `state` | `=` | Two letters |
| `city` | `=`, `in` | |
| `property_type` | `=` | office, retail, multifamily, industrial, warehouse, hotel, mixed use, self storage, manufactured housing or healthcare |
| `balance` | `>=` | |

Each row is the loan's latest servicer report: `occupancy` (0 to 1), `noi`, `ncf`, `noi_dscr` and `ncf_dscr` through `financials_through`, the latest `valuation` with its date and basis, and `top_tenants`, up to three with `area_sqft` and `lease_expiration`, as the servicer files them. `property_id` is the property the collateral matched, where one did; `parts=tenancy` on that property lists the same occupancy and tenants beside its other sources.

A large loan is often split into notes held by several trusts, and each trust reports its own note, so a split loan appears once per note. `notes_of_loan` on each row says how many notes make up its loan. `totals.reported_balance` adds the notes correctly, `totals.loans` counts notes and `totals.whole_loans` counts each loan once.

### reit\_properties

REIT 10-K Schedule III lines from SEC EDGAR, with each filer's ticker: encumbrances, land and building cost, gross carrying amount and accumulated depreciation at the fiscal year end. Most REITs list property by property (`granularity` `property`). Prologis, Public Storage and others file by market, so their lines are markets (`market`): the REIT's total in that market, not one building. A remainder line such as other operators is `portfolio`. A REIT is listed only when its lines add up to its own Schedule III total within 2%. REITs that file only totals, or by tenant industry, are not listed. Lines are not matched to West Kite properties. The ticker is SEC's current one for the filer, whose name may have changed since its 10-K. `in` takes a state. Sorts: `-gross_carrying_amount` (default), `-encumbrances`, `-debt_to_gross`.

| Field | Type | Operators | Description |
| - | - | - | - |
| `reit` | string | `~` | REIT name contains |
| `ticker` | string | `=` | The REIT's stock ticker. |
| `granularity` | enum | `=` | What one line of the schedule covers. One of `property`, `portfolio`, `market`. |
| `property` | string | `~` | Property or market name contains |
| `state` | string | `=` `in` | Two-letter state of the line. |
| `encumbrances` | number, usd | `>=` `>` | Mortgage debt on the line as the 10-K states it, US dollars. |
| `gross_carrying_amount` | number, usd | `>=` `>` | Gross carrying amount (cost plus improvements) at year end, US dollars. |

### sba\_loans and sba\_lenders

Published SBA 7(a) and 504 loans, and lenders ranked by them. `in` takes `County, ST` or a state.

| Field | Operators | Notes |
| - | - | - |
| `borrower`, `lender` | `~` | |
| `date` | `>=`, `<=`, `between` | |
| `amount` | `>=` | |
| `program` | `=` | `7a` or `504` |
| `status` | `=` | |
| `signal` | `=` | `recent`, `financed`, `fixed-assets`, `purchase` |
| `property_id` | `=` | |

### warn\_notices

California layoff, closure and relocation notices: possible space coming back, not confirmed vacancy. `in` takes a California county.

| Field | Operators | Notes |
| - | - | - |
| `employer` | `~` | |
| `date` | `>=`, `<=`, `between` | |
| `signal` | `=` | `recent`, `large`, `closure`, `repeat` |
| `property_id` | `=` | |

### listings

Advertised spaces for sale or lease, with source evidence. Takes `in` and `limit`.

| Field | Operators | Notes |
| - | - | - |
| `transaction` | `=` | sale or lease |
| `use` | `=` | office, retail, industrial and so on |
| `sqft` | `>=`, `<=`, `between` | |
| `keyword` | `~` | |
| `property_id` | `=` | |
| `contacts` | `=` | `true` adds broker contacts |

### facilities

Schools nationwide, from the US Department of Education, and health facilities in New York State, each matched to its lot and that lot's owner. Takes `in` or `near`, and `limit` up to 50; one page, no cursor.

| Field | Operators | Notes |
| - | - | - |
| `kind` | `=`, `in` | `private_school`, `public_school`, `nursing_home`, `hospital`, `clinic`. Default: private schools, nursing homes, hospitals and clinics. |
| `owner_operates` | `=` | `true` keeps facilities whose operator's name matches the lot's owner |
| `property_type` | `=`, `in` | |

### establishments

Named businesses and operators at an address from public registers, such as bank branches, licensed premises, contractor licences, care facilities and schools, each with the property it stands on when one matches. `where=identifier = CGC1541426` finds one by its licence or register number. Every answer says per kind and state whether a source is loaded, so no rows is never read as none. Takes `in`, `near` with `radius_mi`, `limit` and `cursor`. The kinds, coverage and examples are on [Establishments](/docs/api/establishments.md).

| Field | Type | Operators | Description |
| - | - | - | - |
| `kind` | enum | `=` `in` | The register the record comes from (each kind is one kind of operator: pharmacy, medical\_practice, bank\_branch, liquor\_license…). Several are left out of a place search unless named; see the summary. One of the 59 values in [Kinds](/docs/api/establishments.md#kinds). |
| `name` | string | `=` `~` | (business or operator name contains) or = |
| `identifier` | string | `=` | The publisher's own number as published: a licence number such as CGC1541484 or HIC.0704121, a solicitation number; a contractor's UEI finds its federal\_contractor records and its federal\_award awards; any kind when no kind is given |
| `category` | string | `=` | The publisher's own category for the record, as published (main\_office, on\_premise, nursing\_home): free text, no fixed list. |
| `trade` | enum | `=` | A contractor trade, read across every state's licensing board (it reads kind contractor). One of `fire_protection`. |
| `status` | string | `=` | The record's status as published (open, active, pending): free text, no fixed list. |
| `opened_on` | date | `=` `>=` `<=` `>` `<` | The date the operator opened or the licence was first issued (YYYY-MM-DD). Also read as opened\_date, issued\_on. |
| `closed_on` | date | `=` `>=` `<=` `>` `<` | The date the publisher closed the business account or ended the licence or authorization (YYYY-MM-DD); set only where the publisher keeps closed records, so a null is not open. |
| `property_id` | string | `=` | Establishments matched to this property |
| `linked` | boolean | `=` | = true (matched to one property) or = false |

### affordable\_housing

Subsidized and affordable housing, one row per program at a property, with when it ends: every HUD Section 8 and 202/811 contract, LIHTC projects, USDA 515 and 514 properties, FHA-insured mortgages, public housing, and Florida, Oregon and Austin inventories. `where=expires_on <= 2028-12-31` finds contracts and restrictions ending by then; `expires_basis` says whether a date is published or derived. Every answer says per program and state whether a source is loaded. Takes `in`, `near`, `sort` (`expires_on`, `-expires_on`, `-units`, `-assisted_units`, `maturity_on`, `name`), `limit` up to 100 and `cursor`. The programs, coverage and examples are on [Affordable housing](/docs/api/affordable-housing.md).

| Field | Type | Operators | Description |
| - | - | - | - |
| `program` | enum | `=` `in` | The subsidy or affordability program (HUD contracts and loans, LIHTC, USDA, public housing, state and local programs). One of the 18 values in [Programs](/docs/api/affordable-housing.md#programs). |
| `expires_on` | date | `=` `>=` `<=` `>` `<` | The date the program's contract or restriction ends (YYYY-MM-DD). expires\_on \<= a date includes contracts that already ended; add expires\_on >= today's date for the ones still running. Also read as expiration\_date, expires, expiry\_date, end\_date. |
| `expires_basis` | enum | `=` `in` | How expires\_on is known. One of `published`, `published_year`, `derived_year15`, `unavailable`. |
| `maturity_on` | date | `=` `>=` `<=` `>` `<` | The program's loan maturity date (YYYY-MM-DD), for insured or direct loans. Also read as maturity\_date. |
| `units` | integer, units | `=` `>=` `<=` `>` `<` | Units in the property. |
| `assisted_units` | integer, units | `>=` `>` | Units assisted or rent-restricted under this program. |
| `owner` | string | `~` | Owner name contains, as HUD or the state names it |
| `name` | string | `~` | Property name contains |
| `manager` | string | `~` | Management agent contains |
| `program_id` | string | `=` | The program record's own id: a HUD contract number, LIHTC project id, FHA number |
| `property_id` | string | `=` | The programs at this property |
| `linked` | boolean | `=` | = true (matched to one property) or = false |

### multifamily\_loans

Every loan on a building of five or more units that a lender reported under HMDA, 2018 on, nationwide: the lender (name and LEI), amount, rate, term, combined LTV, property value, unit band, purpose and who bought the loan. HMDA publishes no address, so a loan is placed by its census tract (approximate) and never linked to a property; amounts are the middle of a \$10,000 band. `totals` counts every match, and `hmda_coverage` gives the years held. Takes `in` (a county, city or state), `near`, `sort` (`-year`, `-amount`, `amount`, `-rate`, `rate`, `-cltv`), `limit` and `cursor`. Examples are on [Multifamily loans and lenders](/docs/api/lenders.md).

| Field | Type | Operators | Description |
| - | - | - | - |
| `year` | integer | `=` `>=` `<=` `>` `<` `in` | The HMDA year: when the loan was made or bought. |
| `lei` | string | `=` `in` | The lender's Legal Entity Identifier (20 characters). |
| `lender` | string | `~` | Lender name contains |
| `action` | enum | `=` `in` | Whether the filer made the loan or bought it from another lender. One of `originated`, `purchased`. |
| `amount` | number, usd | `=` `>=` `<=` `>` `<` | The loan amount, US dollars: the public file's midpoint of a \$10,000 band. Also read as loan\_amount. |
| `units` | integer, units | `=` `>=` `<=` `>` `<` | Units in the building: HMDA publishes bands, and rows answer units\_band. |
| `rate` | number, percent | `=` `>=` `<=` `>` `<` | Interest rate, percent. |
| `term_months` | integer, months | `=` `>=` `<=` `>` `<` | Loan term, months. |
| `cltv` | number, percent | `=` `>=` `<=` `>` `<` | Combined loan-to-value, percent. |
| `purpose` | enum | `=` `in` | What the loan was for, as HMDA reports it. One of `purchase`, `improvement`, `refinance`, `cash_out_refinance`, `other`, `not_applicable`. |
| `purchaser` | enum | `=` `in` | Who bought the loan in the year it was made; not\_sold when the filer kept it or sold it later. One of `not_sold`, `fannie_mae`, `ginnie_mae`, `freddie_mac`, `farmer_mac`, `private_securitizer`, `bank_or_thrift`, `credit_union_mortgage_or_finance_company`, `life_insurer`, `affiliate`, `other`. |
| `loan_type` | enum | `=` `in` | The loan's insurance or guarantee program; conventional when none. One of `conventional`, `fha`, `va`, `usda`. |
| `business_purpose` | boolean | `=` | Whether the loan is for a business or commercial purpose. Rows answer it as business\_purpose (and business\_or\_commercial\_purpose). Also read as business\_or\_commercial\_purpose. |
| `tract` | string | `=` | The 11-digit census tract GEOID the loan is placed in. Rows answer it as tract (and census\_tract). Also read as census\_tract. |

### lenders

HMDA lenders with their multifamily lending in a place and years, and for FDIC-insured banks the commercial real estate concentration from the latest call report, with its quarter. Takes `in`, `near`, `sort` (`-volume`, `-loans`, `-cre_concentration`, `-construction_concentration`, `name`), `limit` and `cursor`. See [Multifamily loans and lenders](/docs/api/lenders.md#lenders).

| Field | Type | Operators | Description |
| - | - | - | - |
| `lei` | string | `=` `in` | The lender's Legal Entity Identifier (20 characters). |
| `name` | string | `~` | Lender name contains |
| `rssd` | string | `=` | Federal Reserve RSSD ID |
| `fdic_cert` | integer | `=` | The bank's FDIC certificate number. |
| `year` | integer | `=` `>=` `<=` `>` `<` `in` | The HMDA years whose lending counts. |
| `action` | enum | `=` `in` | Which lending counts: loans the lender made, bought, or both (default). One of `originated`, `purchased`. |
| `regulator` | enum | `=` `in` | The lender's federal regulator as HMDA reports it. One of `occ`, `frb`, `fdic`, `ncua`, `hud`, `cfpb`. |
| `bank` | boolean | `=` | = true (FDIC-insured banks with a call report) or = false |
| `volume` | number, usd | `>=` `>` | Multifamily lending in the place and years asked, US dollars (HMDA band midpoints added up). |
| `loans` | integer | `>=` `>` | Multifamily loans in the place and years asked. |
| `cre_concentration` | number, percent | `=` `>=` `<=` `>` `<` | Commercial real estate loans (construction, multifamily and non-owner-occupied nonresidential) as a share of the bank's total risk-based capital, percent, from its latest call report. Regulators look harder above 300%. Banks only; rows answer it as bank.cre\_concentration (and bank.cre\_concentration\_pct). |
| `construction_concentration` | number, percent | `=` `>=` `<=` `>` `<` | Construction and land loans as a share of the bank's total risk-based capital, percent. Regulators look harder above 100%. Rows answer it as bank.construction\_concentration (and bank.construction\_concentration\_pct). |

### government\_comps

San Francisco only: purchase prices and appraised values quoted in public government financing packets and Board legislation, near one property. Each keeps its document's status: proposed, requested, approved or completed. Takes `near` (a property ID, required), `radius_m` from 100 to 16,094 (default 3,219, two miles) and `limit` up to 100; one page, no cursor.

### market\_series

A market series is one number tracked over time for a place, such as employment, sales volume or taxable retail sales. Each series is a list of periods and their values, so you can chart a trend or compare places. Send `in` and `metric`.

| Parameter | Notes |
| - | - |
| `in` | The market area: a city or county by name, such as `San Francisco, CA`, or an area ID: `place-<Census place GEOID>`, `county-<FIPS>` or `state-<FIPS>` |
| `metric` | One or more metrics, comma-separated, from the table below |
| `area` | Up to two more areas to compare, comma-separated, named the same way |
| `range` | How far back to go from each series' latest period: `1y`, `3y`, `5y`, `10y` or `all` |
| `industry` | Sales-tax metrics only: which industry line to read. See [taxable sales](#taxable-sales) |

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/market_series" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=San Francisco, CA" \
  --data-urlencode "metric=employment" \
  --data-urlencode "range=3y"
```

```json Response 200 theme={null}
{
  "data": {
    "type": "market",
    "query": { "area_id": "county-06075", "compare_ids": [], "metric_ids": ["employment"], "range": "3y" },
    "status": "available",
    "series": [
      {
        "metric_id": "employment",
        "area_id": "county-06075",
        "area_label": "San Francisco County",
        "label": "Private-sector employment",
        "points": [
          { "period": "2023", "value": 617513, "observation_kind": "actual", "status": "observed" },
          { "period": "2024", "value": 597405, "observation_kind": "actual", "status": "observed" },
          { "period": "2025", "value": 586454, "observation_kind": "actual", "status": "observed" }
        ],
        "coverage": { "status": "available", "observed_count": 3, "note": "Published QCEW private-sector county …" }
      }
    ]
  },
  "missing": [],
  "billing": { "operation_id": "op_…", "operation": "find", "charged_usd": 0.003, "balance_usd": 9.98 },
  "request_id": "req_…"
}
```

The example is abridged. Each series names its `source` and `coverage`. A series a place doesn't publish comes back with no points, `coverage.status` set to `unavailable` and a note saying why, never as zero. Each metric has its own period, set by its source. `area_id` in the answer is the ID to send back in `in` or `area`.

| Group | Metric | What it is | Period |
| - | - | - | - |
| Sales | `deal-count` | Sales | Quarterly |
| | `sales-volume` | Sales volume | Quarterly |
| | `sales-volume-12mo` | Sales volume over the last 12 months | Quarterly |
| | `average-sale-price` | Average deal size | Quarterly |
| | `price-per-sf` | Sale price per square foot | Quarterly |
| | `recorded-transfers` | Recorded transfers | Quarterly |
| | `inventory` | Building inventory | Quarterly |
| Development | `development-pipeline` | Projects in the development pipeline | Snapshot |
| | `pipeline-housing-units` | Net housing units in the pipeline | Snapshot |
| | `pipeline-commercial-sf` | Net commercial space in the pipeline | Snapshot |
| | `housing-completions` | Net housing units completed | Yearly |
| Economy | `employment` | Private-sector employment | Yearly |
| | `establishments` | Private-sector establishments | Yearly |
| | `weekly-wage` | Average weekly private-sector wage | Yearly |
| | `cbp-employment`, `cbp-establishments` | Employment and establishments with paid employees (County Business Patterns) | Yearly |
| | `workplace-jobs` | Modeled jobs located in the area | Yearly |
| | `population` | Estimated resident population | Yearly |
| | `housing-stock` | Estimated total housing units | Yearly |
| Commercial space | `commercial-vacancy-filings` | Reported vacant commercial spaces | Yearly |
| | `commercial-space-filings` | Commercial-space filings | Yearly |
| Mobility | `bart-activity`, `bart-exits` | BART entries and exits at San Francisco stations | Monthly |

The sales, development, economy and commercial space series are published for California and San Francisco market areas today. For other places, work from property and sales records instead. The [catalog](/docs/api/catalog.md) (`GET /v1/catalog/market_series`) lists every metric, including the sales-tax metrics below.

#### Taxable sales

State sales tax returns give taxable and gross sales by city and county, by industry and quarter or month, from the state revenue department. Each state keeps its own measure, and the metric names it, such as `taxable-sales` (California and Colorado), `taxable-sales-and-purchases` (Texas and New York), `gross-sales` (Texas and Colorado), `retail-sales` (Colorado) or `sales-tax-outlets` (Texas and California). Measures are never blended across states, so compare places within one state. The catalog lists every sales-tax metric, and asking a state for a measure it doesn't publish says which one to ask for instead.

* California, Colorado, New York and Texas are available, for the cities and counties each state publishes. Other states, including Florida, are not available.
* Name a city as `Austin, TX` or `place-4805000`. With a sales-tax metric, a city's name reads the city, not the county of the same name.
* `industry` picks the line: `total` (the default, the state's all-industries line), `retail` (NAICS 44-45), `food-services` (NAICS 722), `retail-and-food-services`, or the state's own code, such as `4451` for New York's grocery and convenience retailers. A line summed from the state's codes is marked `derived` in the series' `industry`. New York publishes no all-industries total, so ask it for an industry.
* Lines a state withholds, such as Texas lines with one to three outlets, come back missing with the reason, not as zero.

Austin's taxable retail sales by quarter, beside Round Rock:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/market_series" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Austin, TX" \
  --data-urlencode "area=Round Rock, TX" \
  --data-urlencode "metric=taxable-sales-and-purchases" \
  --data-urlencode "industry=retail" \
  --data-urlencode "range=3y"
```

## Map and infrastructure types

Every [map type](/docs/api/layers.md) and infrastructure type is also a find type: `GET /v1/find/substations`, `GET /v1/find/dams`, `GET /v1/find/broadband_fiber`. Find lists its features near a point, nearest first, with `near` and `radius_mi`, or every feature inside `bbox` or `within`. Rows are \$0.001 each. Screening types, such as flood zones and opportunity zones, are read only at a point with [lookup](/docs/api/lookup.md).

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/substations" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "near=property:08cdd01c-64d6-8ed2-b7b8-8158ccadf8a0" \
  --data-urlencode "radius_mi=10"
```

Each row carries the publisher's fields, renamed to snake\_case with units in the name, and `distance_m` from the point when you search near one. For the single nearest feature of several types at once, use [lookup](/docs/api/lookup.md). The types:

* **Infrastructure:** `substations`, `transmission_lines`, `power_plants`, `electric_utilities`, `power_capacity`, `interconnection_queues`, `gas_pipelines`, `gas_utilities`, `water_systems`, `sewer_service`, `wastewater_plants`, `local_roads`, `highways`, `interstates`, `highway_ramps`, `truck_routes`, `rail_lines`, `rail_sidings`, `rail_crossings`, `intermodal_terminals`, `airports`, `ports`, `obstructions`, `elevation`, `places`.
* **Map:** every type on [Map layers](/docs/api/layers.md), listed on [lookup](/docs/api/lookup.md#types).

The [catalog](/docs/api/catalog.md) lists each type's fields, which `where` clauses take, and which reads it takes.

### Places

`GET /v1/find/places` lists open businesses and places near a point, nearest first, independents and chains alike. Add `category` to list only some, such as `italian_restaurant` or `ice_cream_shop`; a category covers the categories below it, and places that list it as an alternate. Add `brand` for one chain, by name (`Starbucks`, any case) or Wikidata id (`Q37158`), or `brand=*` for chains only. `total` is the exact number in the radius, and `next_cursor` gives the next page.

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/places" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "lat=34.0158" --data-urlencode "lng=-118.4952" \
  --data-urlencode "radius_mi=1" \
  --data-urlencode "category=italian_restaurant" \
  --data-urlencode "limit=20"
```

Each place has its `name`, `category` and `category_label`, `alternate_categories`, `parents`, `brand`, `address`, `locality`, `region`, `postcode`, `lat`, `lng`, `distance_m`, `websites`, `phones`, `socials`, `emails`, `operating_status`, `confidence` and `sources`, the datasets Overture merged it from.

Chains are checked against their own store locators, through [AllThePlaces](https://www.alltheplaces.xyz) (CC0), refreshed weekly:

* `confirmed_by` names the locator that lists an open store at this place (`source`, `spider` and `seen`, the date of the run that last listed it). `null` means not confirmed, not closed: independents have no locator, and many chain listings are a second listing of one store.
* `brand_source` says where `brand` came from: `overture`, or `store_locator` when Overture names no brand and an open store in the chain's locator is this place and its brand fits the name (a "Denny's Restaurant" is Denny's; a BMO ATM inside a Circle K does not make the Circle K a BMO). A brand from a locator counts in `brand` filters and chain counts like one from Overture.
* A place is left out when its chain's locator stopped listing its store and no other locator lists an open store there.

The radius is at most 10 miles, and rows are \$0.001 each. For exact counts by category and by chain, and the nearest of a category, use [lookup](/docs/api/lookup.md#places).

## Properties like one property

`like` returns properties like the one you name: the same use and, when the building area is known, a building within about 40% of its size, nearest first. Rows are \$0.001 each. Add `where` clauses to narrow them further.

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/properties" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "like=property:08cdd01c-64d6-8ed2-b7b8-8158ccadf8a0"
```

For recorded sales near a property, its comparables, use [sales](#sales) with `near`.

Which places each type covers is on [Data sources](/docs/data.md).

## Errors

| Code | When |
| - | - |
| [`invalid_request`](/docs/api/errors#invalid_request) | An unknown type or field, an operator the field doesn't take, or a clause that can't be read. Also `lat` without `lng` (or the reverse), `lat` and `lng` with `near`, or degrees out of range. The message names what's allowed. |
| [`max_cost_too_low`](/docs/api/errors#max_cost_too_low) | A full page would cost more than your `max_cost_usd`. |
| [`scope_missing`](/docs/api/errors#scope_missing) | The key doesn't have the `data` scope. |
| [`spend_limit_exceeded`](/docs/api/errors#spend_limit_exceeded) | The key's monthly cap would be passed. |
| [`insufficient_balance`](/docs/api/errors#insufficient_balance) | Your balance can't cover the page. |
| [`rate_limited`](/docs/api/errors#rate_limited) | Too many requests this minute. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.