1234567{ "locations": [ { "type": "state", "code": "TX" }, { "type": "zip_code", "code": "90210" } ], "filters": [...] }
type field that determines its shape. For standard location types (state, county, city, zip_code), the identifier is always passed in a uniform code field:| Type | Description | code value |
state | An entire US state | Two-letter abbreviation (e.g., "TX") |
county | A US county | 5-digit FIPS code (e.g., "48201") |
city | A city or place | Place ID from List Locations (e.g., "7333" for Austin, TX) |
zip_code | A ZIP code area | 5-digit ZIP code (e.g., "78704") |
radius | A circle around a point | Uses latitude, longitude, radius_miles instead |
polygon | A custom drawn area | Uses coordinates array instead |
bounds | A rectangular bounding box | Uses north, south, east, west instead |
state1234{ "type": "state", "code": "TX" }
| Key | Type | Required | Description |
type | string | Yes | "state" |
code | string | Yes | Two-letter state abbreviation (e.g., "TX", "CA", "FL") |
county1234{ "type": "county", "code": "48201" }
| Key | Type | Required | Description |
type | string | Yes | "county" |
code | string | Yes | 5-digit FIPS county code (e.g., "48201" for Harris County, TX) |
"Harris"
returns Harris County, TX with code "48201".city1234{ "type": "city", "code": "7333" }
| Key | Type | Required | Description |
type | string | Yes | "city" |
code | string | Yes | Place ID from the List Locations endpoint |
type=city to
find the right place ID. For example, searching "Austin" with state=TX returns Austin, TX with
code "7333". Common abbreviations are normalized, so "St. Louis" and "Saint Louis" return
the same matching city names.zip_code1234{ "type": "zip_code", "code": "78704" }
| Key | Type | Required | Description |
type | string | Yes | "zip_code" |
code | string | Yes | 5-digit ZIP code (e.g., "78704") |
radius123456{ "type": "radius", "latitude": 30.2672, "longitude": -97.7431, "radius_miles": 5 }
| Key | Type | Required | Description |
type | string | Yes | "radius" |
latitude | number | Yes | Center point latitude |
longitude | number | Yes | Center point longitude |
radius_miles | number | Yes | Radius in miles (e.g., 5 for a 5-mile radius) |
polygon123456789{ "type": "polygon", "coordinates": [ [-97.77, 30.29], [-97.71, 30.29], [-97.71, 30.24], [-97.77, 30.24] ] }
| Key | Type | Required | Description |
type | string | Yes | "polygon" |
coordinates | array | Yes | Array of [longitude, latitude] pairs defining the polygon boundary. Minimum 3 points. |
[longitude, latitude]. This follows the GeoJSON
standard and is the opposite of how coordinates
are typically spoken ("lat/long").bounds1234567{ "type": "bounds", "north": 30.29, "south": 30.24, "east": -97.71, "west": -97.77 }
| Key | Type | Required | Description |
type | string | Yes | "bounds" |
north | number | Yes | North edge latitude (must be greater than south) |
south | number | Yes | South edge latitude |
east | number | Yes | East edge longitude (must be greater than west) |
west | number | Yes | West edge longitude |
bounds type is equivalent to a polygon with four corners. Use it when you have a
rectangular area (like a map viewport) and don't want to construct coordinate pairs manually.1234567891011121314{ "locations": [ { "type": "county", "code": "48201" }, { "type": "county", "code": "48113" }, { "type": "zip_code", "code": "78704" } ], "filters": [ { "filter_id": "estimated_value", "operator": "range", "value": { "min": 200000, "max": 500000 } } ] }
| Constraint | Limit |
| Locations per request | 15 max |
| Minimum locations | 1 required |
| Polygon coordinates | 3 minimum |
123456789101112131415161718192021222324curl -X POST "https://api.v2.dealmachine.com/v1/properties/search" \ -H "Authorization: Bearer dm_sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "locations": [ { "type": "county", "code": "48201" }, { "type": "county", "code": "48113" }, { "type": "radius", "latitude": 30.2672, "longitude": -97.7431, "radius_miles": 10 } ], "filters": [ { "filter_id": "equity_percent", "operator": "greater_than_or_equal", "value": 40 }, { "filter_id": "is_absentee_owner", "value": true } ], "fields": ["estimated_value", "equity_percent", "owner_name"], "page": 1, "per_page": 25 }'
12345678{ "locations": [ { "type": "zip_code", "code": "78701" }, { "type": "zip_code", "code": "78702" }, { "type": "zip_code", "code": "78703" }, { "type": "zip_code", "code": "78704" } ] }
1234567{ "locations": [ { "type": "state", "code": "FL" }, { "type": "zip_code", "code": "78704" }, { "type": "zip_code", "code": "78705" } ] }
12345678910{ "locations": [ { "type": "radius", "latitude": 33.749, "longitude": -84.388, "radius_miles": 2 } ] }
1234567891011{ "locations": [ { "type": "bounds", "north": 33.77, "south": 33.73, "east": -84.37, "west": -84.42 } ] }
1234567891011121314{ "locations": [ { "type": "polygon", "coordinates": [ [-84.42, 33.77], [-84.37, 33.77], [-84.37, 33.73], [-84.40, 33.71], [-84.42, 33.73] ] } ] }