Norway SSB Public Statistics Scraper
Pricing
from $1.63 / 1,000 results
Norway SSB Public Statistics Scraper
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.
Pricing
from $1.63 / 1,000 results
Rating
0.0
(0)
Developer
ParseForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Share
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
- Create a free Apify account with $5 in credit.
- Open the Norway SSB Public Statistics Scraper.
- Set your inputs and any filters, then click Start.
- 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.
