# Statistics Norway

> Read Norway's official statistics from Statistics Norway (SSB): population by municipality, prices and inflation, jobs and wages, GDP, house prices, energy and thousands more Statbank tables. Search the tables, see what a table holds, get its figures as clean rows by region, period and measure, or the latest figure for a place, and look up Norway's official codes for municipalities, industries, occupations and postal codes. No account or API key required.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/statistics-norway

## Actions

### Get a classification

Get a classification or code list from KLASS: what it covers, the version valid today and every earlier version with the days it applied, and who keeps it.

**Inputs**

- Classification (`classification`, text, required): The classification or code list: pick one (such as Municipalities or Standard Industrial Classification), or type its KLASS number, such as 131. 'Search classifications' finds the rest.

**Outputs**

- `contact_email` (text): Their email address.
- `contact_name` (text): Who to ask about it.
- `current_version` (text): The name of the version valid today, or null.
- `description` (text): What it covers.
- `id` (text): The classification's KLASS number, such as 131, which every classification field takes.
- `last_modified` (text): When KLASS last changed it, in UTC (ISO 8601).
- `name` (text): Its name.
- `owning_section` (text): The division at Statistics Norway that keeps it.
- `statistical_units` (list): What it classifies, such as Region or Person.
- `type` (text): Classification, or Codelist for a code list.
- `url` (text): Its page on ssb.no.
- `version_count` (number): How many versions it has had.
- `versions` (list): Its versions, newest first.

**Example output**

```json
{
  "contact_email": "Dana.Moe@ssb.no",
  "contact_name": "Moe, Dana",
  "current_version": "Municipalities 2026",
  "description": "Municipality is both a term for a political and an administrative level in Norway and a regional level in the publication of statistics. In Norway, the municipality number consists of four digits, where the first two correspond to the county number.",
  "id": "131",
  "last_modified": "2026-10-14T09:10:42Z",
  "name": "Classification of municipalities",
  "owning_section": "320 - Division for population statistic",
  "statistical_units": [
    "Region"
  ],
  "type": "Classification",
  "url": "https://www.ssb.no/en/klass/klassifikasjoner/131",
  "version_count": 141,
  "versions": [
    {
      "current": true,
      "id": "3262",
      "name": "Municipalities 2026",
      "valid_from": "2026-01-01",
      "valid_to": null
    },
    {
      "current": false,
      "id": "1710",
      "name": "Municipalities 2024",
      "valid_from": "2024-01-01",
      "valid_to": "2026-01-01"
    },
    {
      "current": false,
      "id": "1847",
      "name": "Municipalities 2023",
      "valid_from": "2023-01-01",
      "valid_to": "2024-01-01"
    }
  ]
}
```

### Get data from a saved query

Get the figures of a query saved in Statbank (choose the table and values on ssb.no, then save the query to get its number or link) as one row per figure. A saved query that follows the latest periods returns new figures as they come.

**Inputs**

- Saved query (`saved_query`, text, required): The saved query's number, such as 10119120, or its link (https://www.ssb.no/en/statbank/sq/10119120).
- Most rows (`max_rows`, number): The most figures to return, up to 10,000. A selection holding more is refused with what to narrow, so nothing is cut off unnoticed. From 1 to 10000. Default: `1000`.

**Outputs**

- `count` (number): How many figures are listed.
- `notes` (list): Statistics Norway's notes on these figures, links written out.
- `rows` (list): One row per figure, in the query's order.
- `saved_query_id` (text): The saved query's number.
- `source` (text): Who to credit, 'Statistics Norway'. Its licence (CC BY 4.0) asks you to name it wherever you use the figures.
- `table_id` (text): The table the query reads.
- `title` (text): The title Statbank gives the query's figures.
- `total` (number): How many figures the selection holds in all.
- `truncated` (true/false): True when the selection held more figures than 'Most rows' allows and only the first are listed.
- `updated` (text): When Statistics Norway last updated the table, in UTC as an ISO 8601 date and time (new figures come out at 08:00 Norwegian time).
- `url` (text): The table's page in Statbank on ssb.no.

**Example output**

```json
{
  "count": 3,
  "notes": [
    "Please note that base year 2000=100 is updated to 2015=100 from the publishing of the August 2019 indices. This means that all time series are rescaled to the new base year 2015=100. It is important to be aware that changing the reference year can cause discrepancies in already published change rates. This is mainly due to rounding effects."
  ],
  "rows": [
    {
      "codes": {
        "Arbeidstype": "20",
        "ContentsCode": "Byggindeks",
        "Tid": "2020M01"
      },
      "contents": "Construction cost index",
      "contents_code": "Byggindeks",
      "dimensions": {
        "contents": "Construction cost index",
        "month": "2020M01",
        "type of employment": "Multi dwelling houses total"
      },
      "period": "2020M01",
      "period_start": "2020-01-01",
      "region": null,
      "region_code": null,
      "status": null,
      "status_meaning": null,
      "unit": "index",
      "value": 113.1
    },
    {
      "codes": {
        "Arbeidstype": "20",
        "ContentsCode": "EndrForrMnd",
        "Tid": "2020M01"
      },
      "contents": "Change from previous month (per cent)",
      "contents_code": "EndrForrMnd",
      "dimensions": {
        "contents": "Change from previous month (per cent)",
        "month": "2020M01",
        "type of employment": "Multi dwelling houses total"
      },
      "period": "2020M01",
      "period_start": "2020-01-01",
      "region": null,
      "region_code": null,
      "status": null,
      "status_meaning": null,
      "unit": "per cent",
      "value": 0.4
    },
    {
      "codes": {
        "Arbeidstype": "20",
        "ContentsCode": "EndrForrAar",
        "Tid": "2020M01"
      },
      "contents": "Change from previous year (per cent)",
      "contents_code": "EndrForrAar",
      "dimensions": {
        "contents": "Change from previous year (per cent)",
        "month": "2020M01",
        "type of employment": "Multi dwelling houses total"
      },
      "period": "2020M01",
      "period_start": "2020-01-01",
      "region": null,
      "region_code": null,
      "status": null,
      "status_meaning": null,
      "unit": "per cent",
      "value": 2.2
    }
  ],
  "saved_query_id": "10119120",
  "source": "Statistics Norway",
  "table_id": "08655",
  "title": "Construction cost index for multi dwelling houses (2015=100), by type of employment and month",
  "total": 243,
  "truncated": true,
  "updated": "2026-10-13T06:00:00Z",
  "url": "https://www.ssb.no/en/statbank/table/08655"
}
```

### Get table data

Get figures from a Statbank table as one row per figure: choose regions, what to measure, the periods (the latest few or a range) and any other variable such as sex or age. Each row has its period, region, measure, unit, status flag and every dimension named, with the value as a number.

**Inputs**

- Table (`table`, text, required): The Statbank table: pick a headline table, or type its 5-digit number (such as 07459) or paste its Statbank link. 'Search tables' finds the rest.
- Region (`region`, text): Where the figures are for: pick a place or a group (such as 'Group: Counties 2024-' for a row per county), or type codes or names such as 0301 or Bergen, several separated by commas, or * for every region. Leave empty for the whole country when the table allows it.
- Contents (`contents`, text): What to measure, from the table's own list (such as 'Persons' or '12-month rate'), or codes typed in, several separated by commas. Leave empty for everything the table measures.
- From period (`from_period`, text): The first period to return, from the table's own list (such as 2020 or 2026M01). Leave empty with 'To period' to get the latest periods instead.
- To period (`to_period`, text): The last period to return. Leave empty to run to the latest one when 'From period' is set.
- Latest periods (`latest_periods`, number): How many of the most recent periods to return when neither 'From period' nor 'To period' is set, up to 1,000. From 1 to 1000. Default: `1`.
- Other selections (`other_selections`, object): A value for each of the table's other variables, such as sex or age: pick one, a group, All values, or type codes separated by commas. Leave one empty for its total (or the table's own choice when it has no total).
- Most rows (`max_rows`, number): The most figures to return, up to 10,000. A selection holding more is refused with what to narrow, so nothing is cut off unnoticed. From 1 to 10000. Default: `1000`.

**Outputs**

- `count` (number): How many figures are listed.
- `notes` (list): Statistics Norway's notes on these figures, links written out.
- `rows` (list): One row per figure, in the table's order.
- `source` (text): Who to credit, 'Statistics Norway'. Its licence (CC BY 4.0) asks you to name it wherever you use the figures.
- `table_id` (text): The table's 5-digit Statbank number, such as 07459. Every table field takes it.
- `title` (text): The table's title.
- `total` (number): How many figures the selection holds in all.
- `totals_over` (list): Variables left out, so each figure is their total (all ages, both sexes).
- `truncated` (true/false): True when the selection held more figures than 'Most rows' allows and only the first are listed.
- `updated` (text): When Statistics Norway last updated the table, in UTC as an ISO 8601 date and time (new figures come out at 08:00 Norwegian time).
- `url` (text): The table's page in Statbank on ssb.no.

**Example output**

```json
{
  "count": 4,
  "notes": [
    "Expired municipalities in the period 1986-2013 are not included in the table that distributes people in Police districts 2016. The figures for several of the Police districts 2016 are therefore not complete for this period."
  ],
  "rows": [
    {
      "codes": {
        "ContentsCode": "Personer1",
        "Kjonn": "2",
        "Region": "03",
        "Tid": "2026"
      },
      "contents": "Persons",
      "contents_code": "Personer1",
      "dimensions": {
        "contents": "Persons",
        "region": "Oslo - Oslove",
        "sex": "Females",
        "year": "2026"
      },
      "period": "2026",
      "period_start": "2026-01-01",
      "region": "Oslo - Oslove",
      "region_code": "03",
      "status": null,
      "status_meaning": null,
      "unit": "number",
      "value": 366107
    },
    {
      "codes": {
        "ContentsCode": "Personer1",
        "Kjonn": "1",
        "Region": "03",
        "Tid": "2026"
      },
      "contents": "Persons",
      "contents_code": "Personer1",
      "dimensions": {
        "contents": "Persons",
        "region": "Oslo - Oslove",
        "sex": "Males",
        "year": "2026"
      },
      "period": "2026",
      "period_start": "2026-01-01",
      "region": "Oslo - Oslove",
      "region_code": "03",
      "status": null,
      "status_meaning": null,
      "unit": "number",
      "value": 362607
    },
    {
      "codes": {
        "ContentsCode": "Personer1",
        "Kjonn": "2",
        "Region": "4601",
        "Tid": "2026"
      },
      "contents": "Persons",
      "contents_code": "Personer1",
      "dimensions": {
        "contents": "Persons",
        "region": "Bergen",
        "sex": "Females",
        "year": "2026"
      },
      "period": "2026",
      "period_start": "2026-01-01",
      "region": "Bergen",
      "region_code": "4601",
      "status": null,
      "status_meaning": null,
      "unit": "number",
      "value": 146663
    },
    {
      "codes": {
        "ContentsCode": "Personer1",
        "Kjonn": "1",
        "Region": "4601",
        "Tid": "2026"
      },
      "contents": "Persons",
      "contents_code": "Personer1",
      "dimensions": {
        "contents": "Persons",
        "region": "Bergen",
        "sex": "Males",
        "year": "2026"
      },
      "period": "2026",
      "period_start": "2026-01-01",
      "region": "Bergen",
      "region_code": "4601",
      "status": null,
      "status_meaning": null,
      "unit": "number",
      "value": 148197
    }
  ],
  "source": "Statistics Norway",
  "table_id": "07459",
  "title": "Population, by sex and one-year age groups (M) 1986-2026",
  "total": 4,
  "totals_over": [
    "age"
  ],
  "truncated": false,
  "updated": "2026-02-25T07:00:00Z",
  "url": "https://www.ssb.no/en/statbank/table/07459"
}
```

### Get table details

See what a Statbank table holds: its title, the periods it covers and when it was updated, each variable with how many values it has, whether it must be chosen and how it can be grouped, what it measures in which unit, its notes and who to contact.

**Inputs**

- Table (`table`, text, required): The Statbank table: pick a headline table, or type its 5-digit number (such as 07459) or paste its Statbank link. 'Search tables' finds the rest.

**Outputs**

- `contacts` (list): Who at Statistics Norway answers for the table.
- `contents` (list): What it measures, each with its unit.
- `discontinued` (true/false): True when the table is no longer updated.
- `first_period` (text): The first period the table covers.
- `frequency` (text): How often its figures come, such as Annual or Monthly.
- `id` (text): The table's 5-digit Statbank number, such as 07459. Every table field takes it.
- `last_period` (text): The latest period the table covers.
- `notes` (list): Statistics Norway's notes on the table, links written out.
- `official_statistics` (true/false): True when its figures are official statistics.
- `source` (text): Who to credit, 'Statistics Norway'. Its licence (CC BY 4.0) asks you to name it wherever you use the figures.
- `statistics_page` (text): The page on ssb.no about the statistics behind the table, or null.
- `subject` (text): The subject it is filed under.
- `title` (text): The table's title.
- `updated` (text): When Statistics Norway last updated the table, in UTC as an ISO 8601 date and time (new figures come out at 08:00 Norwegian time).
- `url` (text): The table's page in Statbank on ssb.no.
- `variables` (list): Its variables (dimensions), in the table's order.

**Example output**

```json
{
  "contacts": [
    {
      "email": "mgh@ssb.no",
      "name": "Magnus Haug",
      "phone": "40 81 14 91"
    }
  ],
  "contents": [
    {
      "base_period": null,
      "code": "Personer1",
      "decimals": 0,
      "label": "Persons",
      "reference_period": "1.1.",
      "unit": "number"
    }
  ],
  "discontinued": false,
  "first_period": "1986",
  "frequency": "Annual",
  "id": "07459",
  "last_period": "2026",
  "notes": [
    "Expired municipalities in the period 1986-2013 are not included in the table that distributes people in Police districts 2016. The figures for several of the Police districts 2016 are therefore not complete for this period."
  ],
  "official_statistics": true,
  "source": "Statistics Norway",
  "statistics_page": "https://www.ssb.no/en/folkemengde",
  "subject": "Population",
  "title": "Population, by sex and one-year age groups (M) 1986-2026",
  "updated": "2026-02-25T07:00:00Z",
  "url": "https://www.ssb.no/en/statbank/table/07459",
  "variables": [
    {
      "code": "Region",
      "first_value": "The whole country",
      "groupings": [
        {
          "id": "agg_KommFylker",
          "label": "Counties 2024, aggregated time series",
          "type": "Aggregation"
        },
        {
          "id": "agg_Fylker2024",
          "label": "Counties 2024-",
          "type": "Aggregation"
        },
        {
          "id": "agg_Fylker2020",
          "label": "Counties 2020-2023",
          "type": "Aggregation"
        }
      ],
      "label": "region",
      "last_value": "Unknown municipality",
      "required": false,
      "role": "region",
      "value_count": 994
    },
    {
      "code": "Kjonn",
      "first_value": "Females",
      "groupings": [],
      "label": "sex",
      "last_value": "Males",
      "required": false,
      "role": null,
      "value_count": 2
    },
    {
      "code": "Alder",
      "first_value": "0 years",
      "groupings": [
        {
          "id": "agg_FemAarigGruppering",
          "label": "5-years groups",
          "type": "Aggregation"
        },
        {
          "id": "agg_TiAarigGruppering",
          "label": "10-years groups",
          "type": "Aggregation"
        }
      ],
      "label": "age",
      "last_value": "105 years or older",
      "required": false,
      "role": null,
      "value_count": 106
    },
    {
      "code": "ContentsCode",
      "first_value": "Persons",
      "groupings": [],
      "label": "contents",
      "last_value": "Persons",
      "required": true,
      "role": "contents",
      "value_count": 1
    },
    {
      "code": "Tid",
      "first_value": "1986",
      "groupings": [],
      "label": "year",
      "last_value": "2026",
      "required": true,
      "role": "time",
      "value_count": 41
    }
  ]
}
```

### Get the latest figures

Get a table's figures for its latest period, for one place or the whole country, such as the latest population of Bergen or this month's consumer price index. Other variables are left at their totals.

**Inputs**

- Table (`table`, text, required): The Statbank table: pick a headline table, or type its 5-digit number (such as 07459) or paste its Statbank link. 'Search tables' finds the rest.
- Region (`region`, text): Where the figures are for: pick a place or a group (such as 'Group: Counties 2024-' for a row per county), or type codes or names such as 0301 or Bergen, several separated by commas, or * for every region. Leave empty for the whole country when the table allows it.
- Contents (`contents`, text): What to measure, from the table's own list (such as 'Persons' or '12-month rate'), or codes typed in, several separated by commas. Leave empty for everything the table measures.

**Outputs**

- `count` (number): How many figures are listed.
- `figures` (list): Every figure for the latest period, one per row.
- `period` (text): The latest period the table has, such as 2026M09.
- `period_start` (text): That period's first day (YYYY-MM-DD).
- `region` (text): The region's name, when the figures are for one region.
- `region_code` (text): The region's code, when the figures are for one region.
- `source` (text): Who to credit, 'Statistics Norway'. Its licence (CC BY 4.0) asks you to name it wherever you use the figures.
- `table_id` (text): The table's 5-digit Statbank number, such as 07459. Every table field takes it.
- `title` (text): The table's title.
- `total` (number): How many figures the selection holds in all.
- `totals_over` (list): Variables left out, so each figure is their total (all ages, both sexes).
- `truncated` (true/false): True when only the first figures are listed.
- `unit` (text): The first figure's unit.
- `updated` (text): When Statistics Norway last updated the table, in UTC as an ISO 8601 date and time (new figures come out at 08:00 Norwegian time).
- `url` (text): The table's page in Statbank on ssb.no.
- `value` (number): The first figure, the only one when the table measures one thing for the place.

**Example output**

```json
{
  "count": 1,
  "figures": [
    {
      "codes": {
        "ContentsCode": "Personer1",
        "Region": "4601",
        "Tid": "2026"
      },
      "contents": "Persons",
      "contents_code": "Personer1",
      "dimensions": {
        "contents": "Persons",
        "region": "Bergen",
        "year": "2026"
      },
      "period": "2026",
      "period_start": "2026-01-01",
      "region": "Bergen",
      "region_code": "4601",
      "status": null,
      "status_meaning": null,
      "unit": "number",
      "value": 294860
    }
  ],
  "period": "2026",
  "period_start": "2026-01-01",
  "region": "Bergen",
  "region_code": "4601",
  "source": "Statistics Norway",
  "table_id": "07459",
  "title": "Population, by sex and one-year age groups (M) 1986-2026",
  "total": 1,
  "totals_over": [
    "sex",
    "age"
  ],
  "truncated": false,
  "unit": "number",
  "updated": "2026-02-25T07:00:00Z",
  "url": "https://www.ssb.no/en/statbank/table/07459",
  "value": 294860
}
```

### List a variable's values

List the values of one of a table's variables with their codes, such as every region, age or industry, or the groups of one of its groupings (such as counties), optionally only those whose code or name contains some text.

**Inputs**

- Table (`table`, text, required): The Statbank table: pick a headline table, or type its 5-digit number (such as 07459) or paste its Statbank link. 'Search tables' finds the rest.
- Variable (`variable`, text, required): The variable: pick one of the table's, or type its code or name, such as Region or sex.
- Grouping (`grouping`, text): List the groups of one of the variable's groupings instead, such as 'Counties 2024-'. Leave empty for the values themselves.
- Containing (`search`, text): Only values whose code or name contains this text, such as 'Bergen'. Leave empty for all.
- How many to return (`limit`, number): How many values to return, up to 5,000. From 1 to 5000. Default: `1000`.

**Outputs**

- `count` (number): How many are listed here.
- `grouping_id` (text): The grouping listed, or null for the values themselves.
- `grouping_label` (text): What the grouping is, or null.
- `required` (true/false): True when a value must be chosen for it; false when it can be left out for its total.
- `table_id` (text): The table's 5-digit Statbank number, such as 07459. Every table field takes it.
- `total` (number): How many values match in all.
- `truncated` (true/false): True when there were more than are listed here: raise the limit or narrow the search.
- `values` (list): The values, in the table's order.
- `variable_code` (text): The variable's code, such as Region.
- `variable_label` (text): The variable's name, such as region.

**Example output**

```json
{
  "count": 4,
  "grouping_id": null,
  "grouping_label": null,
  "required": false,
  "table_id": "07459",
  "total": 4,
  "truncated": false,
  "values": [
    {
      "code": "4601",
      "label": "Bergen",
      "unit": null
    },
    {
      "code": "1201",
      "label": "Bergen (1972-2019)",
      "unit": null
    },
    {
      "code": "13",
      "label": "Bergen (-1971)",
      "unit": null
    },
    {
      "code": "1301",
      "label": "Bergen (-1971)",
      "unit": null
    }
  ],
  "variable_code": "Region",
  "variable_label": "region"
}
```

### List classification codes

List a classification's codes and names valid on a day, such as every municipality today or the industry sections, optionally one level only, chosen codes, or names containing some text.

**Inputs**

- Classification (`classification`, text, required): The classification or code list: pick one (such as Municipalities or Standard Industrial Classification), or type its KLASS number, such as 131. 'Search classifications' finds the rest.
- Valid on (`valid_on`, date): The day the codes must be valid on. Leave empty for today.
- Level (`level`, number): Only codes at this level, from 1 at the top (industry sections are level 1, divisions level 2). Leave empty for every level. From 1 to 10.
- Codes (`codes`, text): Only these codes, separated by commas, with * for any ending (46* for Vestland's municipalities) and a dash for a range (01-03). Leave empty for all.
- Containing (`search`, text): Only codes whose code or name contains this text. Leave empty for all.
- How many to return (`limit`, number): How many codes to return, up to 5,000. From 1 to 5000. Default: `1000`.

**Outputs**

- `classification_id` (text): The classification's KLASS number, such as 131, which every classification field takes.
- `codes` (list): The codes, in KLASS's order.
- `count` (number): How many are listed here.
- `date` (text): The day the codes are valid on (YYYY-MM-DD).
- `total` (number): How many codes match in all.
- `truncated` (true/false): True when there were more than are listed here: raise the limit or narrow the search.

**Example output**

```json
{
  "classification_id": "6",
  "codes": [
    {
      "code": "A",
      "level": 1,
      "name": "Agriculture, forestry and fishing",
      "notes": null,
      "parent_code": null,
      "short_name": "Agriculture, forestry and fishing"
    },
    {
      "code": "B",
      "level": 1,
      "name": "Mining and quarrying",
      "notes": null,
      "parent_code": null,
      "short_name": "Mining and quarrying"
    },
    {
      "code": "C",
      "level": 1,
      "name": "Manufacturing",
      "notes": null,
      "parent_code": null,
      "short_name": "Manufacturing"
    },
    {
      "code": "D",
      "level": 1,
      "name": "Electricity, gas, steam and air conditioning supply",
      "notes": null,
      "parent_code": null,
      "short_name": "Electricity, gas and steam supply"
    }
  ],
  "count": 4,
  "date": "2026-10-23",
  "total": 22,
  "truncated": true
}
```

### List code changes

List how a classification's codes changed between two days: codes added, ended, renamed or moved to new codes, such as municipalities merged in 2024. Optionally only the changes to one code.

**Inputs**

- Classification (`classification`, text, required): The classification or code list: pick one (such as Municipalities or Standard Industrial Classification), or type its KLASS number, such as 131. 'Search classifications' finds the rest.
- From date (`from_date`, date, required): The first day to look at.
- To date (`to_date`, date): The day to stop at (changes on it are left out). Leave empty for up to today.
- Code (`code`, text): Only changes to or from this code. Leave empty for every change.

**Outputs**

- `changes` (list): Each change from an old code to a new one.
- `classification_id` (text): The classification's KLASS number, such as 131, which every classification field takes.
- `code` (text): The code the changes were narrowed to, or null for all.
- `count` (number): How many changes are listed.
- `from_date` (text): The first day looked at (YYYY-MM-DD).
- `to_date` (text): The day after the last one looked at (YYYY-MM-DD).

**Example output**

```json
{
  "changes": [
    {
      "change": "recoded",
      "changed_on": "2024-01-01",
      "new_code": "1508",
      "new_name": "\u00c5lesund",
      "old_code": "1507",
      "old_name": "\u00c5lesund"
    },
    {
      "change": "recoded",
      "changed_on": "2024-01-01",
      "new_code": "1580",
      "new_name": "Haram",
      "old_code": "1507",
      "old_name": "\u00c5lesund"
    }
  ],
  "classification_id": "131",
  "code": "1507",
  "count": 2,
  "from_date": "2023-06-01",
  "to_date": "2024-06-01"
}
```

### List recently updated tables

List the Statbank tables updated since a day, newest first, optionally only those matching words. Statistics Norway publishes new figures at 08:00 Norwegian time on working days.

**Inputs**

- Updated since (`since`, date): List tables updated on this day or later. Leave empty for today.
- Search text (`query`, text): Only tables whose titles match these words. Leave empty for every updated table.
- How many to return (`limit`, number): How many tables to return, up to 100. From 1 to 100. Default: `50`.
- Page (`page`, number): Which page of results to return, from 1. From 1 to 10000. Default: `1`.

**Outputs**

- `count` (number): How many tables are on this page.
- `page` (number): Which page of results this is, from 1.
- `query` (text): The search text as it was sent, or null for none.
- `since` (text): The first day counted (YYYY-MM-DD): tables updated on it or later are listed.
- `tables` (list): The tables on this page, most recently updated first.
- `total` (number): How many tables match in all.
- `total_pages` (number): How many pages of results there are.

**Example output**

```json
{
  "count": 2,
  "page": 1,
  "query": null,
  "since": "2026-10-21",
  "tables": [
    {
      "discontinued": false,
      "first_period": "2016M01",
      "frequency": "Monthly",
      "id": "12940",
      "last_period": "2026M09",
      "subject": "Labour market and earnings",
      "title": "Basis for employer's National insurance contributions, calculated employer's National insurance contributions and payment in cash, by sector 2016M01-2026M09",
      "updated": "2026-10-21T06:00:00Z",
      "url": "https://www.ssb.no/en/statbank/table/12940",
      "variables": [
        "sector",
        "type of contributions",
        "contents",
        "month"
      ]
    },
    {
      "discontinued": false,
      "first_period": "2015M12",
      "frequency": "Monthly",
      "id": "13966",
      "last_period": "2026M08",
      "subject": "Labour market and earnings",
      "title": "Public enterprises with simplified settlement of National insurance contributions (NIC), by type of contributions 2015M12-2026M08",
      "updated": "2026-10-21T06:00:00Z",
      "url": "https://www.ssb.no/en/statbank/table/13966",
      "variables": [
        "type of contributions",
        "contents",
        "month"
      ]
    }
  ],
  "total": 71,
  "total_pages": 15
}
```

### Look up a code

Find the name of one code in a classification on a day, such as municipality 4601 (Bergen) or industry 47.110, with the code above it. A code that isn't valid that day comes back as not found.

**Inputs**

- Classification (`classification`, text, required): The classification or code list: pick one (such as Municipalities or Standard Industrial Classification), or type its KLASS number, such as 131. 'Search classifications' finds the rest.
- Code (`code`, text, required): The code to look up, such as 0301 or 47.110.
- Valid on (`valid_on`, date): The day the codes must be valid on. Leave empty for today.

**Outputs**

- `classification_id` (text): The classification's KLASS number, such as 131, which every classification field takes.
- `code` (text): The code looked up.
- `date` (text): The day looked at (YYYY-MM-DD).
- `found` (true/false): True when the code is valid on that day.
- `level` (number): Its level, from 1 at the top.
- `name` (text): Its name, or null when not found.
- `notes` (text): KLASS's notes on it, or null.
- `parent_code` (text): The code one level up, or null.
- `parent_name` (text): The name of the code one level up, or null.
- `short_name` (text): A shorter name, when it has one.

**Example output**

```json
{
  "classification_id": "6",
  "code": "47.110",
  "date": "2026-10-23",
  "found": true,
  "level": 5,
  "name": "Non-specialised retail sale of predominately food, beverages or tobacco",
  "notes": null,
  "parent_code": "47.11",
  "parent_name": "Non-specialised retail sale of predominately food, beverages or tobacco",
  "short_name": "Non-spec. ret. sale of predom. food, bev., tobacco"
}
```

### Map codes between classifications

Turn codes from one classification into another on a day, such as postal codes into municipalities or municipalities into counties, for every code or only those given.

**Inputs**

- Map from (`classification`, text, required): The classification the codes are in: pick one (such as Postal code areas or Municipalities), or type its KLASS number.
- Map to (`target_classification`, text, required): The classification to turn them into, such as Municipalities (131) or County (104).
- Valid on (`valid_on`, date): The day the codes must be valid on. Leave empty for today.
- Codes (`codes`, text): Only these codes, separated by commas, such as postal codes 0150, 5003. Leave empty for every code.
- How many to return (`limit`, number): How many mappings to return, up to 5,000. From 1 to 5000. Default: `1000`.

**Outputs**

- `classification_id` (text): The classification's KLASS number, such as 131, which every classification field takes.
- `count` (number): How many are listed here.
- `date` (text): The day the mapping is valid on (YYYY-MM-DD).
- `mappings` (list): Each code and what it corresponds to.
- `not_found` (list): Codes asked for that have no mapping on that day.
- `target_classification_id` (text): The classification mapped to.
- `total` (number): How many mappings match in all.
- `truncated` (true/false): True when there were more than are listed here: raise the limit or narrow the search.

**Example output**

```json
{
  "classification_id": "616",
  "count": 2,
  "date": "2026-10-23",
  "mappings": [
    {
      "source_code": "0150",
      "source_name": "OSLO",
      "target_code": "0301",
      "target_name": "Oslo - Oslove"
    },
    {
      "source_code": "5003",
      "source_name": "BERGEN",
      "target_code": "4601",
      "target_name": "Bergen"
    }
  ],
  "not_found": [
    "9999"
  ],
  "target_classification_id": "131",
  "total": 2,
  "truncated": false
}
```

### Search classifications

Find Norway's official classifications in KLASS by words, such as 'municipalities', 'industry' or 'occupation', optionally with Statistics Norway's code lists (such as postal code areas).

**Inputs**

- Search text (`query`, text, required): Words to look for in names and descriptions.
- Include code lists (`include_code_lists`, true/false): Also find code lists, such as postal code areas, which are left out by default. Default: `false`.
- How many to return (`limit`, number): How many classifications to return, up to 100. From 1 to 100. Default: `20`.

**Outputs**

- `classifications` (list): The matching classifications and code lists, best match first.
- `count` (number): How many are listed here.
- `query` (text): The search text.

**Example output**

```json
{
  "classifications": [
    {
      "id": "115",
      "language": "en",
      "name": "Classification of municipalities by population size",
      "snippet": "When publishing statistics based on municipalities and population size, this classification is to be used.",
      "url": "https://www.ssb.no/en/klass/klassifikasjoner/115"
    },
    {
      "id": "131",
      "language": "en",
      "name": "Classification of municipalities",
      "snippet": "Municipality is both a term for a political and an administrative level in Norway and a regional level in the publication of statistics. In Norway, the municipality number consists of four digits, where the first two correspond to the county number.",
      "url": "https://www.ssb.no/en/klass/klassifikasjoner/131"
    },
    {
      "id": "129",
      "language": "en",
      "name": "Classification of municipality groups",
      "snippet": "The main classification of Standard Classification of Municipalities is based on the criteria industrial link and centrality.",
      "url": "https://www.ssb.no/en/klass/klassifikasjoner/129"
    }
  ],
  "count": 3,
  "query": "municipalities"
}
```

### Search tables

Find Statbank tables by words in their titles, such as 'population', 'consumer price index' or 'salmon'. Each comes with its table number, the periods it covers, how often it is updated, when it was last updated and its link.

**Inputs**

- Search text (`query`, text): Words to look for in table titles, or a table number. Leave empty to browse every current table.
- Include discontinued tables (`include_discontinued`, true/false): Also find tables that are no longer updated (closed series), which are left out by default. Default: `false`.
- How many to return (`limit`, number): How many tables to return, up to 100. From 1 to 100. Default: `20`.
- Page (`page`, number): Which page of results to return, from 1. From 1 to 10000. Default: `1`.

**Outputs**

- `count` (number): How many tables are on this page.
- `page` (number): Which page of results this is, from 1.
- `query` (text): The search text as it was sent, or null for none.
- `tables` (list): The tables on this page.
- `total` (number): How many tables match in all.
- `total_pages` (number): How many pages of results there are.

**Example output**

```json
{
  "count": 2,
  "page": 1,
  "query": "population",
  "tables": [
    {
      "discontinued": false,
      "first_period": "1990",
      "frequency": "Annual",
      "id": "05212",
      "last_period": "2026",
      "subject": "Population",
      "title": "Population in densely and sparsely populated areas, by sex (M) 1990-2026",
      "updated": "2026-08-31T06:00:00Z",
      "url": "https://www.ssb.no/en/statbank/table/05212",
      "variables": [
        "region",
        "densely/sparsely populated areas",
        "sex",
        "contents",
        "year"
      ]
    },
    {
      "discontinued": false,
      "first_period": "2008",
      "frequency": "Annual",
      "id": "12598",
      "last_period": "2024",
      "subject": "Income and consumption",
      "title": "Income indicators for different low income groups (per cent) 2008-2024",
      "updated": "2026-10-23T06:00:00Z",
      "url": "https://www.ssb.no/en/statbank/table/12598",
      "variables": [
        "group",
        "population",
        "contents",
        "year"
      ]
    }
  ],
  "total": 398,
  "total_pages": 133
}
```
