Discover/eur-lex.europa.eu API
live

eur-lex.europa.eu APIeur-lex.europa.eu

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

Endpoints
7
Updated
10d ago
Try it
Page number
Sort field: date or celex
Filter by document year (e.g. 2016)
Sort order: desc or asc
Search keywords to match in document titles
Filter by document number
Filter by document type: REG, DIR, DEC
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.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/fba146da-e9c1-44ce-a43f-e7ecc1dceebe/search_documents?year=2016&query=data+protection&doc_type=REG' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalclick to expand

Search for EU legal documents using keywords, year, document number, or type. Returns paginated results from the Cellar SPARQL endpoint.

Input
ParamTypeDescription
pagestringPage number
sortstringSort field: date or celex
yearstringFilter by document year (e.g. 2016)
orderstringSort order: desc or asc
querystringSearch keywords to match in document titles
numberstringFilter by document number
doc_typestringFilter by document type: REG, DIR, DEC
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": "2016-04-27",
          "link": "https://eur-lex.europa.eu/legal-content/EN/ALL/?uri=CELEX:32016R0679",
          "type": "REG",
          "celex": "32016R0679",
          "title": "Regulation (EU) 2016/679 of the European Parliament and of the Council...",
          "author": "CONSIL",
          "status": "Not in force"
        }
      ],
      "page_size": 20
    },
    "status": "success"
  }
}

About the eur-lex.europa.eu 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.

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.

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,000250 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 →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.
EUR-Lex API – EU Legal Documents & OJ Data · Parse