How munpatch works
Built on an open-source command-line tool
The problem



How the patching works
The data
The boundary changes registry
Source and coverage
The registry data comes from Statistics Norway's Klass API (data.ssb.no/api/klass), classification 131, Standard for kommuneinndeling — SSB's official register for classifications and code lists, which records every approved change to municipality codes and names. The dataset covers 2,097 recorded changes across 1,199 municipalities from 1839 to 2026, including mergers, divisions, name changes and code changes at the municipality level.
Method
Every change record and every version of the classification is fetched from the Klass API. Validity periods are split at each year a code participates in a change, so source and target periods match the historical record exactly. Change type is classified per row by how many old codes map to how many new codes on a given date: merger, division, name change, code change, or combined code and name change. Unchanged rows are dropped, so only actual boundary or identity changes appear. Each row includes the official Norwegian note from Klass, split by source and target municipality where available, and the interface generates a plain-language description summarising what happened — for example: “In 2020, several municipalities merged into one.”
Download and publisher
The full registry dataset can be downloaded as an Excel file from the button on the registry pages. The spreadsheet follows the same column layout as the original master list and can be used for analysis, mapping or research. This tool is published by Nordregio, a research institute for regional policy and planning in the Nordic countries.
