# Nordic Statistics — Sweden, Norway & Finland Official Data (`alauddinburki/nordic-statistics`) Actor

Official statistics from Statistics Sweden, Statistics Norway and Statistics Finland as clean rows: population, prices, wages, housing, energy by region and period, with readable labels. Search all three catalogues and list a table's variables. No key.

- **URL**: https://apify.com/alauddinburki/nordic-statistics.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** Business, Education
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Nordic Statistics — Sweden, Norway & Finland Official Data

Get official tables from **Statistics Sweden (SCB)**, **Statistics Norway (SSB)** and **Statistics Finland** as
clean rows. Topics include
population, prices and CPI, wages, employment, housing, trade, energy, elections and more, by region and period. Each
row has the region, period, measure, value and unit, plus every variable as code and readable label. You don't need
to learn the PxWeb query language:

1. **Search the catalogues** in English ("consumer price", "population", "electricity") to get table IDs.
2. **List a table's variables** and their codes.
3. **Get the data**: pick values by code or label, or with `top(3)` / `*`, and set how many of the latest periods
   you want. Variables you leave out use the table's own default.

This uses each office's official PxWeb API, with no key. Swedish IDs look like `TAB6473`, Norwegian ones like
`07459` and Finnish ones like `vaerak/11rb.px`. You can also paste an ssb.no statbank or pxdata.stat.fi link. Staff contact details that come with each table are never collected.

### Use it for

- **Analysts and researchers:** Nordic regional data in a sheet or BI tool, on a schedule.
- **Real estate, retail and energy teams:** municipal population, prices and consumption, with no manual exports.
- **Journalists:** the latest monthly figure the day it's published.

### Input examples

```json
{ "searchTables": "consumer price index", "office": "both" }
```

```json
{ "table": "07459", "describeOnly": true }
```

```json
{
  "table": "TAB6473",
  "filters": { "Region": ["Sweden", "Stockholm county"], "Forandringar": ["100"], "Kon": ["TotSa"] },
  "latestPeriods": 6
}
```

### Output

| Field | Example |
|---|---|
| `office`, `table`, `tableTitle` | Statistics Sweden · TAB6473 · Population by region … |
| `region`, `regionCode`, `period` | Sweden · 00 · 2026M04 |
| `measure`, `value`, `unit`, `decimals`, `status` | Population · 10,605,725 · number · 0 |
| `dimensions`, `dimensionLabels` | every variable as code and label |

Search rows carry the table ID, title, first and last period, frequency, last update, variables and subject. Variable
rows carry the variable's ID, label, position, whether it's optional, and its codes with labels.

### Good to know

- Each office caps the cells in one request. If a table is too large, the office's own message is shown. Pick fewer
  values or periods.
- Finland's catalogue search returns table IDs and titles. Its periods and variables appear once you list the table.

### Pricing

Pay per result: **$0.0005 per row**. Plus a start fee of $0.0001 per GB of allocated memory (minimum one event).
One row is one value, one table (search) or one variable (variable list).

### Verification status (2026-11-19, local)

- ✅ 5 unit tests on live fixtures, including Statistics Finland's v1 search, metadata, POST body and values. Also
  covered: table IDs pick the office, search, metadata and value matching by code, label or
  expression, and value rows for both offices with no contact data.
- ✅ Live:
  - SCB population for Sweden and Stockholm by label, latest 6 months → 12 rows.
  - SSB Oslo population by sex, from a statbank link, latest 3 years → 6 rows.
  - SCB CPI with the table's default selection → 13 rows.
  - A search for "consumer price index" → tables.
  - SSB variable list → 5 variables.
  - Statistics Finland (added the same day):
    - population by sex, from a pxdata.stat.fi link, latest 2 years → 8 rows;
    - an "unemployment" search → tables;
    - variable list → 3 variables.
  - An unknown variable was rejected with the list of valid ones.
  - 0 schema mismatches throughout.

# Actor input Schema

## `table` (type: `string`):

Swedish IDs look like TAB6473, Norwegian ones like 07459, Finnish ones like vaerak/11rb.px (or paste an ssb.no statbank or pxdata.stat.fi link).

## `filters` (type: `object`):

Values per variable, as codes or labels, or expressions like "top(3)" and "\*". Variables left out use the table's default. Example: {"Region": \["Sweden", "Stockholm county"], "Kon": \["total, all men and women"]}

## `latestPeriods` (type: `integer`):

Only the newest N periods (ignored when Filters set the time variable).

## `describeOnly` (type: `boolean`):

Return the table's variables and their codes instead of data.

## `searchTables` (type: `string`):

English words in the table title, e.g. 'population', 'consumer price', 'electricity'.

## `office` (type: `string`):

Which catalogue to search. Finland's search returns IDs and titles only.

## `maxItems` (type: `integer`):

Stop after this many.

## Actor input object example

```json
{
  "table": "TAB6473",
  "filters": {
    "Region": [
      "00",
      "01"
    ],
    "Forandringar": [
      "100"
    ],
    "Kon": [
      "TotSa"
    ]
  },
  "latestPeriods": 6,
  "describeOnly": false,
  "office": "both",
  "maxItems": 50000
}
```

# Actor output Schema

## `results` (type: `string`):

Every row of the run, in the dataset (fields as listed under Output in the README).

## `summary` (type: `string`):

Counts, items not found and other notes for the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "table": "TAB6473",
    "filters": {
        "Region": [
            "00",
            "01"
        ],
        "Forandringar": [
            "100"
        ],
        "Kon": [
            "TotSa"
        ]
    },
    "latestPeriods": 6
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/nordic-statistics").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "table": "TAB6473",
    "filters": {
        "Region": [
            "00",
            "01",
        ],
        "Forandringar": ["100"],
        "Kon": ["TotSa"],
    },
    "latestPeriods": 6,
}

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/nordic-statistics").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "table": "TAB6473",
  "filters": {
    "Region": [
      "00",
      "01"
    ],
    "Forandringar": [
      "100"
    ],
    "Kon": [
      "TotSa"
    ]
  },
  "latestPeriods": 6
}' |
apify call alauddinburki/nordic-statistics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alauddinburki/nordic-statistics"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/s1GzL6sHcyT6xOCbv/builds/3NZhcrpqR0hp8FPak/openapi.json
