/skattesats-api

Simplified API to request taxes from different Swedish municipalities. Data retrieved from the Swedish Tax Agency's rest API (Skatteverket.se)

Primary LanguageJavaScriptMIT LicenseMIT

Skattesats API

A API middleman that simplifies requests to retrieve taxrates from different Swedish municipalities. Data retrieved from the Swedish Tax Agency's rest API (Skatteverket.se)

Installing

  1. Clone the repository git clone https://github.com/erhuz/skattesats-api.git
  2. Move inside the cloned directory and install the NPM Packages cd skattesats-api && npm install
  3. Set up environment variables such as dev/prod or desired port cp .env.example .env
  4. Start the application npm run dev

Usage

This app will host an API that simplifies some of the Swedish Tax Agency's REST endpoints. It is enought to retrieve up-to-date taxrates for preliminary tax and automate tax declaration & calculation.

Endpoints

  • GET /years
  • GET /municipalities/:year
  • GET /assemblies/:municipality/:year
  • GET /tax/municipality/:year/:assembly?

Built with

  • NodeJS
  • ExpressJS
  • Node-fetch
  • Winston

License

MIT License