---
id: "au_sa2_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "ABS Statistical Area Level 2 (SA2) code"
regexp: "^[1-9](?:\\d{4}|\\d{8})$"
categories: ["geo", "government"]
country: ["AU"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/au_sa2_code"
---

# ABS Statistical Area Level 2 (SA2) code (`au_sa2_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Code of a Statistical Area Level 2 of the Australian Statistical Geography Standard (ASGS) of the ABS, the areas of 3,000 to 25,000 people (suburbs, rural towns and their surrounds) for which the census and many statistics are published. The full code has nine digits: the state or territory digit (1 NSW, 2 Vic., 3 Qld, 4 SA, 5 WA, 6 Tas., 7 NT, 8 ACT, 9 Other Territories), the SA4 (two digits), the SA3 (two) and the SA2 (four): 107031142 is Shellharbour - Oak Flats. The 2011 and 2016 editions also had a five-digit code, the state digit and four digits (11001 Goulburn). Codes change between editions (2011, 2016, 2021).

- Parent datatype: [`admin_area_3`](https://registry.apicrafter.io/datatype/admin_area_3.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Australia (AU)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-9](?:\d{4}|\d{8})$
```

## Examples

- `107031142` — Shellharbour - Oak Flats (ASGS 2011, IPGOD applicant geocoding)
- `120021388` — Leichhardt - Annandale
- `11001` — Goulburn, the 2011 five-digit code
- `007031142` (invalid example) — no state digit 0

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `ausa2codebyname` (field, `au/au_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Код статистического района SA2 (Австралия)

## Sources

- doc: <https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026/main-structure-and-greater-capital-city-statistical-areas/statistical-area-level-2>
- wikipedia: <https://en.wikipedia.org/wiki/Australian_Statistical_Geography_Standard>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/au_sa2_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/AU/geo/au_sa2_code.yaml>
