{
  "id": "phone_area_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Telephone area code",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "telecom"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[1-9]\\d{0,4}|[2-9]\\d{2})$",
  "examples": [
    {
      "value": "0221",
      "description": "Cologne",
      "valid": true
    },
    {
      "value": "0211",
      "description": "Düsseldorf",
      "valid": true
    },
    {
      "value": "02151",
      "description": "Krefeld",
      "valid": true
    },
    {
      "value": "212",
      "description": "Manhattan (NANP)",
      "valid": true
    },
    {
      "value": "0221 123456",
      "description": "With the subscriber number: phone",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Telephone_numbering_plan"
    }
  ],
  "translations": {
    "de": {
      "name": "Telefonvorwahl"
    },
    "ru": {
      "name": "Телефонный код"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "phoneareacodebyfield",
        "type": "field",
        "match": "regex",
        "file": "common/telecom.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/telecom/phone_area_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/telecom/phone_area_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/telecom/phone_area_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/phone_area_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/phone_area_code.json"
  }
}