---
id: "bo_municipality_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Bolivian municipality code (INE)"
regexp: "^0?[1-9](?:0[1-9]|1[0-9]|20)0[1-9]$"
categories: ["geo", "government"]
country: ["BO"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/bo_municipality_code"
---

# Bolivian municipality code (INE) (`bo_municipality_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.

Six-digit code of a Bolivian municipality in the geographic coding of the INE: the province code and two digits for the municipal section, as in 020101 La Paz, 020105 El Alto and 070101 Santa Cruz de la Sierra. Tables of the Ministry of Health, the census layers and datos.gob.bo drop the leading zero (20105, 70101). A Peruvian ubigeo has the same form (010101), so use the field name (COD_MUN, MUNICOD, codigo_ine) or check the codes against the list of municipalities.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Bolivia (BO)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^0?[1-9](?:0[1-9]|1[0-9]|20)0[1-9]$
```

## Examples

- `020105` — El Alto, Murillo, La Paz
- `070101` — Santa Cruz de la Sierra
- `30901` — Quillacollo, Cochabamba, the zero dropped
- `0201` (invalid example) — a province code: bo_province_code

## Metacrafter rules

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

- `bomunicipalitycodebycodename` (field, `bo/bo_geo.yaml`)
- `bomunicipalitycodebyname` (field, `bo/bo_geo.yaml`)

## Supported by tools

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

## Translations

- es: Código de municipio (INE)

## Sources

- doc: <https://www.ine.gob.bo/>
- wikipedia: <https://en.wikipedia.org/wiki/Municipalities_of_Bolivia>

## Quality

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

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