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 |
|---|---|---|
|
|
|
|
|
|
|
|
|
{
"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
containsWordsonowner.firstNameandowner.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.subdivisionNamevalue withequalsorinList. See Subdivision Searches.Zoning codes: use
equalsorinListwith complete codes, for example"inList": ["R1-6", "R1-8"]onlot.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
Text Search Grammar Best Practices: every text operator, and the fields where the wildcard operators return HTTP 400.
BatchData Property Search Request Body Reference: request-body recipes, including the quick list table.
Searching Properties by Land Use Code: land use code searches and the full code list.
Data Dictionary: the published value lists, including the Property Search Filter Values tab of the Property Search/Property Lookup API datasets sheet.
How Owner-Name Matching Works in Property Search: owner-name search with
containsWords.
