ParseForge Scrapers

Norway SSB Public Statistics Scraper

parseforge/norway-ssb-statistics-scraper

BusinessEducationAutomation

Scrapes any public dataset from Statistics Norway's Statbank by table ID and returns each row as a flat record with official codes, labels, values, and time period. Supports English and Norwegian output.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
51
Bookmarked
0
Rating
Not rated yet
Last modified
9 days ago

Overview

ParseForge

Norway SSB Public Statistics Scraper

Scrape any public dataset from Statistics Norway (SSB) by table ID, up to a million rows per run. Every row returns the official values, labels, and time periods exactly as published. No API key required. Export to CSV, JSON, Excel, or XML.

Statistics Norway's API returns rich public data on population, economy, labour, and health, but building a PxWeb query by hand is slow and the API rejects requests that ask for too many values at once. This Actor reads any table you specify, handles the pagination and value limits, and returns a clean flat dataset. You only need the table ID from the SSB Statbank.

Who uses it What they scrape Statistics Norway (SSB) for
Economists and policy analysts Pull the latest quarterly GDP or employment figures into a model.
Journalists and data reporters Get municipality-level population changes for a regional story.
Academic researchers Collect multi-year health or education statistics for a longitudinal study.
Business intelligence teams Feed consumer price index or retail trade data into a market dashboard.

What it does

This Actor collects a public dataset from Statistics Norway by its table ID and returns each row as a flat record with the official codes, labels, values, and time period.

  • ๐Ÿ—‚๏ธ Table ID driven: provide a Statbank table number like 07459 and the Actor fetches it.
  • ๐ŸŒ Bilingual output: request labels and metadata in English or Norwegian (Bokmรฅl).
  • ๐Ÿ“Š Smart defaults: leave the query empty and the Actor returns the newest period with the top values per dimension, avoiding 'Too many values' rejections.
  • ๐Ÿ”ง Custom PxWeb query: pass a raw JSON query array for full control over which regions, periods, and categories to include.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Statistics Norway (SSB) data

๐Ÿ“ˆ Monitor economic indicators.

An economist runs the Actor weekly with table 09190 (CPI) to update an inflation dashboard with the latest monthly index values.

๐Ÿ—บ๏ธ Compare municipalities.

A journalist fetches table 07459 with a custom query selecting all municipalities and the newest year to map population changes across Norway.

๐Ÿ“š Build a research dataset.

A PhD student collects ten years of education attainment data from table 08921 by looping over year periods in the query JSON.

๐Ÿ“Š Feed a business report.

A BI analyst pulls retail sales turnover from table 07973 each quarter and loads the CSV export into a company-wide Power BI report.

Why choose this scraper

What you get
Official source Data comes directly from Statistics Norway's public API, the same source used by government and research.
No query wrangling A minimal default query is built for you so the API accepts the request on the first try.
Full control Power users can pass a complete PxWeb query to slice by exact regions, years, and categories.
Flat output Every row is a single record with codes, labels, and the value, ready for analysis.

How it compares

No other Store actor targets Statistics Norway (SSB) the same way, so the honest comparison is with the alternatives teams actually weigh.

Norway SSB Public Statistics Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When Statistics Norway (SSB) changes Maintained for you You fix it You re-learn the page
Proxies, retries, anti-bot Built in Your problem Browser only
Output Fixed JSON schema, CSV/Excel export Whatever you build Copy-paste
Cost Pay per result Engineering time Analyst hours

Configure the run

Drive the Actor with a Statistics Norway table ID and an optional PxWeb query JSON. The language selector switches all labels and metadata between English and Norwegian. The Input tab lists every parameter.

A first run with the defaults:

{
  "tableId": "07459",
  "maxItems": 10
}

A larger pull:

{
  "tableId": "07459",
  "maxItems": 200
}

Pricing

Pay-per-result: $0.0018 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $0.18
1,000 results $1.80
10,000 results $18.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Norway SSB Public Statistics Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Statistics Norway (SSB) through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/norway-ssb-statistics-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

The run fails with 'Too many values selected'.

Your custom query is requesting too many values across one or more dimensions. Reduce the number of selected values per dimension, or remove the query field entirely to use the Actor's safe default selection.

I get an empty dataset.

Check that the table ID is correct and that the table is still published on ssb.no. Also verify that your custom query, if provided, uses valid dimension codes and value codes for that specific table.

The column names are codes I do not understand.

Set the Language option to 'English' or 'Norwegian' to get human-readable labels. If you still see codes, those are the official SSB dimension codes, and the corresponding labels are included in separate columns in the output.

I only got 10 rows but I need the full table.

Free Apify accounts are limited to 10 rows for preview. Upgrade to a paid plan and increase the 'Maximum data rows' setting to collect the full dataset.

The run is slow for a large table.

SSB's API has rate limits and large tables with many dimensions take time to paginate through. Use a custom query to narrow the selection to only the regions, periods, and categories you need.

FAQ

Question Answer
Where do I find the table ID? Go to ssb.no/en/statbank, search for a topic, and open the table. The table ID is the number in the URL, for example 07459 in 'statbank/table/07459'.
Do I need an API key or login? No. Statistics Norway's public API is open and this Actor reads it directly. No registration or authentication is required.
Why do I get 'Too many values selected'? SSB's API rejects requests that ask for all values across all dimensions at once. Leave the query field empty to use the Actor's safe default, or build a custom query that selects a smaller subset of values per dimension.
How do I write a custom query? The query field accepts a JSON array of PxWeb selection objects. Each object has a 'code' (dimension name) and a 'values' array of the codes you want. Use the SSB API documentation or inspect a working query from the Statbank site for the exact dimension codes.
Can I get the data in Norwegian? Yes. Set the Language option to 'Norwegian' and all column labels, category names, and metadata will be returned in Bokmรฅl.
What format is the output? The Actor returns a flat table where each row is one observation with its dimension codes, labels, the time period, and the measurement value. You can export the dataset to CSV, JSON, Excel, or XML.
How many rows can I collect? Free Apify accounts are limited to 10 rows for preview. Paid accounts can collect up to 1,000,000 rows per run, which covers most SSB tables in full.
Does this work for all SSB tables? It works for any table published in the SSB Statbank that has an API endpoint. A small number of archived or special-format tables may not be available via the API.
Can I schedule this to run automatically? Yes. Apify's scheduler lets you run the Actor daily, weekly, or monthly. Combine it with a webhook or an Apify integration to push new data into your storage or dashboard automatically.

Related actors

  • eurostat-scraper: Use this instead when you need statistics from the European Union's statistical office rather than Norway's national statistics.

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Statistics Norway. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
tableId required string Statistics Norway (SSB) table ID, for example 07459 (population by region). 07459
maxItems integer Free users are limited to 10 rows (preview). Paid users can collect up to 1,000,000. 10
lang string (2 options) Response language. en
query string Optional. JSON array of PxWeb selection objects forwarded as the body's query field. Leave empty for a small default selection (newest period, top values per dimension); an all-values request is rejected by SSB with 'Too many values selected'. not set

Pricing

from $1.63 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.00163 to $0.0018

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~norway-ssb-statistics-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Norway SSB Public Statistics Scraper on Apify All scrapers