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

# Afghanistan postal code (`af_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 Afghanistan: four digits.

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

## Detection

Regular expression (Python `re`):

```
^\d{4}$
```

## Examples

- `1001`
- `2601`
- `3801`
- `100` (invalid example) — too short

## Sources

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

## Quality

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

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