Skip to main content

How to Filter Property Search With Exact Values, Codes, and Quick Lists

How to build Property Search filters with equals and inList on complete values, code fields, and quick lists, the supported pattern in place of the contains, startsWith, and endsWith wildcard operators.

Written by Charles Parra

Property Search returns the most precise results when each text filter names a complete value. This article shows the supported way to build those filters: equals and inList with complete values, code fields, and quick lists. Use this pattern in place of the wildcard operators contains, startsWith, and endsWith.

Why complete values

The wildcard operators are not supported on the high and medium cardinality Property Search text fields, such as owner names, street, city, county, and zoning code. On these fields, a wildcard operator returns an HTTP 400 error that names the field and the operator. Text Search Grammar Best Practices lists these fields.

On the enumerated fields, such as general.propertyTypeDetail, the wildcard operators still work, but a fragment can match values that you did not intend. For example, contains with Single on general.propertyTypeDetail matches more properties than equals with Single Family. A complete value matches only the value that you name.

equals and inList compare complete values. A fragment such as Single inside equals or inList matches nothing.

Use equals and inList with complete values

Use equals for one value. Use inList to match any of several values.

{
"searchCriteria": {
"query": "Phoenix, AZ",
"general": {
"propertyTypeDetail": {
"inList": ["Single Family", "Vacant Land"]
}
}
}
}

In the Data Dictionary, open the Property Search/Property Lookup API datasets sheet, and then select its Property Search Filter Values tab. That tab gives the valid values for the enumerated filters, for example general.propertyTypeCategory and general.propertyTypeDetail. If you know only part of a value, find the complete value in that tab first, and then search with it.

Search by code instead of by text

Some text fields have a matching code field. A code is exact by design, so a code filter with equals or inList replaces a wildcard search on the text field. In this table, each example code selects the same properties as the text value in parentheses.

Instead of a wildcard on

Filter on

Example code

general.propertyTypeDetail

general.standardizedLandUseCode

R2 (Single Family)

address.cbsaTitle

address.cbsaCode

38060 (Phoenix-Mesa-Chandler, AZ)

address.county

address.countyFipsCode

04013 (Maricopa)

{
"searchCriteria": {
"query": "AZ",
"address": {
"cbsaCode": {
"equals": "38060"
}
}
}
}

Searching Properties by Land Use Code explains general.standardizedLandUseCode and links the full list of land use codes.

Use quick lists for owner type

A wildcard on an owner name, such as contains with Trust or LLC on owner.fullName, returns an HTTP 400 error. To find properties by owner type, use a quick list:

  • trust-owned: owned by a trust.

  • corporate-owned: owned by a corporate entity.

{
"searchCriteria": {
"query": "Phoenix, AZ",
"quickLists": ["trust-owned"]
}
}

quickLists takes an array of quick list names, not an operator object. A property must match every quick list in quickLists. Use orQuickLists to match any of several quick lists. Add the not- prefix to exclude a quick list, for example not-corporate-owned.

The two lists overlap: a trust-owned property can also be corporate-owned. To find corporate-owned properties that are not trust-owned, send "quickLists": ["corporate-owned", "not-trust-owned"].

The BatchData Property Search Request Body Reference lists the quick lists and what each one means.

When you know only part of a value

  • Owner names: use containsWords on owner.firstName and owner.lastName. See How Owner-Name Matching Works in Property Search.

  • Subdivision names: look up a property in the subdivision with Property Lookup, and use its legal.subdivisionName value with equals or inList. See Subdivision Searches.

  • Zoning codes: use equals or inList with complete codes, for example "inList": ["R1-6", "R1-8"] on lot.zoningCode.

  • Enumerated fields: find the complete value in the Property Search Filter Values tab of the Property Search/Property Lookup API datasets sheet. The Data Dictionary links the sheet.

Related Resources

Did this answer your question?