# UK & Dutch Law Lookup API: article text by date, in force (`bosco_labs/national-law-lookup`) Actor

The text of a UK section or Dutch article as in force today (or on a date), whether it is in force and what changed it. Ask by citation: "Companies Act 2006 s 172", "BW 7:658", "artikel 13 Wet Vpb 1969". Official legislation.gov.uk and Dutch BWB data with a source link per row.

- **URL**: https://apify.com/bosco_labs/national-law-lookup.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 act lookups

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

## UK & Dutch Law Lookup API: article text by date, in force

**One call answers "what does section 172 of the Companies Act 2006 say?" or "wat zegt artikel
7:658 BW?"**: the section or article as plain text from the official consolidated version in
force today (or on any date), whether it is in force, and what changed it. Built for **AI agents**
doing legal and compliance work, and for people who want a sourced answer without XML.

**Pricing (pay per event):** $0.01 per article or act returned (`act-lookup`). A citation that
can't be read, or an article that doesn't exist, fails in seconds and costs nothing.

Same output vocabulary as our [EU Law Lookup](https://apify.com/bosco_labs/eu-law-lookup), so an
agent reads EU, UK and Dutch law the same way.

### What you get

One JSON row per requested section or article (or one row for the act). Real output for
`{"query": "Companies Act 2006 s 172"}`, run on 2026-11-05 (`long_title` shortened):

```json
{
  "schema_version": "1",
  "query": "Companies Act 2006 s 172",
  "jurisdiction": "UK",
  "act_id": "ukpga/2006/46",
  "eli": "http://www.legislation.gov.uk/id/ukpga/2006/46",
  "title": "Companies Act 2006",
  "long_title": "An Act to reform company law and restate the greater part of the enactments relating to companies; ...",
  "act_type": "UK Public General Act",
  "act_type_code": "ukpga",
  "date_document": "2006-11-08",
  "date_publication": null,
  "official_publication": "2006 c. 46",
  "date_entry_into_force": "2007-10-01",
  "date_end_of_validity": null,
  "in_force": true,
  "act_url": "https://www.legislation.gov.uk/id/ukpga/2006/46",
  "language": "EN",
  "as_of": null,
  "latest_consolidated_version_date": "2026-07-16",
  "text_version": "consolidated",
  "consolidated_version_date": "2026-07-16",
  "text_notice": "Revised (consolidated) text prepared by the legislation.gov.uk editorial team; changes listed in pending_changes are not yet applied to it. Contains public sector information licensed under the Open Government Licence v3.0. Source: legislation.gov.uk (The National Archives), © Crown and database right.",
  "source_url": "https://www.legislation.gov.uk/ukpga/2006/46/section/172",
  "data_url": "https://www.legislation.gov.uk/ukpga/2006/46/section/172/data.xml",
  "article": "172",
  "paragraph": null,
  "article_title": "Duty to promote the success of the company",
  "article_amended_by": [],
  "pending_changes": [],
  "article_text": "(1) A director of a company must act in the way he considers, in good faith, would be most likely to promote the success of the company for the benefit of its members as a whole, and in doing so have regard (amongst other matters) to—\n(a) the likely consequences of any decision in the long term,\n(b) the interests of the company's employees,\n(c) the need to foster the company's business relationships with suppliers, customers and others,\n(d) the impact of the company's operations on the community and the environment,\n(e) the desirability of the company maintaining a reputation for high standards of business conduct, and\n(f) the need to act fairly as between members of the company.\n(2) Where or to the extent that the purposes of the company consist of or include purposes other than the benefit of its members, subsection (1) has effect as if the reference to promoting the success of the company for the benefit of its members were to achieving those purposes.\n(3) The duty imposed by this section has effect subject to any enactment or rule of law requiring directors, in certain circumstances, to consider or act in the interests of creditors of the company.",
  "article_text_truncated": false,
  "warnings": [],
  "retrieved_at": "2026-11-05T22:54:33+00:00",
  "duration_seconds": 0.1
}
```

And for `{"query": "BW 7:658"}` (same run date; `text_notice` and `article_text` shortened):

```json
{
  "jurisdiction": "NL",
  "act_id": "BWBR0005290",
  "title": "Burgerlijk Wetboek Boek 7",
  "act_type": "Wet",
  "official_publication": "Stb. 1991, 600",
  "date_entry_into_force": "1992-01-01",
  "in_force": true,
  "act_url": "https://wetten.overheid.nl/BWBR0005290",
  "language": "NL",
  "latest_consolidated_version_date": "2026-10-08",
  "text_version": "consolidated",
  "consolidated_version_date": "2026-10-08",
  "text_notice": "Geconsolideerde tekst uit het Basiswettenbestand (wetten.overheid.nl, KOOP); authentiek is de bekendmaking in het Staatsblad of de Staatscourant (art. 4-5 Bekendmakingswet). ...",
  "source_url": "https://wetten.overheid.nl/jci1.3:c:BWBR0005290&boek=7&titeldeel=10&afdeling=6&artikel=658&z=2026-10-08&g=2026-10-08",
  "data_url": "https://repository.officiele-overheidspublicaties.nl/bwb/BWBR0005290/2026-10-08_0/xml/BWBR0005290_2026-10-08_0.xml",
  "article": "658",
  "article_amended_by": [
    { "source": "Stb. 1998, 300", "date": "1998-06-02", "change": "wijziging", "url": "https://zoek.officielebekendmakingen.nl/stb-1998-300.html" }
  ],
  "article_text": "1. De werkgever is verplicht de lokalen, werktuigen en gereedschappen waarin of waarmee hij de arbeid doet verrichten, ...\n2. De werkgever is jegens de werknemer aansprakelijk voor de schade ...\n3. ...\n4. ...",
  "warnings": [],
  "duration_seconds": 0.6
}
```

- **article_text**: plain text, one line per subsection, lid or list item, numbering kept (UK
  `(1)`, `(a)`; NL `1.`, `a.`). Ask for one subsection or lid with `"article": "172(1)"` or
  `"13 lid 2"`.
- **in_force**: whether the returned section or article is in force on `asOf` (repealed and
  prospective UK sections, and lapsed Dutch regulations, say `false` with a warning).
- **consolidated_version_date / latest_consolidated_version_date**: the version used and the
  newest one the source holds.
- **article_amended_by**: UK, the textual amendments legislation.gov.uk shows with the section
  (who changed it, when); NL, the Staatsblad/Staatscourant publication that last changed the
  article. **pending_changes** (UK): changes legislation.gov.uk has recorded but not yet applied.
- **source_url** links the exact version (article-level page); **data_url** is the XML it was
  read from.
- Without `article`: one row with `table_of_contents` (section or article numbers and headings,
  up to 500) and `articles_count`, so an agent can pick the article for a second call.

**Field names shared with eu-law-lookup**: `act_id` plays the role of `celex`,
`official_publication` of `oj_reference`, `act_url` of `eur_lex_url`, `data_url` of `cellar_url`;
`title`, `act_type`, `in_force`, `as_of`, `text_version`, `consolidated_version_date`,
`text_notice`, `source_url`, `article`, `paragraph`, `article_title`, `article_text`,
`article_amended_by`, `table_of_contents` and `warnings` mean the same thing.

### Input

```json
{ "query": "Wet op de vennootschapsbelasting 1969 artikel 13", "asOf": "2025-01-01" }
```

| Field | Meaning |
|---|---|
| `query` | UK: `Companies Act 2006 s 172`, `section 172 of the Companies Act 2006`, short names (`CA 2006`, `DPA 2018`, `UK GDPR`, `PECR`, `FSMA 2000`, `TUPE`... for 35 common acts), `ukpga/2006/46/section/172` or a legislation.gov.uk URL, `2006 c. 46`, `S.I. 2003/2426 reg 6`, or any exact short title. NL: `BW 7:658`, `artikel 13 Wet Vpb 1969`, `Awb 8:1`, `art. 310 Sr`, abbreviations (BW Boek 1-10, Sr, Sv, Rv, Awb, UAVG / AVG-uitvoeringswet, Wft, Wwft, Woo, Wet IB 2001, AWR ...; others through the official BWB search), a citeertitel, a BWB id (`BWBR0002672`), a jci reference or a wetten.overheid.nl URL. Questions like "What does Article 7:658 BW say?" work too |
| `jurisdiction` | `UK` or `NL`; empty = detected from the citation |
| `article` | `172`, `172(1)`, `7:658`, `13 lid 2`, `8:1`, or several: `171, 172` (max 5). Empty = the article in the query, else the act overview |
| `asOf` | `YYYY-MM-DD`: the version in force on that date. Default today |
| `language` | Optional. UK texts are English, Dutch texts Dutch (no official English translation exists) |
| `maxTextChars` | Cap for article text, default 30000 |

### 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/national-law-lookup
```

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: *"What does article 13 of the Dutch Wet op de vennootschapsbelasting 1969 say as
of 1 January 2025? Quote it and link the source."* The agent passes:

```json
{ "query": "artikel 13 Wet Vpb 1969", "asOf": "2025-01-01" }
```

**Output for agents:** small JSON rows (typically 3-15 KB), stable `snake_case` fields, ISO
dates, `null` for unknown, a link to the exact version. `warnings` says in plain words when the
text is not in force on `asOf`, a newer version is coming, or changes are not yet applied. A
Dutch lookup takes under a second after start-up; a UK lookup about 1 second, plus 5 seconds
per extra request (a short title that isn't in our list, or each extra section), because
legislation.gov.uk asks clients to wait 5 seconds between requests.

**Cost:** $0.01 per article or act returned, billed to the Apify account the MCP server is
signed in with. Nothing is charged for a failed lookup.

### FAQ

**Where does the data come from?** UK: legislation.gov.uk (The National Archives), its
Legislation API XML. NL: the Basiswettenbestand (BWB) open-data repository of KOOP, the same
consolidated texts wetten.overheid.nl shows; names not in our abbreviation list are looked up in
the official BWB search service (SRU). Nothing else is added, and the text is not rewritten or
summarised.

**Is the consolidated text the law?** It is an editorial consolidation, not the authentic
publication. For Dutch law the authentic text is the publication in the Staatsblad or
Staatscourant (Bekendmakingswet, art. 4-5); the row names that publication and links it. UK
revised texts are prepared by the legislation.gov.uk editorial team and may not yet include every
change: check `pending_changes`. Every row carries this in `text_notice`.

**Is this legal advice?** No. It returns official texts and metadata as published; it does not
interpret them.

**Is there an English version of Dutch law?** No official one. Dutch texts are returned in
Dutch; ask your agent to translate and say that the translation is unofficial.

**Which acts work?** UK: all legislation on legislation.gov.uk with numbered sections,
regulations or articles (Acts of the UK, Scottish, Welsh and NI parliaments, SIs, retained EU
law such as the UK GDPR). Schedules are not split out yet. NL: every regulation in the BWB
(wetten, AMvB's, ministeriële regelingen, beleidsregels), with versions from about 2002 (the
start of the BWB's history) onwards.

**How current is it?** Live: every call reads the source. Dutch versions appear when KOOP
publishes them (usually on the day they take effect); legislation.gov.uk applies changes after
they are made, so recent amendments can sit in `pending_changes` for a while.

**Points like 172(1)(a)?** The subsection is returned whole; points are lines inside it.

**Personal data?** None is requested or returned beyond what the published legislation
contains.

Content: UK, contains public sector information licensed under the Open Government Licence
v3.0 (© Crown and database right, legislation.gov.uk). NL, Basiswettenbestand (KOOP); Dutch
legislation is not protected by copyright (Auteurswet art. 11). XML is converted to plain text
and long texts are cut where `maxTextChars` says; nothing else is changed.

# Actor input Schema

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

The act, optionally with the article. UK: a short title with a section ("Companies Act 2006 s 172", "section 172 of the Companies Act 2006"), a short name ("CA 2006", "DPA 2018", "UK GDPR", "PECR"; 35 common acts), a legislation.gov.uk path or URL ("ukpga/2006/46/section/172"), a chapter ("2006 c. 46") or an SI ("S.I. 2003/2426 reg 6"). NL: "BW 7:658", "artikel 13 Wet Vpb 1969", "Awb 8:1", "art. 310 Sr", an abbreviation (BW1-10, Sr, Sv, Rv, Awb, UAVG, Wft, Wwft, Woo ...), a citeertitel, a BWB id ("BWBR0002672"), a jci reference or a wetten.overheid.nl URL. Required. An unreadable citation fails in seconds, with examples, at no charge.

## `jurisdiction` (type: `string`):

"UK" or "NL". Default empty = detected from the citation (paths, BWB ids, known names, Dutch or English words); set it when a bare name is ambiguous.

## `article` (type: `string`):

Section, regulation or article number, optionally with a subsection or lid: "172", "172(1)", "7:658", "13 lid 2", "8:1"; several separated by commas (up to 5, e.g. "171, 172"). One row per article. Overrides an article in the query. Empty = the article in the query, or else one row for the whole act with its table of contents.

## `asOf` (type: `string`):

YYYY-MM-DD, e.g. "2025-01-01": return the text as in force on that date (UK point-in-time version; NL consolidated version, newest correction). Empty = today.

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

Optional, "EN" or "NL". UK texts are English and Dutch texts are Dutch: there is no official English translation of Dutch legislation, so EN for a Dutch act returns the Dutch text with a warning. Default empty = the source language.

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

Cap on article_text, in characters, e.g. 30000 (default). Longer text is cut and flagged (article_text_truncated) with a warning.

## Actor input object example

```json
{
  "query": "Companies Act 2006 s 172",
  "jurisdiction": "",
  "maxTextChars": 30000
}
```

# 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 = {
    "query": "Companies Act 2006 s 172"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bosco_labs/national-law-lookup").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 = { "query": "Companies Act 2006 s 172" }

# Run the Actor and wait for it to finish
run = client.actor("bosco_labs/national-law-lookup").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 '{
  "query": "Companies Act 2006 s 172"
}' |
apify call bosco_labs/national-law-lookup --silent --output-dataset

```

## MCP server setup

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

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/9fi70LIJFzTxYiLut/builds/zuJJsH1nLIrSmkACW/openapi.json
