---
id: "iso3166code"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 90
url: "http://registry.apicrafter.io/datatype/iso3166code"
---

# identifier for a country subdivision per ISO 3166-2 (`iso3166code`)

identifier for a country subdivision per ISO 3166-2 (include country code)

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical
- Patterns: `be_subdivision_code`, `cz_region_code`, `nl_province_code`

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2}-[A-Z0-9]{1,3}$
```

## Examples

- `BE-VWV` — West Flanders
- `US-AL` — Alabama
- `AT-4` — Upper Austria

## Mappings

- fta: `STATE_PROVINCE.PREFECTURE_ISO_JA`
- wikidata: `P300`

## Supported by tools

- `fta`
- `ibmknowledgecatalog`
- `woodwork`

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P300>

## Quality

Score 90/100. Missing: negative example, translation.

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