Syllogi Documents API
EU legal acts by CELEX number, the change history of the stored text and consolidated versions as valid on a day.
EU legal acts by CELEX number, the change history of the stored text and consolidated versions as valid on a day.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/syllogi-eu:syllogi-eu-documents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
email: support@syllogi.eu
name: Syllogi Support
url: https://www.syllogi.eu/developers
description: 'REST API of Syllogi for EU law from official sources (EUR-Lex / Cellar and EASA): search, AI search with source references, documents by CELEX number, consolidated versions as valid on a day with article-level diffs, alerts, signed webhooks and an Atom/RSS change feed.
Authentication: send an API token of your organisation as `Authorization: Bearer syl_live_...`. An organisation admin creates tokens in the web app (Settings -> API); the scopes are listed under the security scheme.
Data: EUR-Lex content (c) European Union, https://eur-lex.europa.eu, reused under Commission Decision 2011/833/EU. Consolidated texts and AI output are documentation aids without legal effect; only the Official Journal of the European Union is authentic.
Guides, examples, limits and the changelog: https://www.syllogi.eu/developers. MCP server for AI assistants: https://www.syllogi.eu/developers/mcp.'
summary: 'EU law from EUR-Lex and EASA as a REST API: search, documents, consolidated versions, alerts and webhooks.'
title: Syllogi Documents API
version: '1.0'
servers:
- description: Production
url: https://api.syllogi.eu
security:
- bearerAuth: []
tags:
- description: EU legal acts by CELEX number, the change history of the stored text and consolidated versions as valid on a day.
name: Documents
paths:
/api/v1/consolidated/images/{hash}:
get:
description: Serves a picture (formula, table, pictogram) that was extracted from a consolidated text, by its sha256 hash (content-addressed, immutable). The text and the articles reference it as [[img:]]. The response carries the headers X-Source-Attribution and X-Legal-Notice.
operationId: getConsolidatedImage
parameters:
- description: sha256 (64 hex characters)
in: path
name: hash
required: true
schema:
type: string
responses:
'200':
content:
application/octet-stream:
schema:
contentMediaType: image/*
type: string
image/bmp:
schema:
contentMediaType: image/*
type: string
image/gif:
schema:
contentMediaType: image/*
type: string
image/jpeg:
schema:
contentMediaType: image/*
type: string
image/png:
schema:
contentMediaType: image/*
type: string
image/tiff:
schema:
contentMediaType: image/*
type: string
image/webp:
schema:
contentMediaType: image/*
type: string
description: OK
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid hash
'401':
$ref: '#/components/responses/Unauthorized'
'403':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: tier_required (Professional and above or trial; body has error, code, required_tier, current_tier, notice) or organization required
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: unknown image
'429':
$ref: '#/components/responses/TooManyRequests'
'503':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: image storage not available
security:
- bearerAuth: []
summary: Picture of a consolidated text
tags:
- Documents
/api/v1/documents:
get:
description: Returns paginated document listing with optional type filter. Each document carries in_force / end_of_validity as described at GET /api/v1/documents/{celex} (absent = unknown / no known end).
operationId: listDocuments
parameters:
- description: Page size (1-100, default 20)
in: query
name: limit
schema:
type: integer
- description: Offset (default 0)
in: query
name: offset
schema:
type: integer
- description: Filter by document type (REGULATION, DIRECTIVE, DECISION, etc.)
in: query
name: type
schema:
type: string
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: documents array + total
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid type
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: internal error
security:
- bearerAuth: []
summary: List documents
tags:
- Documents
/api/v1/documents/{celex}:
get:
description: 'Returns document metadata. Use ?full=true to include full_text fields. text_status_en / text_status_de say whether the EN / DE full text is usable (ok, none, portal_chrome, foreign_text, pdf_only; absent = not checked yet). status is the pipeline state only (processed, metadata_only), not the validity. in_force / end_of_validity are the validity: for EUR-Lex acts what Cellar reports (acts that are not in force yet are reported as false, compare date_entry_force and date_application), for EASA documents whether the section is part of the current Easy Access Rules (true) or withdrawn (false): in_force true/false = formally in force (according to EUR-Lex) or not, NOT a statement that the act is still applied in full (partially replaced acts stay true); in_force absent = unknown (not fetched yet, or Cellar delivers none). end_of_validity = date the validity ended; absent = no known end (Cellar''s placeholder 9999-12-31 is returned as absent, also for an act with a part that is still open). The document list returns both fields too. date_entry_force = the entry into force (for a decision addressed to its addressees: the date it takes effect on notification); date_application = the general date from which the act applies according to EUR-Lex (absent = no own date, the act applies from date_entry_force, or not known); application_staggered = true when some provisions apply from other dates (staggered application, see the act). The document list returns these fields too. For a base act with at least one stored EUR-Lex consolidated version (listed or withdrawn rows alone do not count) the document also has has_consolidated=true and consolidated_access (ok, tier_required, organization_required, onboarding_required, tier_check_failed) - whether the caller may read them through the consolidated endpoints (no text, no gate).'
operationId: getDocument
parameters:
- description: CELEX number (e.g. 32011R1178)
in: path
name: celex
required: true
schema:
type: string
- description: Include full_text fields
in: query
name: full
schema:
type: boolean
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: document
'401':
$ref: '#/components/responses/Unauthorized'
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: not found
'429':
$ref: '#/components/responses/TooManyRequests'
security:
- bearerAuth: []
summary: Get document by CELEX
tags:
- Documents
/api/v1/documents/{celex}/changes/{version}:
get:
description: Returns the pre-computed diff for a specific version transition (paragraph-level + article-level).
operationId: getDocumentChange
parameters:
- description: CELEX number
in: path
name: celex
required: true
schema:
type: string
- description: Archived version number
in: path
name: version
required: true
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: diff data
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid version
'401':
$ref: '#/components/responses/Unauthorized'
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: not found
'429':
$ref: '#/components/responses/TooManyRequests'
security:
- bearerAuth: []
summary: Get version diff
tags:
- Documents
/api/v1/documents/{celex}/children:
get:
description: Returns child documents in the hierarchy (e.g. AMC/GM topics under a regulation).
operationId: listChildDocuments
parameters:
- description: Parent CELEX number
in: path
name: celex
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: children array + total
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: internal error
security:
- bearerAuth: []
summary: List child documents
tags:
- Documents
/api/v1/documents/{celex}/consolidated:
get:
description: 'Returns the EUR-Lex consolidated text (CELEX sector 0) of a base act that was valid on as_of (default today): full_text, reference (the official reference line) and footnotes, articles (number, anchor, title, text, amended_by = acts the modification markers point to) and annexes. The version is selected by its consolidation date (latest ]] and the article lists images[] with hash, url (/api/v1/consolidated/images/{sha256}) and content_type. A figure that the source does not have (permanent HTTP 404 in Cellar) is never dropped silently: the text holds the visible marker [Figure not available in the source (Cellar 404)] (German: [Abbildung in der Quelle nicht verfügbar (Cellar 404)]), the images[] entry is {missing: true, source_url} and hash and url are ABSENT for it; missing_figures counts the markers (also per version in the versions list) and notice.changes carries one extra entry (in the diff too). next_version is the version that replaces this one; newer_version_other_language reports a newer version without a text in the asked language (about 26 % of the in-force acts miss the latest version in DE and EN). 404 codes: no_consolidated_versions, no_version_in_language (with available_languages), no_version_as_of (with earliest_version), version_not_loaded (the version is known but its text is not loaded; there is no silent fallback to an older text). Original act instead of a consolidated version: EUR-Lex creates the FIRST consolidated version of an act only in the languages in which a corrigendum changed the enacting terms; in the other languages the Official Journal text stands until the first amendment is consolidated. If the asked language has no consolidated version on as_of, the act has only that one corrigendum consolidation (dated at the publication or entry into force of the act, at least 30 days in Cellar) and the original text in that language is stored, the 404 (no_version_in_language, no_consolidated_versions, no_version_as_of) carries original_act {celex, lang, url (the existing original-text endpoint GET /documents/{celex}?full=true), text_field (full_text = EN, full_text_de = DE), reason, fallback_url, possibly_amended_by}. The original is valid only as far as EUR-Lex has consolidated amendments: corrigenda are not incorporated, and possibly_amended_by lists the acts that amend it and had entered into force on as_of but are not consolidated for this language (absent if none known; it is information, the original is offered anyway). With the opt-in fallback=original the endpoint answers 200 with the original act text instead: type="original", is_consolidated=false, title, full_text (unless full_text=false), note (what the text is, that corrigenda are not incorporated, where the consolidated version exists, the amending acts), possibly_amended_by, newer_version_other_language, original_act and a notice that describes a reproduction of the Official Journal text; there is no cons_celex, no articles and no content_hash, nothing is stored as a version. Without the parameter nothing changes. Any other fallback value is 400 invalid_fallback. EVERY response, errors included, carries the structured "notice" (EUR-Lex disclaimer DE/EN: documentation tool, no legal effect; attribution "© European Union, https://eur-lex.europa.eu"; reuse conditions of Decision 2011/833/EU). Reader variants (same tier gate, metering and notice) - view=toc returns the table of contents without any text (sections[] with id = the XHTML anchor such as art_5 or anx_VI, else art_ / anx_, the preamble is pre; kind preamble|article|annex, number, title, bytes, lines, amended_by, images, missing_images), plus total_bytes, footnotes, reference, text_languages and pending_amendments. sections=, (at most 50, 400 too_many_sections) returns these sections with text and picture references, added in the asked order up to about 1 MiB (the first always comes); the rest is listed in deferred, unknown ids in not_found.'
operationId: getConsolidatedVersion
parameters:
- description: Base act CELEX (e.g. 32012R0965)
in: path
name: celex
required: true
schema:
type: string
- description: Day YYYY-MM-DD (default today, UTC)
in: query
name: as_of
schema:
type: string
- description: Language (default en)
in: query
name: lang
schema:
enum:
- de
- en
type: string
- description: false = omit full_text (articles stay)
in: query
name: full_text
schema:
type: string
- description: original = where the language has no consolidated version but the original act is the valid text, answer 200 with the original act (type=original, is_consolidated=false) instead of 404; 400 invalid_fallback together with view=toc or sections
in: query
name: fallback
schema:
enum:
- original
type: string
- description: toc = table of contents without text (sections with id, size, amended_by)
in: query
name: view
schema:
enum:
- toc
type: string
- description: Comma-separated section ids from view=toc (at most 50) - only these sections, with text
in: query
name: sections
schema:
type: string
- description: Exact consolidated CELEX (e.g. 02008R1272-20260701) instead of as_of
in: query
name: version
schema:
type: string
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: 'cons_celex, consolidation_date, lang, title, content_hash, segmentation (anchors|headings|none), source_url, source_disclaimer, articles, annexes, images, full_text, next_version, newer_version_other_language, in_future, notice; with fallback=original and no consolidated version: type=original, is_consolidated=false, lang, as_of, title, text_field, full_text, note, possibly_amended_by, original_act, newer_version_other_language, notice (original variant)'
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid lang, as_of or fallback (invalid_fallback); reader variants - invalid_view, invalid_sections, too_many_sections, invalid_version, version_and_as_of, cons_celex_other_act
'401':
$ref: '#/components/responses/Unauthorized'
'403':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: tier_required (Professional and above or trial; body has error, code, required_tier, current_tier, notice) or organization required
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: no consolidated version (see description); may carry original_act
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: internal error
security:
- bearerAuth: []
summary: Consolidated text valid on a day
tags:
- Documents
/api/v1/documents/{celex}/consolidated/diff:
get:
description: Compares the consolidated versions valid on two days (from, to; each a date YYYY-MM-DD or a consolidated CELEX such as 02012R0965-20260222) article by article with the diff engine of the change feed. Returns the changed articles and annexes (modified/added/removed with old_text, new_text and character-level ops, amended_by_new = acts that are new in the newer version) and the stats; identical=true if nothing differs; normalized=true says the markers were removed from the comparison. A from/to consolidated CELEX is matched exactly and must belong to the same act (400 cons_celex_other_act). The modification markers (M-numbers) are removed from the COMPARISON only, because their numbers shift with every inserted amendment; the texts served by /consolidated keep them. Same 404 codes as /consolidated (also with original_act where it applies; there is no fallback=original on the diff); from after to is 400. EVERY response carries the structured "notice" (EUR-Lex disclaimer DE/EN, attribution, reuse conditions). summary=true returns only which articles and annexes changed (summary.items with id, from_id, kind, number, title, type, amended_by_new, old_bytes, new_bytes; no texts, no ops; summary.stats, summary.identical). section= (an id of view=toc) returns the diff of that one section in section (mode chars = character ops; lines = hunks of a line diff with 3 lines of context, for texts of 50 kB and more, cut at 3 MiB with truncated=true, total_hunks and total_lines giving the size of the complete diff; text = old_text / new_text of an added or removed section; none = unchanged); 404 section_not_found when neither version has the id; summary and section together are 400. Both carry a weak ETag (304 on If-None-Match).
operationId: diffConsolidatedVersions
parameters:
- description: Base act CELEX (e.g. 32012R0965)
in: path
name: celex
required: true
schema:
type: string
- description: Day YYYY-MM-DD or consolidated CELEX
in: query
name: from
required: true
schema:
type: string
- description: Day YYYY-MM-DD or consolidated CELEX (default today)
in: query
name: to
schema:
type: string
- description: Language (default en)
in: query
name: lang
schema:
enum:
- de
- en
type: string
- description: true = only the list of changed sections, no texts and no ops
in: query
name: summary
schema:
enum:
- 'true'
- 'false'
type: string
- description: Section id (see view=toc) - the diff of this one section
in: query
name: section
schema:
type: string
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: from, to (requested day + resolved version), same_version, diff {articles, annexes, stats, identical}, newer_version_other_language, notice
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: missing/invalid from, to or lang; from after to; summary and section together (summary_and_section), invalid summary or section
'401':
$ref: '#/components/responses/Unauthorized'
'403':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: tier_required (Professional and above or trial; body has error, code, required_tier, current_tier, notice) or organization required
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: no consolidated version for one of the days
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: internal error
security:
- bearerAuth: []
summary: Article-level diff of two consolidated versions
tags:
- Documents
/api/v1/documents/{celex}/versions:
get:
description: 'Returns version history with change summaries, status values and transitions. With type=consolidated it lists the EUR-Lex consolidated versions (CELEX sector 0) of the base act instead: one entry per consolidation date with the flags in_future (dated after today, e.g. CLP 2027-01-01) and is_current (the version valid today in the asked language; the current version is determined PER LANGUAGE, the latest version often exists in DE only), text_stored, content_hash and the Cellar source. newer_version_other_language (with the flag newer_version_not_available_in_de_en) reports a newer version that has no text in the asked language, also one that has no German or English text at all. 404 explains whether the act has no consolidated text at all (no_consolidated_versions) or none in the asked language (no_version_in_language, with available_languages). If the act has only its corrigendum consolidation (EUR-Lex creates the first consolidated version only in the languages a corrigendum changed, so in the other languages the Official Journal text stands until the first amendment is consolidated), the 404 body also carries original_act {celex, lang, url, text_field, reason, fallback_url, possibly_amended_by}: url (GET /documents/{celex}?full=true) serves the original act text in the asked language, which is valid only as far as EUR-Lex has consolidated amendments (corrigenda are not incorporated; possibly_amended_by lists acts that amend it and had entered into force on the day but are not consolidated). EVERY response, errors included, carries the structured "notice": the EUR-Lex disclaimer (a consolidated text is a documentation tool without legal effect; DE and EN wording), the source attribution "© European Union, https://eur-lex.europa.eu", the licence (CC BY 4.0, with the list of changes this service made), the reuse conditions of Decision 2011/833/EU (acknowledge the source, do not distort the original meaning, no liability of the Commission), a hint on special conditions of use and on third-party rights in pictures. With type=consolidated every version row also has text_languages (the languages with a stored text), and pending_amendments (with pending_reference_day and pending_note) lists the acts that amend the act and entered into force after the current version and on or before today (possibly not yet incorporated; entry into force, not the date of application).'
operationId: listDocumentVersions
parameters:
- description: CELEX number (base act, e.g. 32012R0965)
in: path
name: celex
required: true
schema:
type: string
- description: consolidated = EUR-Lex consolidated versions of the base act
in: query
name: type
schema:
enum:
- consolidated
type: string
- description: 'type=consolidated: language of the texts (default en)'
in: query
name: lang
schema:
enum:
- de
- en
type: string
responses:
'200':
content:
application/json:
schema:
additionalProperties: true
type: object
description: 'versions array + current_version + current_status; with type=consolidated: versions, current, languages_available, newer_version_other_language, notice'
'400':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: invalid type or lang
'401':
$ref: '#/components/responses/Unauthorized'
'403':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'type=consolidated only: tier_required (Professional and above or trial; body has error, code, required_tier, current_tier, notice) or organization required'
'404':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: 'document not found; with type=consolidated: no_consolidated_versions / no_version_in_language (both may carry original_act)'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
content:
application/json:
schema:
additionalProperties:
type: string
type: object
description: internal error
security:
- bearerAuth: []
summary: List document versions
tags:
- Documents
components:
responses:
Unauthorized:
content:
application/json:
schema:
properties:
error:
type: string
type: object
description: Missing, invalid, expired or revoked API token. The WWW-Authenticate header names the Bearer scheme.
TooManyRequests:
content:
application/json:
schema:
properties:
error:
type: string
type: object
description: Rate limit of the plan exceeded. The Retry-After header says when to retry.
securitySchemes:
bearerAuth:
bearerFormat: opaque API token (syl_live_...)
description: 'API token of an organisation (prefix syl_live_), sent as Authorization: Bearer <token>. Tokens are created by an organisation admin in the web app, can expire and carry scopes:
- read (default): documents, search, AI endpoints, and the GET routes of alerts and webhooks
- read:documents: the document endpoints only
- feed:read: the Atom/RSS feed /api/v1/feed/regulatory-changes
- alerts:write: create, change and delete alert subscriptions (never implied)
- webhooks:write: create, change, delete and test webhooks (never implied)
- mcp:read: the MCP server https://mcp.syllogi.eu/mcp; a token with only this scope ("MCP only") gets 403 token_scope_mcp_only on this REST API
A token without the scope a route needs gets 403 with the missing scope named in the error.'
scheme: bearer
type: http
externalDocs:
description: Developer guide with examples
url: https://www.syllogi.eu/developers