Trekktabeller API

Slå opp forskuddstrekk fra Skatteetatens trekktabeller. A REST API for Norwegian withholding-tax deduction tables.

Given a table number, a period, a table type and an income, the API returns the withholding amount (trekk). Data is fixed for the tax year, so single lookups are cacheable at the edge.

Base URL

Endpoints

GET/api/v1/trekk

Single lookup. All four query parameters are required.

ParamValuesMeaning
tabelle.g. 7100Table number (tabellnummer)
periode1–71=month, 2=14 days, 3=week, 4=4 days, 5=3 days, 6=2 days, 7=1 day
type0 or 10=lønn (salary), 1=pensjon (pension)
grunnlage.g. 45000Income basis (trekkgrunnlag)
{
  "tabellnummer": 7100,
  "trekkperiode": 1,
  "trekkperiodeNavn": "måned",
  "tabelltype": 0,
  "tabelltypeNavn": "lønn",
  "grunnlag": 45000,
  "matchetGrunnlag": 45000,
  "trekk": 12345,
  "overTabell": false
}

matchetGrunnlag is the bracket the income matched; overTabell: true means the income exceeds the highest tabulated bracket (beyond it an excess percentage applies, which is not part of this dataset). Income below the lowest bracket returns trekk: 0. An unknown table/period/type combination returns 404; invalid parameters return 400.

POST/api/v1/trekk/batch

Batch lookup (up to 1000 items) — for resolving many at once.

Returns { "resultater": [ … ] } in input order; each entry carries a funnet (found) flag.

GET/api/v1/tabeller

Lists the available table numbers plus the period/type enumerations.

GET/health

Returns { "status": "ok" }.

Try it