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

# Spanish INE municipality code (`es_ine_municipio`)

> **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 Spanish province (two digits), municipality (five digits) or populated entity (eleven digits) assigned by the National Statistics Institute (INE).

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

## Detection

Regular expression (Python `re`):

```
^(0[1-9]|[1-4][0-9]|5[0-2])(|\d{3}|\d{9})$
```

## Examples

- `11015` — Chiclana de la Frontera
- `42071000100` — Almarail
- `44` — Teruel Province

## Mappings

- wikidata: `P772`

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P772>

## Quality

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

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