Location Autocomplete API
This API lets you search for streets, suburbs, and/or states — referred to as "locations". This API works in tandem with the Location Metadata API to collect metadata associated with the selected location.
Endpoint
Australia
https://api.addressfinder.io/api/au/location/autocomplete
Parameters
Parameter | Default | Description | Test Value |
---|---|---|---|
key |
| Your unique Addressfinder license key. Required string | |
secret |
| Your unique secret key. You can also pass your secret key into the Optional string | |
q |
| The query string to be matched with the location. Required string | |
format | json | The format of the response. Required string | |
location_types |
| A comma-separated list of location types to filter the results. Leave empty to allow any location type. Options are Optional string | |
state_codes |
| A comma-separated list of states or territories to filter results. Options: ACT, NSW, NT, QLD, SA, TAS, VIC, WA, OT. Optional string | |
domain |
| Used to identify in the Addressfinder Portal which of your services is calling the API for activity monitoring purposes. The domain needs to be registered in the Portal. Optional string | |
max | 10 | Maximum number of results to return (1–100). Optional integer | |
highlight |
| Set to Optional integer |
Responses
200 A list of location autocomplete completions
Name | Type | Description | Example |
---|---|---|---|
completions | array | - | |
id | string | The unique location identifier. | 59a68aa3-0b46-4cbf-8817-e28e5dea3cad |
full_location | string | Full location as supplied by data sources. | Martin Street, OUYEN VIC 3490 |
state_territory | string | Australian state or territory. | VIC |
location_type | string | Type of location. | street |
success | boolean | True if the service ran successfully. | true |
400 Bad request
Name | Type | Description | Example |
---|---|---|---|
completions | array | An empty array will be returned due to the error | - |
error_code | string | A unique numerical value identifying the error that occured | 1004 |
message | string | An informative message describing the error that occured | Secret not provided |
success | boolean | Indicates that the result was a failure | false |
See API Error Reference for details.