# EU CAO Compliance Check (`mikee368/eu-cao-compliance-check`) Actor

Find Dutch generally binding collective agreements that may cover a company. Uses Staatscourant AVV decisions, CBS SBI titles and the statutory minimum-wage table. Checklist items are flagged possible obligation, verify. Indicator, not legal advice.

- **URL**: https://apify.com/mikee368/eu-cao-compliance-check.md
- **Developed by:** [Mike Berckmoes](https://apify.com/mikee368) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$9.00 / 1,000 company cao checks

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

## EU CAO Compliance Check

Find Dutch collective labour agreements that may cover a company. The Actor reads the Staatscourant list of generally binding (algemeen verbindend, AVV) CAO decisions, the CBS SBI 2025 title for the codes you supply, and the latest statutory minimum-wage indexation. A run returns candidate CAOs, the AVV status and validity period, links to the official text, and a checklist. Every obligation is flagged **possible obligation, verify**.

This is an indicator, not legal advice. The Ministry of Social Affairs and Employment does not decide which CAO binds a particular employer. Membership of an employers' association, dispensation and the exact scope (werkingssfeer) still have to be checked.

Watch mode keeps one saved state per monitor id, not one global watermark. The first watch run stores the publication ids it saw and does not emit change rows. A later run reports new or changed AVV decisions for those search terms.

### What it does

- For each company it searches official AVV publications, reads up to `maxDecisions` decision texts, and keeps a decision when an SBI code in that text overlaps a code you supplied, or when your sector text appears in the official CAO name.
- It always tries to add the statutory hourly minimum wage, the reference monthly amount, and the standard youth scale from the latest indexation in the Staatscourant.
- It writes a checklist for minimum-wage scales, working hours, holiday allowance, pension, overtime and notice. An item is `extracted` only when that wording is in the fetched text. `not-found-in-fetched-text` is not a finding that the obligation does not exist.
- Optional contract or policy text is compared by keyword. A gap means the wording was not found. Do not paste names, BSN or salaries. The Actor does not write that text to its output. Apify keeps the run input under your account retention, and the field is stored as a secret.
- One Staatscourant search page returns at most 20 metadata records. Decision XML is capped by `maxDecisions` (default 4, maximum 8). Each request is tried twice. There is a 0.25 second pause before a request and a 1 second pause before a retry.
- This version does not look up a KvK number, does not decide that a CAO applies, and does not read CAOs that have not been published in the Staatscourant.

### Country coverage

| Code | Country | This version |
|---|---|---|
| NL | Netherlands | Supported. Staatscourant AVV decisions, CBS SBI 2025 titles, statutory minimum-wage indexation. |
| Other EU | — | Not fetched. The run stops before any request if `country` is not `NL`. |

To add a country: add `my_actor/countries/<code>.py`, register it in `my_actor/countries/__init__.py`, add the code to the `country` enum in `.actor/input_schema.json`, add fixtures and a harness case, and add a row to this table. Notes are in `my_actor/countries/README.md`.

### Use cases

- A Dutch employer with an SBI code wants the AVV decisions that mention that code, with links to the Staatscourant text.
- A payroll check compares an employment contract with the checklist and lists missing keywords.
- A scheduled watch reports a new or changed AVV publication for the same SBI codes or sector.
- A multi-country file can already send `country: "NL"`. Other countries are rejected until a module exists.

### What you get

| Field | Meaning | Example |
|---|---|---|
| `rowType` | `statutory-floor`, `cao-candidate`, `checklist-item`, `contract-gap`, `avv-change`, `no-match` or `error` | `cao-candidate` |
| `caoName` | Name from the official decision | `Uitgeverijbedrijf` |
| `avvStatus` | `generally-binding`, `amended`, `extended`, `revoked`, `request` or `unknown` | `generally-binding` |
| `validFrom`, `validTo` | Dates stated in the decision. Empty when the text does not state them | `2026-05-30`, `2035-07-01` |
| `publicationId`, `officialTextUrl` | Staatscourant id and the public HTML page | `stcrt-2026-90001` |
| `matchReason` | Why the decision was kept | SBI overlap or CAO-name overlap |
| `item`, `itemStatus`, `excerpt` | Checklist item, `extracted` or `not-found-in-fetched-text`, and a short official quote | `notice` |
| `flag` | On obligation rows | `possible obligation, verify` |
| `adultHourlyEur`, `youthHourlyEur`, `referenceMonthlyEur`, `wageValidFrom` | Statutory floor. The reference monthly amount is for benefits indexation, not a monthly wage | `14.99` |
| `gap` | Set on a contract-gap row | `Not mentioned in the supplied contract or policy text.` |
| `charged` | True when this company's check was billed. One event covers every row for a company with a candidate CAO. False on a no-match and on an error | `true` |
| `disclaimer` | On every row | Indicator, not legal advice |
| `checkedAt` | Filled at run time | UTC timestamp |

`sbiTitles` is set when the CBS typeermodule returns a title. `employeeCountNote` is set when the fetched text states a headcount threshold and you supplied `employeeCount`. `changeType` is `new` or `changed` on an `avv-change` row.

The default key-value record `RUN_SUMMARY` has the counts, the wage publication id, and the source notes. A watch run writes `DIGEST` (subject, text, HTML, change list) when it stores a baseline, finds a change, or `notifyWhenQuiet` is on. Seen publication ids are in the named store `eu-cao-compliance-state`, keys `seen-<monitorId>` and `meta-<monitorId>`.

### How to use it

1. Pass one or more companies. Include an SBI code or a sector. A KvK number is stored as you typed it.
2. Read the dataset. Treat every flagged row as a possible obligation and open the official link.
3. For a schedule, set `mode` to `watch` and reuse the same `monitorId`. The first run is the baseline. Later runs add `avv-change` rows.

### Input

| Field | What to enter |
|---|---|
| `country` | `NL`. Any other value stops the run before a fetch. |
| `companies` | Objects or strings. An object may have `name`, `kvkNumber` (8 digits), `sbiCodes` (`58.11` or `5811`), `sector`, `employeeCount`. A string of 8 digits is a KvK number. Any other string is a name. |
| `mode` | `check` (default) or `watch`. |
| `monitorId` | Watch state id. Default `default`. |
| `lookbackDays` | Staatscourant window, default 550, range 30–800. The wage search uses at least 400 days. |
| `maxCompanies` | Default 5, maximum 20. Extra companies are counted and skipped. |
| `maxDecisions` | Decision XML files per company. Default 4, maximum 8. |
| `contractText` | Optional employer policy or template, at most 200000 characters. Do not paste names, BSN or salaries. Not written to the output. Apify keeps the run input under your account retention. The field is a secret. |
| `contractUrl` | Optional public https URL on port 443. Userinfo, IP literals, localhost, and `.local` / `.internal` / `.lan` / `.home` / `.corp` hosts are refused. Redirects are not followed. The download stops at 200000 bytes. |
| `webhookUrl` | Watch mode. One POST of the digest, which lists company names. You are the controller for that destination. https on port 443. Not logged. |
| `notifyWhenQuiet` | Also POST when a later watch run finds nothing new. |
| `resetState` | Drop seen ids for this monitor and store a new baseline. |

An invalid KvK number, an unknown country, a bad URL, or an empty company list stops the run before any fetch. Nothing is billed.

```json
{
  "country": "NL",
  "mode": "check",
  "companies": [
    {
      "name": "Example Uitgeverij B.V.",
      "kvkNumber": "12345678",
      "sbiCodes": ["58.11"],
      "sector": "uitgeverij",
      "employeeCount": 40
    }
  ]
}
```

### Output example

Offline fixture run, row type `cao-candidate`. `checkedAt` is filled at run time. Fields that are null on this row type are omitted here.

```json
{
  "country": "NL",
  "companyName": "Example Uitgeverij B.V.",
  "kvkNumber": "12345678",
  "sbiCodes": "5811",
  "employeeCount": 40,
  "rowType": "cao-candidate",
  "caoName": "Uitgeverijbedrijf",
  "avvStatus": "generally-binding",
  "validFrom": "2026-05-30",
  "validTo": "2035-07-01",
  "publishedAt": "2026-05-29",
  "publicationId": "stcrt-2026-90001",
  "officialTextUrl": "https://zoek.officielebekendmakingen.nl/stcrt-2026-90001.html",
  "matchReason": "SBI 58.11 overlaps a code in the official text (58.11)",
  "sbiTitles": "58.11 Uitgeven van boeken",
  "flag": "possible obligation, verify",
  "source": "NL_STAATSCOURANT_AVV",
  "charged": true,
  "disclaimer": "Indicator, not legal advice. A candidate CAO is a possible obligation, verify against the official text, the employer's scope and a qualified adviser. The Ministry of SZW does not decide which CAO binds a particular employer."
}
```

On 27 October 2026 a live check for SBI `5811` and sector `uitgeverij` kept one candidate, Uitgeverijbedrijf 2026/2027 (`stcrt-2026-17053`, generally binding, valid 3 June 2026 to 1 January 2028). The statutory row used Staatscourant `stcrt-2026-16505`: adult hourly €14.99 from 1 July 2026.

### Privacy

`contractText` is for an employer policy or a template. Do not paste text with names, BSN or salaries of employees. The Actor does not write that text to the dataset, the run summary, or the watch store. Apify still keeps the run input under your account retention. The field is marked secret, so the platform stores it encrypted and masked.

`employeeCount` is an aggregate integer. A company name and a KvK number are legal-entity data. A sole trader's trading name can be the company name you supply, and that name is stored on the dataset row.

Watch mode writes `meta-<monitorId>` in the named store `eu-cao-compliance-state`. That record holds up to 24 search terms (company names, sector words, and SBI tokens) plus publication counts. It does not hold employee records. `seen-<monitorId>` holds Staatscourant publication ids.

The watch digest lists company names and official publication titles. If you set `webhookUrl`, you are the controller for that destination. The Actor posts one JSON body and does not log the URL.

### Pricing

Live. `.actor/pricing.json` is pay-per-event **company-check** at **$0.009**. The draft under `pricingPrepared` in `.actor/deploy.json` is not applied.

Event: **company-check** at **$0.009**. One event per company with at least one candidate CAO. The statutory row, checklist and contract gaps for that company are included. A company with no candidate CAO is not billed, including its statutory-floor row. A source error is not billed. Watch change rows are not a second event. The code does not charge `apify-actor-start`. That synthetic event stays at the platform default of $0.00005.

Apify keeps 20% of event revenue and deducts platform usage from the rest: `profit = (0.8 × revenue) − platform cost`. Bronze-tier unit costs used here are $0.20 per compute unit and $0.20 per GB of external transfer. Memory is 256 MB. There is no proxy.

Measured on 27 October 2026 for one company (SBI 5811, sector uitgeverij, lookback 550, maxDecisions 4): 10.09 seconds, 7 HTTP calls, 1,179,039 bytes. That is about 0.000701 compute units ($0.000140) and about 0.001179 GB of transfer ($0.000236). Dataset and key-value writes are under $0.0002. Platform cost is about **$0.00052**. After the 20% cut, revenue is $0.0072, so profit is about **$0.0067**. The break-even price for that run is about $0.0007. A three-minute run that downloaded the 2 MB cap on four decisions would still be under $0.005 of platform cost, which $0.009 covers. The same price stays profitable if the free first 5 seconds from `apify-actor-start` are ignored.

Not charged: invalid input, a company with no candidate CAO, and a company whose AVV search fails. A no-match run still spends the measured platform cost and does not recover it. Checklist rows are not separate events. For example, 1 matched company × $0.009 = $0.009, and 25 matched companies × $0.009 = $0.225.

### Integrations

- Schedule a task with the same `monitorId` for a watch.
- Export the dataset as JSON, CSV, Excel or HTML, or send it to Google Sheets with the platform integration.
- Watch mode can POST one digest to `webhookUrl` (Make, Zapier, n8n, Slack). It does not send e-mail and it does not POST once per row.
- A platform webhook on run succeeded can read `RUN_SUMMARY` and, after a watch run, `DIGEST` from the default key-value store.
- The API and `apify-client` can read the dataset. Seen AVV ids are in the named store `eu-cao-compliance-state`.

### FAQ

**Is this legal advice?** No. It is an indicator. A candidate means the official text may cover the activity. Confirm scope, membership and dispensation with the CAO parties or a qualified adviser.

**Does a KvK number select the CAO?** No. The Handelsregister has no unauthenticated open API, so the number is only stored. Pass an SBI code or a sector.

**Why was a checklist item not found?** The fetched decision did not contain that wording. The obligation can still exist in a part of the CAO that was not in the AVV text, or under a different word.

**What does the first watch run do?** It stores publication ids for this `monitorId` and does not emit change rows. A company with a candidate CAO is still billed. A company with no candidate is not. One monitor id has its own state.

**What if I add a company to an existing monitor?** Publication ids that were not stored for the previous search terms are reported as new, even when the decision is older. Use a new `monitorId`, or turn on `resetState` for one run, to take a fresh baseline.

**Does it send e-mail?** No. The digest has a subject, text and HTML for your own webhook or an Apify integration.

### Limits

At most 20 companies per run (default 5). The Staatscourant search reads one page of 20 metadata records per company. At most 8 decision XML files are downloaded (default 4), each capped at 2 MB. If `RUN_SUMMARY.truncated` is greater than zero, the page or the XML cap dropped decisions. Use a more specific SBI code or sector, raise `maxDecisions`, or split companies across runs.

Requests go to three places, checked on 27 October 2026:

- `https://repository.overheid.nl/sru` is the KOOP SRU 2.0 API (free, no authentication, fair use, listed on developer.overheid.nl). `robots.txt` on that host is `Disallow: /`. The Actor calls only `/sru`. It does not download `/frbr` files.
- `https://zoek.officielebekendmakingen.nl/{id}.xml` is the publication. That host's `robots.txt` allows the publication path. The collection is published for reuse under CC0.
- `https://sbi-api.cbs.nl/api/SBIData/SbiInfo/{code}` is the CBS SBI 2025 typeermodule. KvK has used SBI 2025 since September 2025. CBS open data is CC BY. The wage figures come from the same Staatscourant channel, not from a scrape of the Rijksoverheid marketing page.

The holiday-allowance percentage is copied only when the fetched CAO text states it. The indexation regulation sets the hourly amounts and does not itself state that percentage.

Source: Staatscourant (KOOP / Ministry of the Interior), CBS, and the Ministry of Social Affairs and Employment. This Actor is not the official product of those bodies.

# Actor input Schema

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

ISO country. NL is supported. Other EU countries are refused before any fetch until a country module is added.

## `companies` (type: `array`):

Each item is a KvK number (8 digits), a name, or an object with name, kvkNumber, sbiCodes (58.11 or 5811), sector and employeeCount. SBI or sector is what the match uses. The KvK number is not looked up.

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

check returns the candidate list. watch does the same and stores seen Staatscourant ids for this monitorId. A later watch run adds a row for each new or changed AVV publication.

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

Separate watch state for each schedule. Letters, digits, \_ and - only.

## `lookbackDays` (type: `integer`):

How far back the Staatscourant search goes. The minimum-wage search uses at least 400 days so a short lookback still finds the latest indexation.

## `maxCompanies` (type: `integer`):

Companies after this cap are not checked and are counted on the run summary.

## `maxDecisions` (type: `integer`):

How many decision XML files to download per company after the search page (20 metadata records). A truncated page is flagged on the summary.

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

Optional employer policy text or a template. Do not paste text with names, BSN or salaries of employees. The Actor does not write this text to its output, but Apify keeps your run input under your account retention.

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

Optional public https URL on port 443 of a plain-text or HTML policy. Userinfo, IP literals, localhost, and hosts ending in .local, .internal, .lan, .home, or .corp are refused. Redirects are not followed. HTML is reduced to text. The download stops at 200000 bytes.

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

Watch mode only. One POST of the digest JSON when a baseline is stored, a change is found, or notifyWhenQuiet is on. The digest lists company names; you are the controller for the destination. The URL must be https on port 443. The Actor does not send e-mail and does not log the URL.

## `notifyWhenQuiet` (type: `boolean`):

Also POST the digest after a watch run that finds no new AVV publication.

## `resetState` (type: `boolean`):

Drop seen AVV ids for this monitorId and store a new baseline. That run does not emit change rows.

## Actor input object example

```json
{
  "country": "NL",
  "companies": [
    {
      "name": "Example Uitgeverij B.V.",
      "kvkNumber": "12345678",
      "sbiCodes": [
        "58.11"
      ],
      "sector": "uitgeverij",
      "employeeCount": 40
    }
  ],
  "mode": "check",
  "monitorId": "default",
  "lookbackDays": 550,
  "maxCompanies": 5,
  "maxDecisions": 4,
  "contractText": "",
  "contractUrl": "",
  "webhookUrl": "",
  "notifyWhenQuiet": false,
  "resetState": false
}
```

# Actor output Schema

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

Dataset with one row per statutory floor, candidate CAO, checklist item, gap, change or no-match

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

Counts, sources and the indicator disclaimer

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

Present after a watch baseline, a change, or a quiet notify. The named watch store is separate.

# 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 = {
    "companies": [
        {
            "name": "Example Uitgeverij B.V.",
            "kvkNumber": "12345678",
            "sbiCodes": [
                "58.11"
            ],
            "sector": "uitgeverij",
            "employeeCount": 40
        }
    ],
    "monitorId": "default",
    "contractText": "",
    "contractUrl": "",
    "webhookUrl": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("mikee368/eu-cao-compliance-check").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 = {
    "companies": [{
            "name": "Example Uitgeverij B.V.",
            "kvkNumber": "12345678",
            "sbiCodes": ["58.11"],
            "sector": "uitgeverij",
            "employeeCount": 40,
        }],
    "monitorId": "default",
    "contractText": "",
    "contractUrl": "",
    "webhookUrl": "",
}

# Run the Actor and wait for it to finish
run = client.actor("mikee368/eu-cao-compliance-check").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 '{
  "companies": [
    {
      "name": "Example Uitgeverij B.V.",
      "kvkNumber": "12345678",
      "sbiCodes": [
        "58.11"
      ],
      "sector": "uitgeverij",
      "employeeCount": 40
    }
  ],
  "monitorId": "default",
  "contractText": "",
  "contractUrl": "",
  "webhookUrl": ""
}' |
apify call mikee368/eu-cao-compliance-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mikee368/eu-cao-compliance-check"
        }
    }
}
```

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/BU45cTSgTfKChQhrP/builds/gLr2d0Fk22uE5bSua/openapi.json
