---
id: "cn_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["CN"]
langs: ["zh"]
quality: 80
url: "https://registry.apicrafter.io/datatype/cn_postcode"
---

# Chinese postal code (邮政编码) (`cn_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 mainland China: six digits; the first two identify the province-level division.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: China (CN)
- Languages: Chinese (zh)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{6}$
```

## Examples

- `100000` — Beijing
- `200000` — Shanghai
- `12345` (invalid example)

## Translations

- zh: 邮政编码

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_China>

## Quality

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

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