---
id: "cr_cpf"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["CR"]
langs: ["es"]
quality: 93
url: "http://registry.apicrafter.io/datatype/cr_cpf"
---

# Costa Rican physical person ID number (cédula de identidad) (`cr_cpf`)

> **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.

Cédula de Persona Física, also called cédula de identidad, the identity number of people in Costa Rica. It has ten digits in the form 0P-TTTT-AAAA: the province, the volume (tomo) and the entry (asiento) in the civil register. The leading zeros of each part are often left out.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Costa Rica (CR)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:0?\d-\d{1,4}-\d{1,4}|0?\d{9})$
```

## Examples

- `0784849265` — Synthetic number in the documented format
- `0112697462` — Synthetic number in the documented format
- `07-8484-9265` — The first example in its printed form
- `07848492657` (invalid example) — One character too many

## Mappings

- dpv: `pd:OfficialID`
- stdnum: `cr.cpf`

## Supported by tools

- `dataprep`
- `pythonstdnum`

## Translations

- es: Cédula de Persona Física

## Sources

- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.cr.cpf.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_cr_cpf.html>

## Quality

Score 93/100. Missing: authoritative source link.

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