Skip to content

Instantly share code, notes, and snippets.

@cedendahlkim
Created July 26, 2026 06:09
Show Gist options
  • Select an option

  • Save cedendahlkim/a55edb26887cb6b25e843f19835d7b41 to your computer and use it in GitHub Desktop.

Select an option

Save cedendahlkim/a55edb26887cb6b25e843f19835d7b41 to your computer and use it in GitHub Desktop.
Svensk Skatte-API — Swedish tax calculations via curl (REST API, free tier)

Svensk Skatte-API — Swedish Tax Calculations as a REST API

Calculate ISK tax, VAT (moms), income tax, and employer contributions via a single curl call. Zero setup — use the free demo key to test immediately.

Quickstart (no auth needed)

# See all available calculations with curl examples
curl https://skatteapi.gracestack.se/demo

Free Tier Examples

# ISK tax on 500,000 SEK portfolio → 5,250 SEK
curl -H "X-API-Key: skatt_demo_free_2026" \
  https://skatteapi.gracestack.se/calculate/isk-tax \
  -H "Content-Type: application/json" \
  -d {kapitalunderlag: 500000, statslaneranta: 0.025}

# Add 25% VAT to 1,000 SEK → 1,250 SEK
curl -H "X-API-Key: skatt_demo_free_2026" \
  https://skatteapi.gracestack.se/calculate/moms \
  -H "Content-Type: application/json" \
  -d {belopp: 1000, momssats: 0.25}

# Income tax on 480,000 SEK salary (Stockholm ~32.29%)
curl -H "X-API-Key: skatt_demo_free_2026" \
  https://skatteapi.gracestack.se/calculate/inkomstskatt \
  -H "Content-Type: application/json" \
  -d {arsinkomst: 480000, kommunalskattesats: 0.3229}

# Employer cost for 45,000 SEK/month
curl -H "X-API-Key: skatt_demo_free_2026" \
  https://skatteapi.gracestack.se/calculate/arbetsgivaravgift \
  -H "Content-Type: application/json" \
  -d {lon: 45000, fodelsear: 1990}

API Endpoints

Endpoint Description
/calculate/isk-tax ISK tax (schablonskatt)
/calculate/moms VAT calculation (25%, 12%, 6%)
/calculate/inkomstskatt Municipal income tax
/calculate/arbetsgivaravgift Employer social security contributions
/calculate/kapitalvinst Capital gains tax
/health Health check
/demo No-auth showcase with curl examples

Pricing

  • Free: 30 req/min, demo key included
  • Pro: 300 req/min, 99 SEK/month — Subscribe

Use Cases

  • E-commerce: Calculate VAT at checkout
  • Payroll: Employer cost estimates
  • Fintech: ISK tax projections
  • Accounting: Automate tax calculations

Links


Built by Gracestack — Swedish developer tools for Swedish businesses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment