Getting Started¶
The CPRMV API is available as a live service. No account is required, and most sources need no key. The DSO decision models need your own DSO API key, sent as the x-api-key header.
Environments¶
| URL | |
|---|---|
| Production | https://cprmv.open-regels.nl/docs (also https://cprmv.open-rules.eu/docs) |
| Acceptance | https://acc.cprmv.open-regels.nl/docs |
Every environment exposes FastAPI's interactive Swagger UI at /docs, where every endpoint can be called directly in the browser. GET / returns the running version, for example {"CPRMV Rules Serve API": "0.4.3"}.
Exploring the API¶
Navigate to https://acc.cprmv.open-regels.nl/docs. The Swagger UI shows all available endpoints with their parameters and response schemas. Click Try it out on any endpoint to send a live request.
Your first request¶
The simplest call fetches a complete article from Dutch national law. Use the /rules/{rule_id_path} endpoint:
BWBR0015703_2025-07-01_0 is the rule set identifier (the Participatiewet, originally the Wet werk en bijstand, in the version valid from 1 July 2025, index 0). Artikel 20 is the rule identifier within that set. The comma separator must be URL-encoded as %2C.
The default format=cprmv-json response returns the rule set with the full article as its part, including all its nested paragraphs (lid) and sub-clauses (onderdeel).
Fetching the current version of a law¶
You do not need to know the publication date and index. Use a bare BWB identifier to get the version valid today:
Or specify a date for which you want the valid version:
The cprmv:id of the returned rule set shows which publication was found (for example BWBR0015703_2025-07-01_0).
Downloading the original publication¶
/raw takes the same rule set id as /rules and returns the publication itself, untransformed, as a file:
For BWB this is the toestand XML. See API Endpoints.
Checking the CPRMV specification¶
The CPRMV specification in ReSpec format is served at:
This describes the full vocabulary โ classes, properties, and cardinality constraints โ that the API's output conforms to.
Checking supported methods¶
Returns the Methods Knowledge Graph in Turtle format: the acknowledged method lists (cprmvmethods:rulemethods, publicationmethods, referencemethods, analysismethods, โฆ) and the definition of each method with its configuration properties. The graph is loaded from serve_api/data/cprmvmethods.ttl, which make methods generates from rdf/0.4.3/. /methods?method_name=iou-norms narrows it to the configured IOU Norms source (see API Endpoints for how a name is matched).