---
id: "it_istat_comune"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["IT"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/it_istat_comune"
---

# Italian ISTAT municipality code (`it_istat_comune`)

> **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 an Italian municipality (six digits), province (three digits) or region (two digits) assigned by the Italian National Institute of Statistics (ISTAT).

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Italy (IT)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:\d{2}|\d{3}|\d{6})$
```

## Examples

- `015146` — Milan
- `058091` — Rome

## Mappings

- wikidata: `P635`

## Sources

- wikipedia: <https://it.wikipedia.org/wiki/Codice_ISTAT>
- doc: <https://www.istat.it/classificazione/codici-dei-comuni-delle-province-e-delle-regioni/>
- wikidata: <https://www.wikidata.org/wiki/Property:P635>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

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