fields, contact_audience, or other enrichment controls. Address results contain address
components and may include a normalized DealMachine city or county location for a later explicit
search or enrichment request.GET /v1/locations/autocomplete remains available as a deprecated compatibility alias. New
integrations should use this addresses Endpoint.query qstringrequiredquery scopestringdefault: allall, address, or location. Use address for a street-address input and location for a city, county, state, or ZIP picker.query statestringquery limitintegerdefault: 5query latitudenumberlongitude is required when this parameter is supplied.query longitudenumberlatitude is required when this parameter is supplied.limit=5 for most menus
and use scope=address when the control accepts only a street address.location.location_id or location.code to a search Endpoint.partial_results=true means the address provider was unavailable or exceeded its short timeout.
The Endpoint still returns any normalized DealMachine location suggestions that were available, so
the UI can remain usable without waiting on the address provider.12curl "https://api.v2.dealmachine.com/v1/addresses/autocomplete?q=1200%20Barton%20Springs&state=TX&limit=5" \ -H "Authorization: Bearer dm_sk_live_xxx"
1234567891011121314151617181920212223242526272829303132333435{ "data": [ { "suggestion_id": "addr_address_123", "kind": "address", "label": "1200 Barton Springs Rd, Austin, Texas 78704, United States", "address": { "address": "1200 Barton Springs Rd", "city": "Austin", "county": "Travis County", "state": "TX", "zip": "78704", "full_address": "1200 Barton Springs Rd, Austin, Texas 78704, United States", "latitude": 30.2638, "longitude": -97.7714 }, "location": { "location_id": "loc_city_7333", "type": "city", "code": "7333", "name": "Austin", "property_count": 460000, "state": "TX", "state_name": "Texas" } } ], "meta": { "query": "1200 Barton Springs", "scope": "all", "limit": 5, "returned": 1, "partial_results": false } }