Ssb No Classification
ssb_no_classificationLook up a Statistics Norway (SSB) KLASS classification (code list) and its correspondences, valid at a date or year. Answers e.g. "which KOSTRA group is Bergen in, 2025?" (id 112 = KOSTRA municipality groups, mapped to id 131 = municipalities by default) and lists all municipalities in a county (code_prefix "46" = Vestland) with their KOSTRA group for each of several years. Other ids: 131 municipalities, 104 counties. Without id lists classifications. Unknown id returns found:false. Source: Statistics Norway (SSB), KLASS classification service.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": 112,
"code": "4601",
"year": 2025
},
"name": "ssb_no_classification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | KLASS classification id, e.g. 112 (KOSTRA groups), 131 (municipalities). Omit to list classifications. | |
| code | No | Match one code on either side, e.g. "4601" (Bergen) or "EKG12". | |
| date | No | Exact date YYYY-MM-DD (instead of year). | |
| year | No | Year; resolves to 1 January of that year. Default: today. | |
| years | No | Several years in one call (max 10), e.g. [2023,2024,2025]. | |
| target_id | No | Target classification for correspondences (default 131 when id is 112). Omit for a plain code list. | |
| code_prefix | No | Match codes starting with this on either side, e.g. "46" for Vestland municipalities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| count | No | ||
| found | No | ||
| source | No | ||
| message | No | ||
| results | No | ||
| data_as_of | No | ||
| classification | No | ||
| classifications | No | ||
| target_classification_id | No |