ssb_no_classification
Pack: ssb-no · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ssb_no_classification for the schema, then POST the same URL with its arguments for the data.
Look 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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer,string | no | KLASS classification id, e.g. 112 (KOSTRA groups), 131 (municipalities). Omit to list classifications. |
year | integer | no | Year; resolves to 1 January of that year. Default: today. |
years | array | no | Several years in one call (max 10), e.g. [2023,2024,2025]. |
items | integer | no | |
date | string | no | Exact date YYYY-MM-DD (instead of year). |
target_id | integer,string | no | Target classification for correspondences (default 131 when id is 112). Omit for a plain code list. |
code | string | no | Match one code on either side, e.g. “4601” (Bergen) or “EKG12”. |
code_prefix | string | no | Match codes starting with this on either side, e.g. “46” for Vestland municipalities. |
Example call
Arguments
{
"id": 112,
"code": "4601",
"year": 2025
}
curl
curl -X POST https://gateway.pipeworx.io/ssb-no/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ssb_no_classification","arguments":{"id":112,"code":"4601","year":2025}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ssb_no_classification', {
"id": 112,
"code": "4601",
"year": 2025
});
More examples
{
"id": 112,
"code_prefix": "46",
"years": [
2023,
2024,
2025
]
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | null | |
message | string | null | |
count | number | null | |
source | string | null | |
data_as_of | string | null | |
target_classification_id | string | null | |
classification | object | null | |
classifications | array | |
results | array |
Full JSON Schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"found": {
"type": "boolean"
},
"id": {
"type": [
"string",
"null"
]
},
"message": {
"type": [
"string",
"null"
]
},
"count": {
"type": [
"number",
"null"
]
},
"source": {
"type": [
"string",
"null"
]
},
"data_as_of": {
"type": [
"string",
"null"
]
},
"target_classification_id": {
"type": [
"string",
"null"
]
},
"classification": {
"type": [
"object",
"null"
],
"additionalProperties": true,
"properties": {
"id": {
"type": [
"number",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"last_modified": {
"type": [
"string",
"null"
]
}
}
},
"classifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"id": {
"type": [
"number",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"last_modified": {
"type": [
"string",
"null"
]
}
}
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"date": {
"type": [
"string",
"null"
]
},
"found": {
"type": "boolean"
},
"count": {
"type": [
"number",
"null"
]
},
"message": {
"type": [
"string",
"null"
]
},
"version": {
"type": [
"object",
"null"
],
"additionalProperties": true,
"properties": {
"id": {
"type": [
"number",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"valid_from": {
"type": [
"string",
"null"
]
},
"valid_to": {
"type": [
"string",
"null"
]
},
"last_modified": {
"type": [
"string",
"null"
]
}
}
},
"correspondences": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"source_code": {
"type": [
"string",
"null"
]
},
"source_name": {
"type": [
"string",
"null"
]
},
"target_code": {
"type": [
"string",
"null"
]
},
"target_name": {
"type": [
"string",
"null"
]
}
}
}
},
"codes": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"code": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"level": {
"type": [
"string",
"null"
]
},
"parent_code": {
"type": [
"string",
"null"
]
},
"notes": {
"type": [
"string",
"null"
]
}
}
}
}
}
}
}
}
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the ssb-no pack
{
"mcpServers": {
"ssb-no": {
"url": "https://gateway.pipeworx.io/ssb-no/mcp"
}
}
}
See Getting Started for client-specific install steps.