EUR-Lex Scraper - EU Regulations, Directives & Case Law
Pricing
Pay per event
EUR-Lex Scraper - EU Regulations, Directives & Case Law
Scrape EUR-Lex for EU legislation: regulations, directives, decisions, judgments, treaties. Returns CELEX IDs, ELI URIs, EuroVoc subjects, amendment tree, legal basis, national transpositions, and full-text URLs. Built for LegalTech, compliance teams, and AI training pipelines.
Pricing
Pay per event
Rating
0.0
(0)
Developer
BowTiedRaccoon
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Share
Extract EU legislative documents from EUR-Lex — the official database of European Union law. Returns structured records for regulations, directives, decisions, judgments, treaties, and proposals with CELEX IDs, ELI URIs, EuroVoc subject classifications, amendment trees, legal basis references, national transpositions, and full-text/PDF/XML URLs.
Built for LegalTech platforms, compliance teams, regulatory researchers, and AI training pipelines that need structured access to EU legal data at scale.
What It Does
The scraper queries the EUR-Lex SPARQL endpoint (publications.europa.eu/webapi/rdf/sparql) using the EU Cellar Common Data Model. Six query modes let you target exactly the documents you need:
| Mode | Use case |
|---|---|
| By Keyword | Full-text search across legislation titles |
| By CELEX ID | Fetch a single document by its canonical EU identifier |
| By EuroVoc Subject | All legislation tagged with a specific EuroVoc concept |
| By Date Range | All acts published between two dates |
| By Document Type | Filter by regulation, directive, decision, judgment, etc. |
| Recent Acts | Legislation published in the last N days |
Output Fields
| Field | Description |
|---|---|
celex_id | CELEX number — canonical EU document identifier (e.g. 32024R1689) |
eli_uri | European Legislation Identifier URI |
cellar_uri | Cellar repository URI for this work |
document_type | Resource type code (REG, DIR, DEC, JU, OPIN, etc.) |
title | Full official title in English |
publication_date | Date of publication in the Official Journal (ISO 8601) |
effective_date | Date the act enters into force (ISO 8601) |
end_validity_date | Date the act ceases to be valid / is repealed (ISO 8601) |
subject_matter | EuroVoc subject labels (comma-separated) |
legal_basis | CELEX IDs of treaty articles used as legal basis |
amends | CELEX IDs of acts this document amends |
amended_by | CELEX IDs of acts that amend this document |
national_transpositions | CELEX IDs of national implementing measures (optional, slower) |
language_versions | ISO language codes available in EUR-Lex (e.g. en,de,fr) |
full_text_url | EUR-Lex HTML full-text URL |
pdf_url | EUR-Lex PDF URL |
xml_url | EUR-Lex XML (Formex 4) URL |
Input Configuration
Required
- Query Mode (
mode) — One of:by_keyword,by_celex_id,by_eurovoc_subject,by_date_range,by_document_type,recent_acts - Max Items (
maxItems) — Maximum number of records to return (1–50,000)
Optional
- Search Query / CELEX ID / EuroVoc Subject (
query) — Keyword(s) forby_keyword; CELEX number forby_celex_id; EuroVoc label forby_eurovoc_subject - Document Type Filter (
documentType) — Narrow results to: Regulation, Directive, Decision, Opinion, Judgment, Proposal (Regulation), Proposal (Directive), Treaty - Date From / Date To (
dateFrom,dateTo) — Publication date range forby_date_rangemode (format: YYYY-MM-DD) - Lookback Days (
lookbackDays) — Days to look back forrecent_actsmode (1–365, default: 30) - Include Amendment Tree (
includeAmendments) — Resolveamends/amended_byrelationships (default: true) - Include National Transpositions (
includeTranspositions) — Fetch national implementing measures — one extra SPARQL call per document, slower (default: false)
Example Inputs
Find AI Act and related regulations:
{"mode": "by_keyword","query": "artificial intelligence","documentType": "REG","maxItems": 20}
Fetch the AI Act by CELEX ID:
{"mode": "by_celex_id","query": "32024R1689","maxItems": 1}
Recent regulations from the last 30 days:
{"mode": "recent_acts","lookbackDays": 30,"documentType": "REG","maxItems": 100}
All data governance legislation:
{"mode": "by_date_range","dateFrom": "2020-01-01","dateTo": "2025-12-31","query": "data governance","maxItems": 500}
Performance Notes
- The SPARQL endpoint is open — no proxy or authentication required.
- Each document requires two SPARQL calls (discovery + enrichment). National transpositions add a third call per document.
- For large result sets (>1,000), allow sufficient timeout. The actor default is 4 hours.
- Rate limiting is applied automatically between queries to respect the endpoint.
Data Source
All data is sourced directly from the EUR-Lex SPARQL endpoint — the authoritative EU Cellar linked data repository maintained by the Publications Office of the European Union. Data is structured using the Common Data Model (CDM) ontology.
EUR-Lex is an official EU website; its data is in the public domain under the EUR-Lex copyright notice.