---
id: "eurostat_age_class"
kind: "datatype"
status: "draft"
is_pii: false
name: "Eurostat age class code"
regexp: "^(?:TOTAL|UNK|Y_(?:LT|GE)\\d{1,3}|Y\\d{1,3}(?:-\\d{1,3})?)$"
categories: ["government"]
country: ["EU"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/eurostat_age_class"
---

# Eurostat age class code (`eurostat_age_class`)

> **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 an age or an age class in the AGE code list of Eurostat, as the datasets of the Eurostat database and the national tables sent to it give it: Y and the age in years (Y15), two ages joined by a hyphen for a class (Y14-17, Y18-34, Y35-64), Y_LT and Y_GE for an open class (Y_LT14 less than 14 years, Y_GE65 65 years or over), TOTAL for all ages and UNK for an unknown age. Asylum and residence permit tables of Cyprus have it in a column AGE beside CITIZEN and SEX.

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

## Detection

Regular expression (Python `re`):

```
^(?:TOTAL|UNK|Y_(?:LT|GE)\d{1,3}|Y\d{1,3}(?:-\d{1,3})?)$
```

## Examples

- `Y18-34` — from 18 to 34 years
- `Y_LT14` — less than 14 years
- `Y_GE65` — 65 years or over
- `TOTAL`
- `18-34` (invalid example) — without the letter Y

## Metacrafter rules

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

- `eurostatageclassbyname` (field, `eu/eu_statistics.yaml`)
- `eurostatageclassvalue` (data, `eu/eu_statistics.yaml`)

## Supported by tools

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

## Translations

- ru: Код возрастной группы Евростата

## Sources

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

## Quality

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

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