---
id: "co_department_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Colombian department code (DIVIPOLA)"
regexp: "^(?:05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)$"
categories: ["geo", "government"]
country: ["CO"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/co_department_code"
---

# Colombian department code (DIVIPOLA) (`co_department_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.

Two-digit code of a Colombian department, or of the capital district, in DIVIPOLA, the coding of the political and administrative division kept by the national statistics office DANE: 05 Antioquia, 11 Bogotá D.C., 25 Cundinamarca, 76 Valle del Cauca, 99 Vichada. It begins the five-digit municipality code (co_divipola). Tables name it Código Departamento, COD_DEPTO, COD_DPTO, CodigoDaneDepartamento or ID_DEPARTAMENTO, and spreadsheets drop the leading zero of 05 and 08.

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

## Detection

Regular expression (Python `re`):

```
^(?:05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)$
```

## Examples

- `05` — Antioquia
- `11` — Bogotá D.C.
- `25` — Cundinamarca
- `76` — Valle del Cauca
- `12` (invalid example) — not assigned
- `05001` (invalid example) — a municipality code (co_divipola)

## Metacrafter rules

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

- `codepartmentcodebyname` (field, `co/co_geo.yaml`)

## Supported by tools

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

## Translations

- es: Código DIVIPOLA de departamento
- ru: Код департамента Колумбии (DIVIPOLA)

## Sources

- wikipedia: <https://es.wikipedia.org/wiki/Departamentos_de_Colombia>

## Quality

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

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