# CBS StatLine Open Data Query

> CBS StatLine Open Data Query is a paid API for AI agents from opendata402.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-15).

Fetches rows from any Statistics Netherlands (CBS StatLine) table by table ID, returning one row per value with its dimensions, measure code, title, and unit.

## Facts

- Endpoint: GET https://opendata402.com/v1/cbs?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cbs-statline-open-data-query-e016b688
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fph7jM4cJSSvGuqS0tIAD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cbs-statline-open-data-query-e016b688
```

Example prompt: Pull me the latest house price data from CBS StatLine table 83625NED — I want up to 200 rows and only the columns for region and price index.

## When to prefer this

Use this endpoint when you need official, authoritative Dutch statistics from Statistics Netherlands (CBS) — including demographics, housing, economics, regional figures, energy, or labor market data. Prefer it over general web search when you need structured, machine-readable data with known provenance (CC BY 4.0) and the ability to filter by region or time period using OData syntax.

## Known failure modes

- Invalid table ID format (must be 5 digits + 3 uppercase letters) returns an error
- Table ID does not exist in CBS StatLine returns a not-found error
- Malformed OData filter expression causes a filter parse error
- Requested columns in $select not present in the table returns empty or partial results
- Row limit outside 1–500 range is rejected by schema validation

## How this service works

Any Statistics Netherlands (CBS StatLine) table by table id, e.g. 83625NED (house prices), 85773NED (population), 70072NED (regional key figures): one row per value with its dimensions, measure code, measure title and unit, optional OData $filter and $select, up to 500 rows, plus the table title and last update. Use it for official Dutch statistics. CBS open data, CC BY 4.0.

## Output

A list of up to 500 rows (default 100) from the requested CBS StatLine table, each containing dimension values, a measure code, measure title, unit, and the data value. Also includes the table's official title and last-update timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "table"
     ],
     "properties": {
      "top": {
       "type": "string",
       "pattern": "^([1-9]|[1-9][0-9]|[1-4][0-9][0-9]|500)$",
       "description": "Max rows (default 100, max 500)."
      },
      "table": {
       "type": "string",
       "pattern": "^[0-9]{5}[A-Z]{3}$",
       "description": "CBS table id, e.g. 83625NED."
      },
      "filter": {
       "type": "string",
       "maxLength": 300,
       "description": "OData filter, e.g. RegioS eq 'GM0363'."
      },
      "select": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_,]{1,300}$",
       "description": "Comma-separated columns."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cbs-statline-open-data-query-e016b688/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opendata402.com](https://www.zero.xyz/host/opendata402.com/llms.txt)
