---
id: "eu_celex"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["legal", "government"]
country: ["EU"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/eu_celex"
---

# CELEX number (`eu_celex`)

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

Identifier of a document in EUR-Lex, the database of European Union law: a sector digit, the year, a document type letter and a number, such as 32016R0679 for the GDPR.

- Personal data (PII): no
- Categories: Legal and compliance (legal), Government related (government)
- Countries: European Union (EU)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[\dEC](20|1\d)\d\d[A-Z][A-Z]?(\d{3,5}(\(\d\d\))?|/TXT|/PRO/\d\d)(-\d{8})?$
```

## Examples

- `61993CJ0415` — Bosman ruling
- `32016R0679` — General Data Protection Regulation
- `22014A0529(01)` — Ukraine–European Union Association Agreement

## Mappings

- wikidata: `P476`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/EUR-Lex>
- doc: <https://eur-lex.europa.eu/content/tools/TableOfSectors/types_of_documents_in_eurlex.html>
- wikidata: <https://www.wikidata.org/wiki/Property:P476>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

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