Skip to content

Search locations

GET
/locations/search

Searches for Australian locations by suburb name or postcode. Useful for autocomplete fields.

q
required
string
Example
SYDNEY

Search query (suburb name or postcode)

Matching locations

object
locations
Array<object>
object
id

Unique location identifier

integer
Example
12345
postcode

Australian postcode (4 digits)

string
Example
2000
locality

Suburb or locality name (uppercase)

string
Example
SYDNEY
state

Australian state or territory abbreviation

string
Allowed values: NSW VIC QLD SA WA TAS NT ACT
Example
NSW
priority

Priority ranking for search result ordering

integer
Example
1
Example
{
"locations": [
{
"id": 12345,
"postcode": "2000",
"locality": "SYDNEY",
"state": "NSW",
"priority": 1
},
{
"id": 12346,
"postcode": "2001",
"locality": "SYDNEY",
"state": "NSW",
"priority": 1
},
{
"id": 12347,
"postcode": "2060",
"locality": "NORTH SYDNEY",
"state": "NSW",
"priority": 1
}
]
}