Discover/Europa API
live

Europa APIeur-lex.europa.eu

Access EU regulations, directives, decisions, full text, metadata, procedure history, and Official Journal publications via the EUR-Lex API.

Endpoint health
verified 6d ago
get_document_text_html
get_document_metadata
get_document_procedure
search_documents
get_national_transposition
7/7 passing latest checkself-healing
Endpoints
7
Updated
21d ago

What is the Europa API?

This API exposes 7 endpoints covering the full EUR-Lex corpus of EU legal documents, from metadata retrieval to full HTML text and national transposition measures. Use search_documents to filter regulations, directives, and decisions by keyword, year, CELEX number, or document type, and use get_document_metadata to pull structured fields including ELI URI, in-force status, authors, and all literal properties stored in the Cellar linked-data repository.

Try it
Page number (20 results per page)
Sort field
Filter by document year (e.g. 2024)
Sort order
Search keywords to match in document titles (case-insensitive substring match). Works best combined with year or doc_type filters.
Filter by document number
Filter by document type code
api.parse.bot/scraper/fba146da-e9c1-44ce-a43f-e7ecc1dceebe/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/fba146da-e9c1-44ce-a43f-e7ecc1dceebe/search_documents?page=1&sort=celex&year=2024&order=desc&query=data+protection&doc_type=REG' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace eur-lex-europa-eu-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: EUR-Lex EU Law API — search, inspect, and navigate EU legislation."""
from parse_apis.eur_lex_eu_law_api import EurLex, DocType, SortField, Sort, DocumentNotFound

client = EurLex()

# Search for EU regulations from 2024 sorted by date descending
for doc in client.documents.search(year="2024", doc_type=DocType.REG, sort=SortField.DATE, order=Sort.DESC, limit=3):
    print(doc.celex, doc.title[:80], doc.date)

# Drill into a specific document by CELEX number
gdpr = client.documents.get(celex="32016R0679")
print(gdpr.title, gdpr.type, gdpr.authors)

# Access the document's sub-resources: summary, procedure, transposition
summary = gdpr.summary.get()
print(summary.summary_text[:200] if summary.summary_text else "No summary")

proc = gdpr.procedure.get()
for event in proc.procedure_timeline:
    print(event.date, event.event)

# Typed error handling for a non-existent document
try:
    client.documents.get(celex="39999X0000")
except DocumentNotFound as exc:
    print(f"Not found: {exc.celex}")

# Get Official Journal acts for a specific date
oj_day = client.officialjournaldays.get(date="2024-01-15")
for act in oj_day.acts:
    print(act.celex, act.type)

print("exercised: documents.search / documents.get / summary.get / procedure.get / officialjournaldays.get")
All endpoints · 7 totalmissing one? ·

Search for EU legal documents using keywords, year, document number, or type. Queries the Cellar SPARQL endpoint. Text search (query parameter) performs a case-insensitive title match and works best combined with year or doc_type filters; broad text-only queries may time out upstream. Returns paginated results of 20 per page.

Input
ParamTypeDescription
pageintegerPage number (20 results per page)
sortstringSort field
yearstringFilter by document year (e.g. 2024)
orderstringSort order
querystringSearch keywords to match in document titles (case-insensitive substring match). Works best combined with year or doc_type filters.
numberstringFilter by document number
doc_typestringFilter by document type code
Response
{
  "type": "object",
  "fields": {
    "page": "integer current page number",
    "results": "array of document objects with celex, title, date, type, status, author, link",
    "page_size": "integer results per page (20)"
  },
  "sample": {
    "data": {
      "page": 1,
      "results": [
        {
          "date": "2025-12-05",
          "link": "https://eur-lex.europa.eu/legal-content/EN/ALL/?uri=CELEX:32024R1679R(01)",
          "type": "REG",
          "celex": "32024R1679R(01)",
          "title": "Corrigendum to Regulation (EU) 2024/1679...",
          "author": "CONSIL",
          "status": ""
        }
      ],
      "page_size": 20
    },
    "status": "success"
  }
}

About the Europa API

Document Search and Metadata

The search_documents endpoint accepts keyword queries, a year filter, a number filter, and a doc_type parameter (REG, DIR, or DEC). Results are paginated at 20 items per page and can be sorted by date or celex in ascending or descending order. Each result object carries the document's celex identifier, title, date, type, status, author, and a direct link. For a specific document, get_document_metadata returns the full property set: eli (European Legislation Identifier URI), in_force flag, date_document, date_entry_into_force, authors array, and an all_properties object with every literal property available for that work.

Full Text, Summaries, and Official Journal

get_document_text_html returns the complete HTML body of a document in full_text_html alongside an articles array where each entry has id, title, and content. Article extraction works best for OJ-published legislative acts; non-legislative documents may return full text without structured article segmentation. get_document_summary delivers the official plain-language summary in both summary_html and summary_text fields — both return null when no summary exists. get_official_journal_daily accepts a date in DDMMYYYY or YYYY-MM-DD format (defaults to today) and returns the full list of acts published that day, each with celex, title, type, and link.

Procedure History and National Transposition

get_document_procedure reconstructs the legislative lifecycle for a document: the procedure_timeline array lists dated events (signature, entry into force, etc.) while related_documents captures legal basis, amending acts, and repeals with their relationship type. For directives specifically, get_national_transposition returns an array of country objects, each with a measures array listing the national implementing measures with title and link to the source text.

Reliability & maintenanceVerified

The Europa API is a managed, monitored endpoint for eur-lex.europa.eu — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when eur-lex.europa.eu changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official eur-lex.europa.eu API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
6d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitor newly published EU regulations and directives by querying get_official_journal_daily for each trading day.
  • Build a compliance tracker that flags documents where in_force is 1 and date_entry_into_force falls within a target window.
  • Extract structured article text from GDPR or other regulations using get_document_text_html to power legal search tools.
  • Map directive transposition status across EU member states using get_national_transposition for a given directive CELEX number.
  • Construct a legislative history graph by walking related_documents returned by get_document_procedure across amending and repealing acts.
  • Generate plain-language policy briefings using summary_text from get_document_summary for a curated set of CELEX identifiers.
  • Filter all decisions from a specific year by combining doc_type=DEC and a year parameter in search_documents.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does EUR-Lex have an official developer API?+
Yes. EUR-Lex exposes a public SPARQL endpoint for the Cellar repository and a web services interface documented at https://eur-lex.europa.eu/content/tools/webservices/. The Parse API surfaces that data through structured REST endpoints, so you do not need to write SPARQL queries directly.
What does `get_document_metadata` return beyond the document title?+
It returns the eli URI, the type code, the in_force flag (1 or 0), date_document, date_entry_into_force (which may be a single date or an array), an authors array of corporate body codes, and an all_properties object containing every literal property recorded for that work in the Cellar repository.
Does article extraction work for all document types?+
Structured article extraction in get_document_text_html works best for OJ-published legislative documents such as regulations and directives. Non-legislative documents return content in full_text_html but the articles array may be empty. If article-level parsing for non-legislative document types is important, you can fork the API on Parse and revise the extraction logic for those cases.
Can I search documents in languages other than English?+
Currently the API returns titles and metadata in English. EUR-Lex holds documents in all 24 official EU languages, but multilingual title retrieval is not exposed by the current endpoints. You can fork the API on Parse and revise it to add a language parameter targeting other language versions.
Is there a way to retrieve the consolidated (amended) version of a regulation rather than the original?+
The current endpoints return the original published text and procedure-related documents (amendments and repeals) via get_document_procedure, but consolidated text retrieval is not a dedicated endpoint. EUR-Lex does publish consolidated versions under separate CELEX identifiers. You can fork the API on Parse and add an endpoint that targets consolidated CELEX numbers directly.
Page content last updated . Spec covers 7 endpoints from eur-lex.europa.eu.
Related APIs in Government PublicSee all →
boe.es API
Access Spain's official government publications to retrieve daily legislative summaries, browse consolidated laws, and view detailed legal documents with their full text and metadata. Stay informed about new regulations and find specific legislation through comprehensive search and retrieval of official state gazette content.
legifrance.gouv.fr API
Search and retrieve official French legal documents, laws, and unclaimed estate notices from the Journal Officiel (JORF), including the ability to browse the latest published issues. Find specific legal texts and succession notices to stay informed about French legislation and inheritance announcements.
artificialintelligenceact.eu API
Access and search the complete EU AI Act legislation, including specific articles, recitals, annexes, and chapters, while viewing implementation timelines and related regulatory details. Quickly find relevant legal sections through keyword search or browse the full text organized by structure.
njt.jog.gov.hu API
Search and retrieve Hungarian laws, decrees, and legal documents from the National Legislation Database to find current legislation and legal regulations. Quickly look up specific laws, get detailed document information, and discover relevant legal acts through intelligent search suggestions.
examplecourt.gov API
Search and retrieve court judgments, case details, and legal metadata from a national court reporting portal, with support for advanced filtering by court and case category. Access complete case information including full text and browse paginated results to find relevant legal precedents.
diariodarepublica.pt API
Search and retrieve official Portuguese legislation, decrees, and resolutions published in the Diário da República, organized by publication series and date. Browse acts from both Serie I and Serie II to stay updated on the latest government publications and legal announcements.
normattiva.it API
Search and retrieve Italian laws and legislative acts from the official Normattiva portal with advanced filtering, full text access with preserved article structure, and autocomplete suggestions. Quickly find specific legislation, browse complete legal texts, and explore Italian law with intelligent search capabilities.
canlii.org API
Access Canadian legal information from CanLII.org. Discover jurisdictions and databases, search case law and legislation across all provinces and territories, and retrieve full document text and metadata.