Address Autocomplete API
The AU Address Autocomplete API is used to search the AU Addressfinder database to return closely matching addresses which can then be selected from by the user. This API works in tandem with the AU Address Metadata API which is used to load the metadata associated with the selected address.
Endpoint
Australia
https://api.addressfinder.io/api/au/address/autocomplete
Parameters
Parameter | Default | Description | Test Value |
---|---|---|---|
key |
| Your unique licence key (find on Portal credentials) Required string | |
secret |
| Your unique secret key (find on Portal credentials). This is required when calling API endpoints without a referer. Optional string | |
q |
| The partial address being searched Optional string | |
format | json | The format of the response. Optional string | |
source | gnaf,paf | Determines the source of the addresses being searched and returned.
Optional string | |
post_box |
| Return PO Box style addresses. This includes PO Box, Locked Bag, GPO Box, CMB, RMS, Care PO, MS and RSD. Used with the
Optional string | |
canonical |
| Return canonical and/or alias addresses - this allows for vanity suburbs, historic street names, and more:
Optional string | |
state_codes |
| Filter the results according to the states or territories. Use a comma to separate multiple values:
Optional string | |
domain |
| Used to identify which of your services is calling the API for activity monitoring purposes. This domain needs to be registered in the portal. Optional string | |
max | 10 | The maximum number of results to return. The default is 10 results. Optional integer | |
highlight |
| Returns an additional attribute in the response called
Optional string | |
ascii |
| Set to Optional string |
Responses
200 OK
Name | Type | Description | Example |
---|---|---|---|
completions | array | - | |
full_address | string | Full address string. | Unit 2, 21 Kent Road, DAPTO NSW 2530 |
id | string | The unique address identifier. This ID will change following a data refresh. | c10cf706-2e2e-4fe1-887c-156e6118ab76 |
canonical_address_id | string | The ID of the canonical or official address associated with this search result. Note The ID and Canonical Address ID will be identical when the search result is canonical. | a4c4f26d-7327-40cc-9d05-ca94bd94a354 |
highlighted_full_address | string | When highlighting is enabled, contains the full address string with highlighted matching terms. | Unit 2, 21 Kent Road, DAPTO NSW 2530 |
success | boolean | if the request completed 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.