---
id: "eurostat_geo_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Eurostat country or aggregate code (GEO, CITIZEN)"
regexp: "^(?:[A-Z]{2}|E[UA]\\d{2}(?:_\\d{4})?|EXT_EU\\d{2}(?:_\\d{4})?|EFTA|UK_OCT|TOTAL|STLS|RNC|UNK)$"
categories: ["geo", "government"]
country: ["EU"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/eurostat_geo_code"
---

# Eurostat country or aggregate code (GEO, CITIZEN) (`eurostat_geo_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.

Code of a country or a group of countries in the code lists of Eurostat for the reporting country (GEO), the citizenship (CITIZEN), the country of birth or the partner. Countries have the two letters of ISO 3166-1, except EL for Greece and UK for the United Kingdom; aggregates are written EU27_2020 (the European Union of 27 from 2020), EU28, EA19 or EFTA, and EXT_EU27_2020 for the countries outside it. Citizenship lists add TOTAL, STLS (stateless), RNC (recognised non-citizens), UK_OCT (British overseas countries and territories) and UNK (unknown). Regions have NUTS codes (nutsregion).

- Parent datatype: [`countrycode_alpha2`](https://registry.apicrafter.io/datatype/countrycode_alpha2.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: European Union (EU)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:[A-Z]{2}|E[UA]\d{2}(?:_\d{4})?|EXT_EU\d{2}(?:_\d{4})?|EFTA|UK_OCT|TOTAL|STLS|RNC|UNK)$
```

## Examples

- `EL` — Greece
- `CY`
- `EU27_2020`
- `EXT_EU27_2020` — countries outside the EU of 27
- `STLS` — stateless
- `GRC` (invalid example) — an alpha-3 code

## Metacrafter rules

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

- `eurostatgeocodebyname` (field, `eu/eu_statistics.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Код страны или группы стран Евростата (GEO, CITIZEN)

## Sources

- doc: <https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/GEO>
- doc: <https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/CITIZEN>

## Quality

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

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