Rank municipalities or counties on a statistic
statistics_rankEvery municipality or county ranked on one SSB statistic for one period, highest or lowest first, with Norway's figure for reference. Give compare_to for an earlier period to rank by change instead ('which municipalities grew fastest since 2015?'). Uses SSB's figures for today's borders where the table has them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_id": "<table_id>"
},
"name": "statistics_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | municipality | |
| limit | No | ||
| order | No | highest | |
| period | No | e.g. '2025'. Defaults to the latest. | |
| filters | No | Codes for the table's other dimensions. | |
| measure | No | ContentsCode, when there are several. | |
| table_id | Yes | SSB table, e.g. '07459'. | |
| min_value | No | Leave out regions whose value is below this, e.g. 1000 when ranking change, so that tiny municipalities with large swings don't top the list. | |
| compare_to | No | An earlier period. Adds the change to each row and ranks by it. |