MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
Dataset · Area Statistics

NSW and ACT Locality to Postcode and SA2 Lookup (2016 Boundaries)

A lookup register of 33,757 rows linking localities (suburbs, gazetted localities, aliases and extra localities) in New South Wales and the ACT to their postcode and to the 2016 Statistical Area Level 2 (SA2) region they fall in. A caller can search by locality name or filter by state, postcode, locality type or SA2, and fetch a row by key.

Endpoints

NSW and ACT Locality to Postcode and SA2 Lookup (2016 Boundaries): search

GET/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/search10¢ per call

Served by /v1/records/{slug}/search, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
qWords to find (prefix match, all must appear) in: locality id, locality name, locality type, state.
whereExact-match filter `field:value`, repeatable, on: `locality_type`, `state`.
fieldsComma-separated field slugs (below). Omit for all.
limitRecords per page, 1 to 50 (default 25).
offsetItems to skip, for the next page (`next_offset`).
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/search?q=ACT107' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

NSW and ACT Locality to Postcode and SA2 Lookup (2016 Boundaries): one record

GET/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/{record_key}5¢ per call

Served by /v1/records/{slug}/{record_key}, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
record_keyThe record's record id.
fieldsComma-separated field slugs (below). Omit for all.
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/1' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

About this dataset

New South Wales and the Australian Capital Territory, with 33,757 rows. Postcodes run up to 4385, and SA2 main codes range from 101021007 to 801111141. The geography is the 2016 edition, first loaded in April 2018 and last modified in August 2023. Current to 2023-08-09; refreshed One-off, updated infrequently.

What it is

A concordance table that maps each locality name and ID to a postcode, state, SA2 main code and SA2 name. Each row is one locality-to-postcode-to-SA2 combination, classified by locality type (gazetted, alias or extra locality).

What it shows

It shows which SA2 region and postcode a named locality belongs to, and which alternative names (aliases and extra localities) exist for a place. A locality can appear on several rows if it spans more than one postcode or SA2.

Why use it

Analysts need this to join suburb or postcode-based records, such as sales, development applications and addresses, to SA2-level statistics. It also helps resolve informal or alternative place names to a standard geography.

How it is built

We hold the 2016 geography coding index as a flat table of rows, each with a record ID, locality ID, name and type, postcode, state, and SA2 code and name. Rows are searchable by text and filterable by field. The profile shows only NSW and ACT values, so other states and territories appear to be missing.

Shortcomings

  • It uses 2016 SA2 boundaries, which are out of date compared with later boundary editions, so recent SA2 codes will not match.
  • Some postcodes are recorded as 0, which is a placeholder and not a real postcode.
  • Locality names are in upper case, and a locality can span several postcodes or SA2s, so joins on name alone can produce duplicate rows.
  • The profile shows only NSW and ACT, and a postcode maximum of 4385 suggests some border localities outside those states, so coverage of other states should not be assumed.

Fields

FieldUnitDescription
record_id
Record ID
Unique row identifier used to fetch a single record.
locality_id
Locality ID
Identifier for the locality, prefixed with the state code, for example NSW1937.
locality_name
Locality name
Name of the locality in upper case, such as ELANORA HEIGHTS.
locality_type
Locality type
Classification of the locality as gazetted locality, alias locality or extra locality.
postcode
Postcode
Postcode associated with the locality, where 0 indicates no postcode is assigned.
state
State
State or territory abbreviation, either NSW or ACT.
sa2_maincode
SA2 main code
Nine-digit 2016 Statistical Area Level 2 code the locality falls in.
sa2_name
SA2 name
Name of the 2016 Statistical Area Level 2 region, such as Jindabyne - Berridale.

Data source: ABS