---
id: "pe_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["PE"]
langs: ["es"]
quality: 75
url: "http://registry.apicrafter.io/datatype/pe_postcode"
---

# Peru postal code (`pe_postcode`)

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

Postal code in Peru: five digits starting with 0, 1 or 2; the older codes of Lima and Callao, such as LIMA 23 or CALLAO 2, are also accepted.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Peru (PE)
- Languages: Spanish (es)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:(?:LIMA \d{1,2}|CALLAO 0?\d)|[0-2]\d{4})$
```

## Examples

- `LIMA 23`
- `LIMA 42`
- `CALLAO 2`
- `02001`
- `0200` (invalid example) — too short

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_Peru>
- other: <https://chromium-i18n.appspot.com/ssl-address/data/PE>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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