EUR-Lex Scraper - EU Regulations, Directives & Case Law avatar

EUR-Lex Scraper - EU Regulations, Directives & Case Law

Pricing

Pay per event

Go to Apify Store
EUR-Lex Scraper - EU Regulations, Directives & Case Law

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

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

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:

ModeUse case
By KeywordFull-text search across legislation titles
By CELEX IDFetch a single document by its canonical EU identifier
By EuroVoc SubjectAll legislation tagged with a specific EuroVoc concept
By Date RangeAll acts published between two dates
By Document TypeFilter by regulation, directive, decision, judgment, etc.
Recent ActsLegislation published in the last N days

Output Fields

FieldDescription
celex_idCELEX number — canonical EU document identifier (e.g. 32024R1689)
eli_uriEuropean Legislation Identifier URI
cellar_uriCellar repository URI for this work
document_typeResource type code (REG, DIR, DEC, JU, OPIN, etc.)
titleFull official title in English
publication_dateDate of publication in the Official Journal (ISO 8601)
effective_dateDate the act enters into force (ISO 8601)
end_validity_dateDate the act ceases to be valid / is repealed (ISO 8601)
subject_matterEuroVoc subject labels (comma-separated)
legal_basisCELEX IDs of treaty articles used as legal basis
amendsCELEX IDs of acts this document amends
amended_byCELEX IDs of acts that amend this document
national_transpositionsCELEX IDs of national implementing measures (optional, slower)
language_versionsISO language codes available in EUR-Lex (e.g. en,de,fr)
full_text_urlEUR-Lex HTML full-text URL
pdf_urlEUR-Lex PDF URL
xml_urlEUR-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) for by_keyword; CELEX number for by_celex_id; EuroVoc label for by_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 for by_date_range mode (format: YYYY-MM-DD)
  • Lookback Days (lookbackDays) — Days to look back for recent_acts mode (1–365, default: 30)
  • Include Amendment Tree (includeAmendments) — Resolve amends / amended_by relationships (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.