Skip to main content
POST
Search properties using Elasticsearch Query DSL at POST /properties/query. You can combine field values, text searches, and parcel geometry in one request.

Request format

This request finds California properties with at least 10 acres whose owner name contains both words SMITH and JOHN:

Supported clauses

Each query object contains one clause. You can use up to 20 leaf clauses and six levels of nesting. Fields must come from the queryable fields below. Arbitrary index selection, scripts, aggregations, _source filtering, scoring functions, and other Elasticsearch search-body controls are not supported. For text fields, term and terms match the complete value case-insensitively. Use {"term":{"owner":{"value":"SMITH","case_insensitive":false}}} for case-sensitive matching. Use match to find words within a name or address. It defaults to OR; specify "operator": "and" to require every word. SMIT does not match SMITH; use prefix or wildcard for partial values. Both are case-insensitive by default and accept case_insensitive: false. match and match_phrase work only on text fields. Keyword and numeric term/terms values match as stored; use uppercase state abbreviations such as CA.

AND, OR, and NOT

Use bool.filter for AND, bool.should for OR, and bool.must_not to exclude matches. Each accepts one clause or an array. Set minimum_should_match: 1 to require at least one should clause; they are optional alongside filter or must otherwise.

Area and attribute filters

Put geo_shape in the same bool.filter as your attribute clauses. This example finds parcels of at least one acre intersecting the polygon:
Use longitude/latitude coordinates and a valid, non-empty Polygon, MultiPolygon, or GeometryCollection containing those area geometries. The shape must be inline GeoJSON geometry, rather than a Feature or FeatureCollection. Only the geom field and the intersects relation are supported; intersects is the default when omitted.

Queryable fields

Query field names can differ from response paths. For example, search owner and read the result as ownership.owner_name. Nested property sections are not generally searchable. See Data fields for the response dictionary.

Text fields

These support exact values, text searches, existence checks, and prefix/wildcard patterns.

Numeric fields

These support exact values, existence checks, and numeric ranges. Prefix, wildcard, and full-text searches do not apply.

ID and categorical fields

These support exact values, existence checks, and prefix/wildcard patterns. sale_date is a string field; numeric range queries do not apply to dates. The following exact and existence filters require property gold to be enabled by the service: property_id, zoning_status, zoning_source, zoning_evidence_id, zoning_jurisdiction.type, zoning_jurisdiction.geoid_or_place_fips, and classification.zoning_standard_class. They return HTTP 400 when unavailable. A nonblank zoning string alone does not establish a reviewed zoning status.

Looking up an APN

Use term or terms on parcel_id for exact APN matching. Add state and county constraints because parcel numbers are not nationally unique:
PropertyLayer drops separators and whitespace, uppercases letters, and removes leading zeros before exact comparison. 0385, 385, and 0-385 therefore share a canonical APN. Interior zeros are preserved: 100 and 1 are different numbers. A partial APN does not become a fuzzy match.

Sorting

Pass up to three distinct queryable fields in priority order, for example [{"acres":"desc"},{"parcel_value":"asc"}]. Each sort object contains one field and asc or desc. PropertyLayer adds an identity tie-breaker and uses identity order by default. _score sorting is not supported.

Pagination

Offset pagination

Use size and from within the first 10,000 results:

Cursor pagination

Use the response’s next_cursor to continue, including beyond 10,000 results. Resend the same query and sort; omit from or set it to zero. Treat the cursor as opaque.
Continue until next_cursor is null, even when a page contains fewer results than requested. A full final page can have a cursor followed by an empty page. Pagination reads the current index rather than a frozen snapshot; changes to properties during pagination can affect results.

Response

The response contains property records and pagination details: Every returned property counts toward your plan’s property credits. See Rate limits.

Tax assessor data and building footprints

Tax assessor sections such as ownership, situs_address, land, building_summary, valuation_current, valuations, taxes, exemptions, transfers, and derived are included where published, without an extra flag. Guard against omitted sections. See Data fields. Set include_buildings: true to attach ORNL footprint geometry as building_footprints:
Each footprint includes geom, height, height_variance, and estimated_floors. The building_footprints key is omitted when not requested. Assessor construction detail remains in buildings and building_summary where available.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

A bounded Elasticsearch-style property search.

query
Query · object
required

Elasticsearch-style query DSL. Supported clauses: bool, term, terms, exists, geo_shape, match, match_phrase, range, prefix, wildcard, and match_all.

Example:
size
integer
default:20

Maximum results to return.

Required range: 1 <= x <= 100
from
integer
default:0

Zero-based result offset. from + size cannot exceed 10,000; use the response's next_cursor to continue beyond that window.

Required range: 0 <= x <= 10000
cursor
string | null

Continuation token from a previous response. Resend the same query and sort with this value; from must be omitted or zero.

Maximum string length: 4096
sort
Sort · object[] | null

Optional Elasticsearch-style sort list, for example [{"parcel_value": "desc"}].

Maximum array length: 3
include_buildings
boolean
default:false

Response

Successful Response

A Property object. See the Property model for the full response shape — tax assessor sections, parcel geometry, and enrichment fields.