# EUR-Lex Scraper – EU Legislation API (Regulations & Directives) (`andreaajohansen/eur-lex-cellar`) Actor

Search and download EU law from EUR-Lex via the official CELLAR API: regulations, directives and decisions with CELEX number, title, dates, in-force status, EuroVoc, ELI, PDF links and optional full text in 24 languages. $1 per 1,000 acts.

- **URL**: https://apify.com/andreaajohansen/eur-lex-cellar.md
- **Developed by:** [Andre Aa Johansen](https://apify.com/andreaajohansen) (community)
- **Categories:** Business, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**EUR-Lex Scraper** lets you search and **download EU legislation as JSON, CSV or Excel**: regulations, directives, decisions and recommendations, including implementing and delegated acts. Each row has the **CELEX number**, title, document type, adoption, publication and entry-into-force dates, **in-force status**, EuroVoc subjects, ELI, EUR-Lex link and **PDF/HTML links**, plus optional **full text** in any of the 24 official EU languages. It is an **EU law API** built on the official Publications Office CELLAR database behind EUR-Lex, so there is no HTML scraping and no login.

**Who it's for:** compliance and regulatory-monitoring teams, legal-tech and RAG/LLM builders, law firms, public-affairs consultancies, academics and journalists.

### How to download EU legislation in 4 steps

1. Click **Try for free** (or **Start**). The prefilled input finds every EU act with "artificial intelligence" in its title in a few seconds.
2. Enter your own keywords or CELEX numbers, and filter by document type, date range, language and in-force status.
3. Run it and open the **Output** tab. Turn on **Include full text** if you need the text itself.
4. Download as **JSON, CSV, Excel or HTML**, or schedule it weekly to monitor new EU rules on your topic.

### About the data source

Search **EU legislation** (regulations, directives, decisions and recommendations, including implementing and delegated acts) and export clean, structured metadata to JSON, CSV, Excel or your own API.

This Actor gets everything from the **official Publications Office of the EU CELLAR API**, the database behind EUR-Lex: the public SPARQL endpoint for metadata and the CELLAR REST service for documents. There's no HTML scraping, no login and no API key, so results are stable and complete.

> Source: EUR-Lex / Publications Office of the European Union. Reuse is authorised under Commission Decision 2011/833/EU, and the source is credited in every row. This is an independent tool and is not affiliated with or endorsed by the European Union or the Publications Office.

### What you can do with it

- **Search by keyword** in document titles, in any of the 24 official EU languages ("artificial intelligence", "Datenschutz", "déforestation").
- **Look up CELEX numbers** in bulk: `32016R0679` (GDPR), `32024R1689` (AI Act), `32019L0790` (Copyright Directive).
- **Filter by document type**: regulation, directive, decision, recommendation. Implementing and delegated acts are included.
- **Filter by date range** (document / adoption date) and **in-force status** (in force, no longer in force, any).
- **Get the data you need**: CELEX, title, type, document date, Official Journal publication date, entry-into-force date(s), end of validity, in-force flag, authors (institutions), **EuroVoc subject descriptors**, **ELI**, EUR-Lex link, CELLAR link, **PDF** and **HTML** download links.
- **Optional full text**: add the plain text of each document (from the official HTML version), with a character limit you set.

### Use cases

- **Regulatory monitoring and compliance**: schedule a daily or weekly run for new regulations and directives on your topic (AI, ESG, sanctions, product safety, financial services) and send it to Slack, email or a spreadsheet.
- **Legal research and legal tech**: build datasets of EU acts with EuroVoc tags for search, classification or RAG/LLM pipelines.
- **Public affairs and consultancies**: track which acts entered into force or expired in a period.
- **Academia and journalism**: count and compare EU lawmaking by year, type, institution or subject.

### Input

| Field | Example | Notes |
| --- | --- | --- |
| Search query | `artificial intelligence` | All words must appear in the title, in the chosen language |
| CELEX numbers | `32016R0679`, `32019L0790` | Exact lookups |
| Document types | `regulation`, `directive`, `decision`, `recommendation` | Empty = all legislation types |
| Date from / to | `2024`, `2024-06`, `2024-06-30` | Document date |
| In-force status | `any`, `in_force`, `not_in_force` | From the EUR-Lex in-force flag |
| Language | `EN`, `DE`, `FR`, ... (24) | Titles, EuroVoc, authors, links, full text |
| Max results | `100` | Newest first |
| Include full text | `false` | Plain text from the official HTML version |
| Exclude corrigenda | `true` | Skips correction notices |

Example: AI rules currently in force

```json
{
  "searchQuery": "artificial intelligence",
  "documentTypes": ["regulation", "directive", "decision"],
  "inForceStatus": "in_force",
  "language": "EN",
  "maxResults": 100
}
```

Example: every directive adopted in 2025

```json
{ "documentTypes": ["directive"], "dateFrom": "2025-01-01", "dateTo": "2025-12-31", "maxResults": 500 }
```

Example: specific documents in German, with full text

```json
{ "celexNumbers": ["32016R0679", "32019L0790"], "language": "DE", "includeFullText": true }
```

### Sample output from a real run

First 5 rows from a run with the prefilled input on 30 November 2026 (selected columns; every row has many more fields, shown in the JSON example below):

| `celex` | `title` | `documentType` | `documentDate` | `inForce` |
|---|---|---|---|---|
| 32026R1744 | Regulation (EU) 2026/1744 of the European Parliament and of the Cou... | regulation | 2026-07-08 | True |
| 32026D1080 | Council Decision (EU) 2026/1080 of 21 April 2026 on the conclusion,... | decision | 2026-04-21 | True |
| 32025D2539 | Council Decision (CFSP) 2025/2539 of 11 December 2025 amending Deci... | decision | 2025-12-11 | True |
| 32025D2350 | Council Decision (EU) 2025/2350 of 13 November 2025 on the position... | decision | 2025-11-13 | True |
| 32025R0454 | Commission Implementing Regulation (EU) 2025/454 of 7 March 2025 la... | regulation | 2025-03-07 | True |

You can download the dataset in various formats such as **JSON, CSV, Excel, XML or HTML**, or read it through the Apify API.

### Output example

```json
{
  "celex": "32024R1689",
  "title": "Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence ... (Artificial Intelligence Act) (Text with EEA relevance)",
  "documentType": "regulation",
  "documentTypeLabel": "Regulation",
  "resourceTypeCode": "REG",
  "documentDate": "2024-06-13",
  "publicationDate": "2024-07-12",
  "entryIntoForceDate": "2024-08-01",
  "entryIntoForceDates": ["2024-08-01", "2025-02-02", "2025-08-02", "2026-08-02", "2027-08-02"],
  "endOfValidityDate": null,
  "inForce": true,
  "authors": ["Council of the European Union", "European Parliament"],
  "eurovocDescriptors": ["artificial intelligence", "harmonisation of standards", "innovation", "market approval", "new technology", "single market", "smart technology"],
  "eliUrl": "http://data.europa.eu/eli/reg/2024/1689/oj",
  "eurLexUrl": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689",
  "cellarUrl": "https://publications.europa.eu/resource/cellar/dc8116a1-3fe6-11ef-865a-01aa75ed71a1",
  "pdfUrl": "https://publications.europa.eu/resource/cellar/dc8116a1-3fe6-11ef-865a-01aa75ed71a1.0006.01/DOC_1",
  "htmlUrl": "https://publications.europa.eu/resource/cellar/dc8116a1-3fe6-11ef-865a-01aa75ed71a1.0006.03/DOC_1",
  "language": "EN",
  "source": "EUR-Lex / Publications Office of the European Union (CELLAR). Reused under Commission Decision 2011/833/EU.",
  "retrievedAt": "2026-11-25T15:14:47.518Z"
}
```

With **Include full text** turned on, every row also has `fullText`, `fullTextLength` and `fullTextTruncated`.

`endOfValidityDate` is `null` when the act has no end date (EUR-Lex shows 31/12/9999). `entryIntoForceDates` lists every date for acts that apply in stages, like the AI Act.

### How much does it cost?

Pay per result: **$0.01 per run + $1.00 per 1,000 documents**. The prefilled run costs about **$0.02**, and a 100-document search about $0.11. There is no subscription and no platform fee on top, and you only pay for rows you get.

### Speed

About 15 documents per second for metadata (700 documents in under a minute). Full text is slower because each document is downloaded one at a time.

### Tips

- CELEX numbers start with the sector: `3` = legislation, then the year and a letter: `R` regulation, `L` directive, `D` decision, `H` recommendation. Example: `32016R0679`.
- The keyword search matches whole words in titles. For broad topics, also try the EuroVoc term ("personal data", "deforestation").
- For monitoring, schedule the Actor with `dateFrom` set to a recent date and connect it to Google Sheets, Slack, Zapier or Make.

### FAQ

**Is this legal?** Yes. The Publications Office makes CELLAR public for reuse, including commercial use, under Decision 2011/833/EU, as long as the source is credited and the content isn't distorted. This Actor never touches eur-lex.europa.eu; EUR-Lex links are only included for your convenience.

**Does it include national law or case law?** No. It covers EU-level legislation only. Court judgments are intentionally left out because they can contain names of private individuals.

**Something missing or wrong?** Open an issue on the Issues tab and I'll usually reply within a day.

**How do I download all EU legislation as JSON?** Leave the keyword empty, pick the document types and a date range (for example one year at a time), set **Max results** high enough and export the dataset as JSON.

**Can I use it for RAG or LLM pipelines?** Yes. Turn on **Include full text** and you get plain text plus EuroVoc tags for each act.

**Can I get it through an API?** Yes. Use the API tab, or schedule runs and connect them to Google Sheets, Slack, webhooks, Zapier or Make.

### Related Actors

More official open-data Actors from the same developer, all pay-per-result with no login:

- [Norway Restaurant Inspection Scraper – Mattilsynet Smilefjes](https://apify.com/andreaajohansen/norway-restaurant-hygiene): Official food-safety inspection results (smilefjes) for every restaurant in Norway.
- [Norway Fish Farm & Aquaculture License Scraper](https://apify.com/andreaajohansen/norway-aquaculture-register): Every Norwegian salmon and fish farm licence and site from the official aquaculture register.
- [New Business Filings Scraper – Daily New LLC Leads](https://apify.com/andreaajohansen/us-new-business-filings): Daily list of newly registered US LLCs and corporations from official state data.
- [Wayback Machine Scraper – Archive.org Snapshots & Search](https://apify.com/andreaajohansen/internet-archive-wayback): Every Wayback Machine snapshot of a URL or domain, plus archive.org search.
- [Firefox Extensions Scraper – AMO Users, Ratings & Reviews](https://apify.com/andreaajohansen/firefox-addons-amo): Firefox extensions from addons.mozilla.org: users, ratings, reviews, versions, permissions.

# Actor input Schema

## `searchQuery` (type: `string`):

Words that must all appear in the document title, in the chosen language. Example: artificial intelligence, data protection, deforestation. Leave empty to list documents by the other filters.

## `celexNumbers` (type: `array`):

Look up specific acts by CELEX number, e.g. 32016R0679 (GDPR), 32024R1689 (AI Act), 32019L0790 (Copyright Directive). Other filters still apply.

## `documentTypes` (type: `array`):

Leave empty for all legislation types (regulations, directives, decisions, recommendations).

## `dateFrom` (type: `string`):

Earliest document (adoption) date: 2024, 2024-06 or 2024-06-30.

## `dateTo` (type: `string`):

Latest document date: 2025, 2025-12 or 2025-12-31.

## `inForceStatus` (type: `string`):

Every act carries an in-force flag from EUR-Lex.

## `language` (type: `string`):

Language for titles, EuroVoc descriptors, author names, PDF/HTML links and full text. The keyword search also uses this language.

## `maxResults` (type: `integer`):

Maximum number of documents to save (newest first).

## `includeFullText` (type: `boolean`):

Download the HTML version from CELLAR and add the plain text. Slower; not all documents have an HTML version.

## `maxFullTextChars` (type: `integer`):

Full text longer than this is cut (fullTextTruncated = true).

## `excludeCorrigenda` (type: `boolean`):

Skip correction notices (CELEX ending in R(01), R(02) ...).

## Actor input object example

```json
{
  "searchQuery": "artificial intelligence",
  "inForceStatus": "any",
  "language": "EN",
  "maxResults": 50,
  "includeFullText": false,
  "maxFullTextChars": 100000,
  "excludeCorrigenda": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "artificial intelligence",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("andreaajohansen/eur-lex-cellar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": "artificial intelligence",
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("andreaajohansen/eur-lex-cellar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "artificial intelligence",
  "maxResults": 50
}' |
apify call andreaajohansen/eur-lex-cellar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andreaajohansen/eur-lex-cellar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Qazk73wHnnekSVQ24/builds/GQ3g52HXfjYHQtva3/openapi.json
