---
id: "bg_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["BG"]
langs: ["bg"]
quality: 100
url: "http://registry.apicrafter.io/datatype/bg_postcode"
---

# Bulgarian postal code (`bg_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 Bulgaria: four digits, from 1000 for central Sofia.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Bulgaria (BG)
- Languages: Bulgarian (bg)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{3}$
```

## Examples

- `1000` — Sofia
- `4000` — Plovdiv
- `9000` — Varna
- `100` (invalid example)

## Mappings

- fta: `POSTAL_CODE.POSTAL_CODE_BG`

## Supported by tools

- `fta`

## Translations

- ru: Почтовый индекс Болгарии

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_Bulgaria>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

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