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

# FIPS 10-4 country or region code (`fips10_4`)

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

Two-letter code of a country, optionally followed by two characters for a first-level subdivision, from the US standard FIPS 10-4, withdrawn in 2008. Some datasets, such as GDELT, still use it.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2}(?:[1-9][0-9]|[0-9A-Z][1-9])?$
```

## Examples

- `AF` — Afghanistan
- `AU01` — Burgenland

## Mappings

- wikidata: `P901`

## Supported by tools

- `greatexpectations`
- `tableau`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/FIPS_10-4>
- wikidata: <https://www.wikidata.org/wiki/Property:P901>

## Quality

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

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