filters, anchor, and contact_audience parameters as Search Properties.body locationsarraybody typestringrequiredstate, county, city, zip_code, radius, or polygon.body codestringstate (2-letter abbreviation), county (5-digit FIPS code), city (place ID), and zip_code (5-digit ZIP).body latitudenumberradius.body longitudenumberradius.body radius_milesnumberradius.body coordinatesarray[longitude, latitude] pairs defining the boundary. Required for polygon (minimum 3 points).body filtersarraysource_type=properties) and people filters (source_type=people).body filter_idstringrequiredbody operatorstringallowed_operators. See Filter Values for all operators by type. Optional for BOOLEAN filters — automatically defaults to is_boolean.body valueanyrequiredbody include_listsobject{ "property_list_ids": [123] }.body exclude_listsobject{ "property_list_ids": [456] }.body exclude_previously_exportedboolean | objectbody anchorstringdefault: propertiestotal_results.properties to count matching properties. Use people to count matching people; this requires contact_audience.body contact_audiencestringanchor is people, optional when properties.owners, owners_and_family, renters, residents| Field | Type | Description |
total_properties | integer | Number of properties matching the filters |
total_people | integer | Number of people matching the filters and contact_audience |
total_results | integer | Equals total_properties when anchor is properties, or total_people when anchor is people |
contact_audience is required when anchor is "people" and optional when anchor is "properties".123456789101112131415161718192021curl -X POST "https://api.v2.dealmachine.com/v1/properties/search/count" \ -H "Authorization: Bearer dm_sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "locations": [ { "type": "state", "code": "TX" } ], "anchor": "properties", "contact_audience": "owners", "filters": [ { "filter_id": "estimated_value", "operator": "range", "value": { "min": 200000, "max": 600000 } }, { "filter_id": "has_absentee_owners", "value": true } ] }'
12345{ "total_properties": 1847, "total_people": 2134, "total_results": 1847 }