eurlex_consolidated
Retrieve the consolidated, currently in-force text of an EU legal act by providing its CELEX ID or document type, year, and number.
Instructions
Fetches the latest consolidated (currently in-force) version of an EU legal act via ELI, with all amendments merged in. Identify the act with celex_id (e.g. "32016R0679") OR with doc_type + year + number — provide exactly one of the two. celex_id must be a sector-3 secondary-law CELEX (3YYYY[R|L|D]NNNN).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year of the act, e.g. 2024. Required together with doc_type and number when celex_id is not used. | |
| format | No | Output format: xhtml=structured XHTML, plain=text with XHTML tags stripped | xhtml |
| number | No | Document number, e.g. 1689. Required together with doc_type and year when celex_id is not used. | |
| offset | No | Character offset for pagination (0-based) | |
| celex_id | No | CELEX ID of the original act, e.g. "32016R0679" (GDPR). Alternative to doc_type + year + number — provide exactly one of the two input forms. Must be a sector-3 secondary-law CELEX (pattern 3YYYY[R|L|D]NNNN). | |
| doc_type | No | Document type: reg=regulation, dir=directive, dec=decision. Alternative to celex_id — provide together with year and number. | |
| language | No | Language of the returned text, as a Cellar 3-letter code (any of the 24 official EU languages, e.g. DEU, ENG, FRA, POL, SPA) | ENG |
| max_chars | No | Maximum number of characters returned |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| number | Yes | ||
| offset | Yes | The offset this window was sliced from | |
| content | Yes | The consolidated text in the requested window/format | |
| eli_url | Yes | ELI URL of the consolidated act | |
| doc_type | Yes | ||
| language | Yes | ||
| truncated | Yes | True when more text remains beyond this window | |
| next_offset | Yes | Offset to request next, or null when there is no more content | |
| total_chars | Yes | Length of the full processed document | |
| returned_chars | Yes | Length of `content` | |
| consolidated_celex | Yes | Resolved consolidated CELEX, e.g. "02016R0679-20160504" | |
| consolidation_date | Yes | ISO date from the CELEX "-YYYYMMDD" suffix, or null when absent |