# Dutch Legislation (BWB) (`vizellie/nl-legislation-bwb`) Actor

Consolidated Dutch legislation from the BWB on wetten.overheid.nl. One row per toestand, with the official page. This is a search, not a feed of new notices.

- **URL**: https://apify.com/vizellie/nl-legislation-bwb.md
- **Developed by:** [Vi Zellie](https://apify.com/vizellie) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 saved laws

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 Legislation (BWB)

Search consolidated Dutch legislation in the Basiswettenbestand and save one row per toestand. The row has the BWB id, the title, the type, the authority and creator when the record has them, the in-force start and end dates, the toestand URI from the record, and a wetten.overheid.nl page for that id and start date.

Not legal advice and not an official government service. Source: Basiswettenbestand (BWB) via zoekservice.overheid.nl, the pages on wetten.overheid.nl.

This is a catalog search. It is separate from gazette notices, from local regulations (CVDR), and from bills still in progress. The run does not download the law XML.

### Try this first

Title `grondwet`, in force on the day you run it, at most 5 rows. Checked on 8 November 2026, `today` was `2026-11-08`. That search returned 10 records. The first saved row is the current Grondwet.

```json
{
  "title": "grondwet",
  "inForceDate": "today",
  "maxResults": 5
}
```

The form opens with these values. Leave the BWB id, the abbreviation, and the type empty.

Five saved rows cost 5 x $0.002 = $0.01, plus the $0.00005 start fee. The other 5 matches are not saved when the cap is 5.

A title search with no in-force date can return historical versions first. On 8 November 2026, title `grondwet` alone returned 63 records and started with `Instellingsbesluit staatscommissie Grondwet` (`BWBR0026076`), then older Grondwet toestanden. When **In force on** is omitted, this Actor uses the date of the run so an API call or a schedule asks for the text in force that day. Set it to `any` when you want the undated search.

### Who it is for

Legal teams and agencies who want the consolidated BWB record that is in force on a given day, starting with a small search such as the Grondwet.

### What you get

- One row per toestand the search returns, up to **Max results**.
- The BWB id, title, and type.
- The authority and the creator when the record has them.
- The in-force start and end. An end of `9999-12-31` is the date the record published. It means the record has no earlier end.
- `toestand`, the URI from the record. For the Grondwet that was `http://wetten.overheid.nl/id/BWBR0001840/2023-02-22/0`. A direct request for that address returned HTTP 404 on 8 November 2026.
- `url`, `https://wetten.overheid.nl/{id}/{in-force start}`. For the same row that was `https://wetten.overheid.nl/BWBR0001840/2023-02-22`, which returned HTTP 200. The same shape also returned HTTP 200 for the second row that day, `BWBV0005879` / `2004-10-29`.
- A note when the service does not respond, rejects the search, or finds nothing. Those runs do not charge a law row.

There is no new-items switch. This search returns the toestanden that match. It is not a feed of newly published notices.

The law XML on repository.officiele-overheidspublicaties.nl is not requested and is not stored.

### Tutorial

1. Leave **Title** on `grondwet` for a first look.
2. Leave **In force on** on `today`. When the field is omitted, the run still uses the date of the run. Use `any` only when you want historical versions as well.
3. Leave **Max results** at 5 on the form. When the field is omitted, the run saves up to 40.
4. Run the Actor. The dataset has one row per saved toestand. The `OUTPUT` record says how many matched.
5. For a known id, set **BWB id** to `BWBR0001840` and keep the in-force date. On 8 November 2026 the id alone, with no date, returned 11 historical versions.

`GW` and `Gw` as **Abbreviation** returned the Grondwet that day. The word `Grondwet` as an abbreviation returned no rows. Type `wet` together with the title and the date returned 6 of the 10 matches, still starting with the Grondwet.

### Example output

This is the first row for title `grondwet` in force on 2026-11-08.

```json
{
  "identifier": "BWBR0001840",
  "title": "Grondwet",
  "type": "wet",
  "source": "wetten.overheid.nl",
  "authority": "Binnenlandse Zaken en Koninkrijksrelaties",
  "creator": "Ministerie van Binnenlandse Zaken en Koninkrijksrelaties",
  "inForceFrom": "2023-02-22",
  "inForceUntil": "9999-12-31",
  "toestand": "http://wetten.overheid.nl/id/BWBR0001840/2023-02-22/0",
  "url": "https://wetten.overheid.nl/BWBR0001840/2023-02-22"
}
```

Open `url` for the page that answered. `toestand` is the identifier the record published. The text of the law can change when a new toestand is published. Run the search again with `today` to see the version in force on that later day.

### Pricing

You pay a small fee when the run starts, then a fee for each law row that is saved.

| What | Price |
|---|---|
| Run start | $0.00005 |
| Saved law | $0.002 |

Rows that were not saved are free. That includes an empty search, rows past **Max results**, a timeout, a rejected search, and an HTTP error, including a 403 or a 406.

**Examples**

- The form on 8 November 2026, 5 of 10 toestanden saved: 5 x $0.002 = **$0.01**, plus the $0.00005 start fee.
- The omitted cap of 40, when 10 match: 10 x $0.002 = **$0.02**, plus the start fee.
- Forty saved laws: 40 x $0.002 = **$0.08**, plus the start fee.
- A search that matches nothing: **$0.00005**.

Use **Max results** and Apify's maximum cost per run to cap a single run. The pricing tab on the store is the price you are charged if it ever differs.

### Scheduling and integrations

Save a task with the title or BWB id you follow, leave **In force on** empty or set it to `today`, and schedule it. Each run asks for the versions in force on that run's date. The dataset can go to Google Sheets, Slack, email, Make or Zapier, or you can read it from the Apify API.

### Nederlands

Dit zoekt in het Basiswettenbestand (BWB) via de SRU-dienst op zoekservice.overheid.nl. Het resultaat is geconsolideerde wetgeving op wetten.overheid.nl, één rij per toestand.

Dit is iets anders dan officiële bekendmakingen, iets anders dan lokale regelgeving (CVDR), en iets anders dan wetsvoorstellen die nog in behandeling zijn.

De eerste proef is klein. Zet **Title** op `grondwet`, **In force on** op `today`, en **Max results** op 5. Op 8 november 2026 betekende `today` de datum `2026-11-08`. Die zoekactie gaf 10 records. De eerste rij was de Grondwet, `BWBR0001840`, type wet, ministerie van Binnenlandse Zaken en Koninkrijksrelaties, geldig van 2023-02-22 tot 9999-12-31.

Een titel zonder geldigheidsdatum kan historische versies eerst geven. Op die dag begon `grondwet` zonder datum bij het Instellingsbesluit staatscommissie Grondwet (`BWBR0026076`), niet bij de huidige Grondwet. Laat je het datumveld weg, dan gebruikt de run de datum van de run. Zet het veld op `any` als je die historische volgorde juist wilt.

De toestand-URI in het record is `http://wetten.overheid.nl/id/BWBR0001840/2023-02-22/0`. Die aanroep gaf HTTP 404. De link `url` is `https://wetten.overheid.nl/BWBR0001840/2023-02-22` en die gaf HTTP 200. De wet-XML wordt niet opgehaald en niet opgeslagen.

Afkorting `GW` of `Gw` gaf de Grondwet. Afkorting `Grondwet` gaf geen rijen. Het explain-bestand noemde op 8 november 2026 ongeveer 148830 records, lastUpdate 2026-11-06, database "BWB Repository". Een aanroep zonder Accept-header gaf die dag HTTP 200, geen 406. De Actor stuurt toch `Accept: application/xml`.

Een lege zoekactie is een geldig resultaat. Een storing, een time-out, een afgekeurde zoekactie, een 403 of een 406 wordt niet per wet gerekend. De prijs is $0.00005 bij de start en $0.002 per opgeslagen toestand.

Geen juridisch advies en geen officiële overheidsdienst. Bron: Basiswettenbestand via zoekservice.overheid.nl en wetten.overheid.nl.

### No personal data

This Actor does not collect personal data beyond the official names on the BWB record.

- It reads legislation metadata. It does not request a person or an account.
- The law XML, the WTI file, and the manifest are not downloaded and are not stored.
- Email addresses and phone numbers are removed if they appear in a kept line.
- The title and the abbreviation are not written to the log.
- Raw responses are not stored.

### FAQ

**Why is the current Grondwet not first?**
The in-force date was off, or it was set to `any`. A title-only search on 8 November 2026 started with a historical besluit. Keep **In force on** on `today`, or on a specific day.

**What if the search matches nothing?**
The run finishes. The summary says no laws matched. You pay the start fee only. An empty search is not an error. A run with no title, no BWB id, and no abbreviation stops before the request, because that would be the whole catalog.

**What if the service is down, the search is rejected, or the call returns 406?**
The run finishes and the summary says so. No law row is charged. On 8 November 2026 a BWB search without an Accept header still returned HTTP 200 XML. A 406, if the service sends one later, is not billed as a saved law.

**Where do the rows come from?**
The KOOP SRU service for the BWB on zoekservice.overheid.nl. Explain that day described the database as freely available, title "BWB Repository". This Actor is not affiliated with the Dutch government. Read the official page before you act on a row.

### Next additions

- A note when the in-force start of a saved BWB id changes.

### Feedback

Missing a field? Open an issue on the Actor's Issues tab.

# Actor input Schema

## `title` (type: `string`):

A word from the official title, such as grondwet. A title search with no in-force date can return historical versions first. Leave empty if you set a BWB id or an abbreviation instead.

## `identifier` (type: `string`):

Official BWB identifier, such as BWBR0001840. Without an in-force date this returns the historical versions of that id.

## `abbreviation` (type: `string`):

Official abbreviation. GW and Gw returned the Grondwet on 8 November 2026. The word Grondwet as an abbreviation returned no rows.

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

Document type as published, such as wet. Leave empty for every type.

## `inForceDate` (type: `string`):

Versions in force on this day. Use YYYY-MM-DD, today, or any. When this field is omitted the run uses the date of the run, so a schedule stays on the text in force that day. any turns the date filter off. The form starts at today.

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

Most toestanden saved in one run, from 1 to 100. When this field is omitted the run saves up to 40. The form starts at 5. Rows past the cap are not charged.

## Actor input object example

```json
{
  "title": "grondwet",
  "identifier": "BWBR0001840",
  "abbreviation": "GW",
  "type": "wet",
  "inForceDate": "today",
  "maxResults": 5
}
```

# Actor output Schema

## `laws` (type: `string`):

BWB id, title, type, authority, in-force dates, and the wetten.overheid.nl page.

## `summary` (type: `string`):

The OUTPUT record in the default key-value store.

# 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 = {
    "title": "grondwet",
    "inForceDate": "today",
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("vizellie/nl-legislation-bwb").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 = {
    "title": "grondwet",
    "inForceDate": "today",
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("vizellie/nl-legislation-bwb").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 '{
  "title": "grondwet",
  "inForceDate": "today",
  "maxResults": 5
}' |
apify call vizellie/nl-legislation-bwb --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vizellie/nl-legislation-bwb"
        }
    }
}
```

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/ALEbGH9b0Ni4fGLhb/builds/IKiORSNDvzpMxDWBZ/openapi.json
