eurlex_fetch
Fetch the full text of EU legal acts using CELEX ID, ELI, or OJ reference, with pagination support for long documents.
Instructions
Fetches the full text of an EU legal act. Identify it by celex_id (e.g. "32024R1689"), by eli (e.g. "reg/2016/679" or a full ELI URL), or by oj_ref (post-2023 Official Journal reference, e.g. "OJ:L_202401689") — provide exactly one. Paginate long documents with offset and max_chars: pass the previous response's next_offset to continue reading until it is null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eli | No | European Legislation Identifier (ELI), short or full form, e.g. "reg/2016/679" or "http://data.europa.eu/eli/reg/2016/679/oj" (GDPR). Resolved to a CELEX ID via Cellar. Provide exactly one of celex_id, eli, or oj_ref. | |
| format | No | Output format: xhtml=structured XHTML, plain=text with XHTML tags stripped | xhtml |
| offset | No | Character offset for pagination (0-based) | |
| oj_ref | No | Official Journal reference in the post-2023 scheme, e.g. "OJ:L_202401689" (AI Act). Resolved to a CELEX ID via Cellar. Provide exactly one of celex_id, eli, or oj_ref. | |
| celex_id | No | CELEX identifier, e.g. "32024R1689" (AI Act). Provide exactly one of celex_id, eli, or oj_ref. | |
| language | No | Language of the full 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 |
|---|---|---|---|
| offset | Yes | The offset this window was sliced from | |
| content | Yes | The document text in the requested window/format | |
| celex_id | Yes | The resolved CELEX ID the text was fetched for | |
| language | Yes | Cellar 3-letter language code of the text | |
| truncated | Yes | True when more text remains beyond this window | |
| source_url | Yes | Cellar REST URL of the fetched resource | |
| 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` |