'Australian Suburbs' provides free API endpoints to interact with postcode and suburb data. The functionality includes validating postcode-suburb combinations, retrieving suburbs by postcode, and fetching suburb suggestions based on a search term.
This endpoint validates if the provided postcode and locality combination is valid.
GET https://australiansuburbs.au/api/validate?postcode={postcode}&suburb={suburb}
{
"valid": true
}
{
"error": "Both postcode and suburb are required."
}
This endpoint retrieves the suburb or suburbs and state associated with a given postcode. Multiple records may be returned for the same postcode.
GET https://australiansuburbs.au/api/lookup_postcode?postcode={postcode}
{
"postcode": "4128",
"suburbs": [
"KIMBERLEY PARK",
"LOGAN HYPERDOME BC",
"SHAILER PARK",
"TANAH MERAH"
],
"state": "QLD"
}
{"error":"No data found for this postcode."}
This endpoint provides suburb suggestions based on a partial string. It returns suburb name, state and their associated postcodes.
GET https://australiansuburbs.au/api/lookup_suburb?search={search}
[
{
"locality": "PLACID HILLS",
"postcode": 4343,
"state": "QLD"
},
{
"locality": "PLAINBY",
"postcode": 4355,
"state": "QLD"
},
{
"locality": "PLAINLAND",
"postcode": 4341,
"state": "QLD"
}
]
{
"error": "No matching suburbs found."
}
All APIs will return appropriate HTTP status codes and error messages for invalid requests:
This API does not currently require authentication but is IP rate limited to prevent abuse:
Abuse of this API may result in an IP ban. If you require whitelisting or rate increased with an explanation, please get in touch with us at [email protected]
This API uses opensource community derived data NOT approved or created by Australia Post. It may contain errors and should NOT be used commercially and be treated 'as is'.