# Dutch Case Law API (Rechtspraak): court rulings by ECLI (`bosco_labs/dutch-case-law`) Actor

Dutch court rulings (uitspraken) by ECLI or by keyword, court and date: case numbers, legal area, summary (inhoudsindicatie), appeal/cassation links, law references, full text on request. Hoge Raad (Supreme Court), Raad van State, appeal and district courts. Official Rechtspraak Open Data, sourced.

- **URL**: https://apify.com/bosco_labs/dutch-case-law.md
- **Developed by:** [Bosco Labs](https://apify.com/bosco_labs) (community)
- **Categories:** AI, Business, 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 $5.00 / 1,000 court decisions

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/running/actors-in-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

## Dutch Case Law API (Rechtspraak): ECLI lookup, uitspraken

**Look up Dutch court decisions (uitspraken) by ECLI, or search them by court, legal area,
date and keywords**: court, decision and publication dates, case numbers, legal areas,
procedure, the court's own summary (inhoudsindicatie), appeal / cassation / Advocate-General
relations, referenced laws, and optionally the full text. Built for **AI agents** doing legal and
compliance research, and for people who want Rechtspraak data as clean JSON.

**Pricing (pay per event):** $0.005 per decision returned (`decision`). An unknown ECLI, bad
input or an empty search costs nothing.

### What you get

One JSON row per decision. Real output for `{"ecli": "ECLI:NL:HR:2014:952"}`, run on
2026-11-05 (summary and `references` shortened):

```json
{
  "schema_version": "1",
  "ecli": "ECLI:NL:HR:2014:952",
  "title": "ECLI:NL:HR:2014:952 Hoge Raad , 22-04-2014 / 12/05369",
  "court": "Hoge Raad",
  "court_code": "HR",
  "court_id": "http://standaarden.overheid.nl/owms/terms/Hoge_Raad_der_Nederlanden",
  "document_type": "uitspraak",
  "decision_date": "2014-04-22",
  "publication_date": "2014-04-22",
  "modified": "2025-03-22T08:54:18",
  "case_numbers": ["12/05369"],
  "seat": null,
  "legal_areas": ["Strafrecht"],
  "procedures": ["Cassatie"],
  "language": "nl",
  "summary": "Belediging. Art. 137c Sr. Onder “zich in het openbaar uitlaten” a.b.i. art. 137c, Sr, welke bepaling beoogt de openbare orde te beschermen, dient te worden verstaan “het ter kennis van het publiek brengen”. ...",
  "relations": [
    {
      "ecli": "ECLI:NL:PHR:2013:2630",
      "relation": "conclusie",
      "direction": "earlier",
      "outcome": "gevolgd",
      "label": "Conclusie: ECLI:NL:PHR:2013:2630, Gevolgd",
      "url": "https://uitspraken.rechtspraak.nl/details?id=ECLI:NL:PHR:2013:2630"
    },
    {
      "ecli": "ECLI:NL:GHAMS:2012:BY1475",
      "relation": "cassatie",
      "direction": "earlier",
      "outcome": "bekrachtiging/bevestiging",
      "label": "In cassatie op : ECLI:NL:GHAMS:2012:BY1475, Bekrachtiging/bevestiging",
      "url": "https://uitspraken.rechtspraak.nl/details?id=ECLI:NL:GHAMS:2012:BY1475"
    }
  ],
  "references": [
    {
      "type": "law",
      "label": "Wetboek van Strafrecht 137c",
      "identifier": "jci1.31:c:BWBR0001854&artikel=137c",
      "bwb_id": "BWBR0001854",
      "article": "137c",
      "url": "https://wetten.overheid.nl/jci1.31:c:BWBR0001854&artikel=137c"
    }
  ],
  "published_in": ["Rechtspraak.nl", "NJB 2014/985", "RvdW 2014/698", "NJ 2014/336 met annotatie van N. Keijzer", "SR-Updates.nl 2014-0195", "NbSr 2014/185"],
  "replaces": [],
  "replaced_by": null,
  "has_text": true,
  "text_chars": 24215,
  "text": null,
  "text_truncated": null,
  "source_url": "https://uitspraken.rechtspraak.nl/details?id=ECLI:NL:HR:2014:952",
  "data_url": "https://data.rechtspraak.nl/uitspraken/content?id=ECLI:NL:HR:2014:952",
  "warnings": [],
  "retrieved_at": "2026-11-05T22:45:19+00:00",
  "duration_seconds": 0.11
}
```

- **relations**: the decisions this one is linked to: the lower-court decision it rules on
  (`cassatie`, `hogerBeroep`), the Advocate-General's opinion (`conclusie`), later appeals;
  `direction` says whether the other decision is from an `earlier` or `later` instance and
  `outcome` what happened (`bekrachtiging/bevestiging`, `vernietiging`, `gevolgd`, `contrair`...).
- **references**: laws (BWB, linked to wetten.overheid.nl, with the article when given), case law
  (ECLI) and EU law (CELEX) the court registered. Many recent decisions have none.
- **published_in**: law reports where the decision also appears (vindplaatsen).
- **text** (with `"includeText": true`): plain text, section titles as `## 2 Beoordeling`,
  paragraph numbers kept (`3.2.1 ...`), lists as `- `, footnotes at the end; cut at
  `maxTextChars` (default 20,000) with `text_truncated` and the full length in `text_chars`.

### Input

```json
{ "query": "huurrecht", "courts": ["HR"], "dateFrom": "2024-01-01", "maxResults": 20 }
```

| Field | Meaning |
|---|---|
| `ecli` | One or more ECLIs, comma-separated: `ECLI:NL:HR:2024:123`. Links to uitspraken.rechtspraak.nl work too |
| `query` | Keywords in the title or summary; commas = OR, words in one phrase = AND. Use Dutch words |
| `courts` | ECLI court codes: `HR`, `PHR`, `RVS`, `CRVB`, `CBB`, `GHAMS`, `GHARL`, `GHDHA`, `GHSHE`, `RBAMS`, `RBDHA`... or full Dutch names |
| `legalAreas` | Rechtsgebieden: `Strafrecht`, `Civiel recht`, `Bestuursrecht`, `Belastingrecht`, `Arbeidsrecht`... or English (`criminal`, `tax`, `employment`...) |
| `dateFrom`, `dateTo` | Decision date range, `YYYY-MM-DD` |
| `documentType` | `uitspraak` (decisions) or `conclusie` (Advocate-General opinions); empty = both |
| `maxResults` | Search results to return, default 20, max 200 |
| `includeText`, `maxTextChars` | Add the decision text (default off), cap per decision (default 20,000) |

ECLIs and a search can be combined in one run (ECLI rows first). Search results come newest
published or updated first.

**How keyword search works:** Rechtspraak's official API has no full-text search. It filters by
court, legal area, decision date and document type; this Actor then matches your keywords
against each decision's title and summary as the index returns them (the summary there is cut
at about 400 characters), scanning up to 10,000 of the most recently updated matches. Words also
match inside longer words, which suits Dutch compounds (`huur` finds `verhuurder`) but can give
the odd false hit. Narrow with `courts`, `legalAreas` and dates for older or broader topics.

### Use from an AI agent (MCP)

Agents can call this Actor as a tool through the
[Apify MCP server](https://github.com/apify/apify-mcp-server). Add this server URL to your MCP
client (Claude, Cursor, VS Code, ...):

```text
https://mcp.apify.com?tools=bosco_labs/dutch-case-law
```

It loads this Actor as a tool, plus the tools that read its results (`get-actor-run`,
`get-dataset-items`). The hosted server signs you in with OAuth, or accepts your Apify token as
`Authorization: Bearer <APIFY_TOKEN>`.

Example prompt: *"Find Hoge Raad rulings on tenancy law (huurrecht) since 2024 and summarise what
each one decided, with links."* The agent passes:

```json
{ "query": "huurrecht", "courts": ["HR"], "dateFrom": "2024-01-01", "maxResults": 20 }
```

Measured on 2026-11-05 (local run): 20 decisions in 5.8 s including start-up, about 35 KB of
JSON (1.5-2.5 KB per decision without text). A single ECLI takes about 2 s; a decision's own
fetch is typically 0.1 s.

**Output for agents:** stable `snake_case` fields, ISO dates, `null` for unknown, a
rechtspraak.nl link per decision and per related decision. `warnings` says in plain words when
text was cut, an ECLI has metadata only or was replaced, or a keyword scan hit its limit. An
empty search ends with a status message saying why and what to try.

**Cost:** $0.005 per decision returned, billed to the Apify account the MCP server is signed in
with. Nothing is charged for errors, unknown ECLIs or empty searches.

### FAQ

**Where does the data come from?** Only from the Open Data service of the Dutch judiciary
(Rechtspraak, `data.rechtspraak.nl`): the ECLI index and the decision XML. Nothing is added,
rewritten or summarised; the summary is the court's own inhoudsindicatie.

**Which courts?** Everything Rechtspraak publishes: Hoge Raad and its Procureur-Generaal (PHR),
Raad van State, Centrale Raad van Beroep, College van Beroep voor het bedrijfsleven, the four
courts of appeal, the eleven district courts, the Caribbean courts and several disciplinary
tribunals, from the 1990s on. Courts publish only a selection of their decisions,
so absence from Rechtspraak does not mean a case does not exist.

**Personal data?** Courts pseudonymise decisions before publishing them: parties and other
private persons appear as `[eiser]`, `[verdachte]`, `[adres]` and so on. This Actor returns the
published text as is, adds nothing, links nothing to other sources and offers no search by
person. Do not use it to try to re-identify anyone.

**How current is it?** Live: every run reads data.rechtspraak.nl. New decisions appear the day
Rechtspraak publishes them, usually days to weeks after the decision date.

**Is this legal advice?** No. It returns published decisions and their metadata; it does not
interpret them. English translations of some landmark decisions are unofficial (the courts say
so in the summary); the Dutch text is authentic.

**Limits:** 100 ECLIs or 200 search results per run; no full-text search (see above); no filter
by procedure type (the API has none; `procedures` is in every row); text cut at `maxTextChars`.
Rechtspraak asks users to stay under 10 requests per second, so this Actor reads one decision at
a time.

Content: decisions of the Dutch courts via Rechtspraak Open Data, https://www.rechtspraak.nl/uitspraken/open-data
(court decisions carry no copyright, art. 11 Auteurswet). Text is converted from XML to plain
text and long texts are cut where `maxTextChars` says; nothing else is changed.

# Actor input Schema

## `ecli` (type: `string`):

One or more Dutch ECLIs, separated by commas or spaces, e.g. "ECLI:NL:HR:2024:123" or "ECLI:NL:HR:2024:123, ECLI:NL:RVS:2024:1000" (max 100). Lower case and uitspraken.rechtspraak.nl links also work. One row per ECLI; an unknown ECLI fails at no charge. Empty = search with the fields below (both can be combined: ECLI rows come first).

## `query` (type: `string`):

Words to find in the decision's title and summary (inhoudsindicatie), case-insensitive. Commas separate alternatives, words within one alternative must all appear: "huur, pacht" = huur OR pacht; "ontslag op staande voet" = all four words. Summaries are in Dutch, so use Dutch words. The official API has no full-text search: this filters the newest-updated decisions that match the other filters (up to 10,000 scanned). Empty = no keyword filter.

## `courts` (type: `array`):

Court codes as used in the ECLI, e.g. \["HR"] for the Hoge Raad (Supreme Court); others: PHR (Procureur-Generaal/AG opinions), RVS (Raad van State), CRVB, CBB, GHAMS, GHARL, GHDHA, GHSHE (courts of appeal), RBAMS, RBDHA, RBROT, RBMNE ... (district courts). Full Dutch names also work. Empty = all courts.

## `legalAreas` (type: `array`):

Rechtsgebied names, e.g. \["Strafrecht"], \["Belastingrecht", "Arbeidsrecht"]; English also works: criminal, civil, administrative, tax, employment, immigration, insolvency, family, competition, environmental. A main area includes its sub-areas. Empty = all areas.

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

Earliest decision date (uitspraakdatum), YYYY-MM-DD, e.g. "2024-01-01". Empty = no lower limit (to today if dateTo is empty).

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

Latest decision date, inclusive, YYYY-MM-DD, e.g. "2024-12-31". Empty = today when dateFrom is set, else no limit.

## `documentType` (type: `string`):

"uitspraak" = court decisions only, "conclusie" = opinions of the Advocate-General at the Hoge Raad only. Empty = both.

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

Most decisions to return from a search, most recently published or updated first, e.g. 20 (default). One charge per decision returned.

## `includeText` (type: `boolean`):

true = add the full decision as plain text (section headings as '## ', numbered paragraphs kept), cut at maxTextChars. Default false: metadata and summary only (small rows). Same price. E.g. `true`.

## `maxTextChars` (type: `integer`):

With includeText: cap on the text per decision in characters, e.g. 20000 (default). Longer text is cut and flagged (text_truncated, text_chars gives the full length).

## Actor input object example

```json
{
  "ecli": "ECLI:NL:HR:2024:123",
  "maxResults": 20,
  "includeText": false,
  "maxTextChars": 20000
}
```

# 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 = {
    "ecli": "ECLI:NL:HR:2024:123"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bosco_labs/dutch-case-law").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 = { "ecli": "ECLI:NL:HR:2024:123" }

# Run the Actor and wait for it to finish
run = client.actor("bosco_labs/dutch-case-law").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 '{
  "ecli": "ECLI:NL:HR:2024:123"
}' |
apify call bosco_labs/dutch-case-law --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bosco_labs/dutch-case-law"
        }
    }
}
```

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/U1dZN9ibgwQgxedav/builds/nnWOSh5sgMiT5eTYm/openapi.json
