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
/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/search10¢ per callServed by /v1/records/{slug}/search, which documents every parameter, the response shape and errors, and has a live playground.
| Query parameter | Description |
|---|---|
q | Words to find (prefix match, all must appear) in: locality id, locality name, locality type, state. |
where | Exact-match filter `field:value`, repeatable, on: `locality_type`, `state`. |
fields | Comma-separated field slugs (below). Omit for all. |
limit | Records per page, 1 to 50 (default 25). |
offset | Items 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
/v1/records/nsw-act-locality-postcode-sa2-lookup-2016/{record_key}5¢ per callServed by /v1/records/{slug}/{record_key}, which documents every parameter, the response shape and errors, and has a live playground.
| Query parameter | Description |
|---|---|
record_key | The record's record id. |
fields | Comma-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
| Field | Unit | Description |
|---|---|---|
record_idRecord ID | Unique row identifier used to fetch a single record. | |
locality_idLocality ID | Identifier for the locality, prefixed with the state code, for example NSW1937. | |
locality_nameLocality name | Name of the locality in upper case, such as ELANORA HEIGHTS. | |
locality_typeLocality type | Classification of the locality as gazetted locality, alias locality or extra locality. | |
postcodePostcode | Postcode associated with the locality, where 0 indicates no postcode is assigned. | |
stateState | State or territory abbreviation, either NSW or ACT. | |
sa2_maincodeSA2 main code | Nine-digit 2016 Statistical Area Level 2 code the locality falls in. | |
sa2_nameSA2 name | Name of the 2016 Statistical Area Level 2 region, such as Jindabyne - Berridale. |
Data source: ABS
