code values to your property and people searches.code
directly into your search request's locations array.query qstringrequired"Harris", "Travis County", "St. Louis", "saint louis", "9021", "MO", "Missouri"query typestringcounty, city, zip_code, statequery statestring"TX", "CA").query per_pageintegerdefault: 25100.query pageintegerdefault: 1type:| Field | Type | Description |
location_id | string | Unique DealMachine location identifier (e.g., "loc_county_48201", "loc_city_7333", "loc_zip_code_90210", "loc_state_FL") |
type | string | Location type: "state", "county", "city", or "zip_code" |
code | string | The code to use in search location objects (state abbreviation, FIPS code, city place ID, or ZIP code) |
name | string | Human-readable name (e.g., "Harris County", "Florida", "Beverly Hills") |
property_count | integer | Approximate number of properties in this location |
| Field | Type | Description |
state | string | Two-letter state abbreviation |
state_name | string | Full state name |
| Field | Type | Description |
state | string | Two-letter state abbreviation |
state_name | string | Full state name |
| Field | Type | Description |
state | string | Two-letter state abbreviation |
state_name | string | Full state name |
| Field | Type | Description |
page | integer | Current page number |
per_page | integer | Results per page |
total_results | integer | Total matching locations |
total_pages | integer | Total number of pages |
code returned for each location is the exact value you pass into a search request's locations array:1234567891011// 1. Search for "Harris" to find the FIPS code // GET /v1/locations?q=Harris&type=county // → Returns { "location_id": "loc_county_48201", "code": "48201", "name": "Harris County", ... } // 2. Use the code in a property search { "locations": [ { "type": "county", "code": "48201" } ], "filters": [...] }
"MO" with type=state returns Missouri. Searching "har" will match "Harris County", "Harrison County", "Hardeman County", etc."saint louis" and "st louis" returns the same matching city and county names.property_count is an approximate count and is updated periodically. Use Count Properties for precise counts with filters applied.state query parameter is used with type=state, it filters to that specific state.12curl "https://api.v2.dealmachine.com/v1/locations?q=Harris&type=county" \ -H "Authorization: Bearer dm_sk_live_xxx"
12345678910111213141516171819202122232425262728293031323334353637{ "data": [ { "location_id": "loc_county_48201", "type": "county", "code": "48201", "name": "Harris County", "state": "TX", "state_name": "Texas", "property_count": 1842305 }, { "location_id": "loc_county_28047", "type": "county", "code": "28047", "name": "Harrison County", "state": "MS", "state_name": "Mississippi", "property_count": 87421 }, { "location_id": "loc_county_39067", "type": "county", "code": "39067", "name": "Harrison County", "state": "OH", "state_name": "Ohio", "property_count": 12034 } ], "pagination": { "page": 1, "per_page": 25, "total_results": 3, "total_pages": 1 } }