Skip to content

(Dutch) government tax API using Cloudflare Workers. COMMUNITY MADE

Notifications You must be signed in to change notification settings

GewoonJaap/gov-tax-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dutch Tax API Cloudflare Worker

Deploy Cloudflare Worker 207815865-9b471652-5723-4d35-8847-dce0fb9701eb

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.

Endpoints

GET /api/netherlands/tax This endpoint returns the scraped tax data in JSON format.

Response

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
          },
        ],
      }
    },
  ]
}

Development

Usage

Install dependencies:

npm install

Start development server:

npm run dev

Deploy to Cloudflare Workers:

npm run deploy

About

(Dutch) government tax API using Cloudflare Workers. COMMUNITY MADE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published