---
id: "eunis_habitat_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "EUNIS habitat classification code"
regexp: "^[A-J]\\d?(?:\\.[0-9A-Z]{1,5})?$"
categories: ["environment", "science"]
country: ["EU"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/eunis_habitat_code"
---

# EUNIS habitat classification code (`eunis_habitat_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 habitat type in the EUNIS habitat classification of the European Environment Agency, a hierarchical list of the habitats of Europe from natural to artificial and from terrestrial to marine. In the version in use before the revision of 2021 a letter names the broad group (A is marine), a digit the second level, and each further digit or letter after a full stop one level more, so A5.535 (Posidonia beds) is under A5.53 (sublittoral seagrass beds), A5.5 and A5. Habitat maps of Natura 2000 sites give the code next to the Annex I habitat type code (eu_habitat_type_code). The revised classification writes its codes in another form, which this pattern does not cover.

- Personal data (PII): no
- Categories: Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), Scientific (science)
- Countries: European Union (EU)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-J]\d?(?:\.[0-9A-Z]{1,5})?$
```

## Examples

- `A5.535` — Posidonia beds; EUNIS vocabulary of the Eionet Data Dictionary
- `A5.53` — Sublittoral seagrass beds; EUNIS vocabulary
- `A5` — Sublittoral sediment; EUNIS vocabulary
- `1170` (invalid example) — A habitat type code of Annex I of the Habitats Directive

## Metacrafter rules

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

- `eunishabitatcodebyname` (field, `eu/eu_geo.yaml`)

## Supported by tools

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

## Sources

- doc: <https://dd.eionet.europa.eu/vocabulary/biodiversity/eunishabitats/view>
- wikipedia: <https://en.wikipedia.org/wiki/European_Nature_Information_System>

## Quality

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

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