---
id: "phone_area_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["telecom"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/phone_area_code"
---

# Telephone area code (`phone_area_code`)

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

Area code (trunk prefix and dialling code) of a telephone number written without the subscriber number, as in 0221 for Cologne or 06 for Rome in national formats; North American area codes have three digits without a leading zero (212). Directories often keep it in a column of its own.

- Personal data (PII): no
- Categories: Telecommunications (telecom)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

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

## Examples

- `0221` — Cologne
- `0211` — Düsseldorf
- `02151` — Krefeld
- `212` — Manhattan (NANP)
- `0221 123456` (invalid example) — With the subscriber number: phone

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `phoneareacodebyfield` (field, `common/telecom.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- de: Telefonvorwahl
- ru: Телефонный код

## Sources

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

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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