Datatypes › Italy › Geographic identifiers
Italian ISTAT municipality code
ID it_istat_comune
Statistical code of an Italian municipality (six digits), province or metropolitan city (three digits) or region (two digits) assigned by the Italian National Institute of Statistics (ISTAT), the three forms that Wikidata P635 stores. The code of a comune is the code of its province followed by a 3-digit number, as 015146 for Milan in province 015. A metropolitan city has the code of the province it replaced plus 200, so Milan is 215. On 1 January 2026 the reform of Sardinia gave its provinces the codes 112 to 119 and its metropolitan cities 312 (Sassari) and 318 (Cagliari, formerly 292), and the Sardinian comuni got new codes. Spreadsheets often lose the leading zero of a municipality code (45003 for 045003), and registers of public contracts put the three-digit code of the region in front (012058091 for Rome in Lazio); both are spellings found in files, not forms of the code.
- Categories
- Geographic identifiers
- Countries
- Italy
- Languages
- Common to most languages
- Wikidata
- P635
- Quality
- 100/100
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
itistatcomunebynamefield, it/it_codes.yaml
- Supported by tools
- metacrafter
Regular expression
^(?:\d{2}|\d{3}|\d{6})$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 015146 | Milan |
| 058091 | Rome |
| 312 | Metropolitan city of Sassari, since 1 January 2026 |
| 12 | Lazio region |
| 15146 invalid | The leading zero of the province code is missing |
Translations
| Language | Name | Description |
|---|---|---|
| Italian | Codice ISTAT del comune | Codice statistico ISTAT di un comune (sei cifre), di una provincia o città metropolitana (tre cifre) o di una regione (due cifre). |
| Russian | Код ISTAT коммуны Италии | Статистический код ISTAT коммуны (шесть цифр), провинции или метрополитенского города (три цифры) или области (две цифры). |
Sources
- wikipedia: Codice ISTAT (it.wikipedia.org)
- doc: istat.it/classificazione/codici-dei-comuni-delle-province-e-delle-regioni
- wikidata: wikidata.org/wiki/Property:P635
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/it_istat_comune - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/IT/geo/it_istat_comune.yamlon GitHub