---
id: "ir_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["IR"]
langs: ["fa"]
quality: 61
url: "http://registry.apicrafter.io/datatype/ir_postcode"
---

# Iran postal code (`ir_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 Iran: ten digits, optionally written as two groups of five joined by a hyphen.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Iran (IR)
- Languages: Persian (fa)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{5}-?\d{5}$
```

## Examples

- `11936-12345`
- `11936-1234` (invalid example) — too short

## Sources

- other: <https://chromium-i18n.appspot.com/ssl-address/data/IR>

## Quality

Score 61/100. Missing: second example, authoritative source link, mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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