This Cloudflare Worker scrapes tax data from the Dutch Tax Authority website and provides it as a JSON response via a REST API. Note that the prices from the Dutch Tax Authority are without BTW.
GET /api/netherlands/tax
This endpoint returns the scraped tax data in JSON format.
The response is a JSON object containing the tax data:
{
"data": [
{
"title": "Belasting op aardgas (verlaagd tarief)",
"data": {
"2024": [
{
"title": "0 t/m 2.900 kWh",
"price": 0.10880
},
{
"title": "2.901 t/m 10.000 kWh",
"price": 0.10880
},
],
}
},
]
}
Install dependencies:
npm install
npm run dev
npm run deploy