ParseForge Scrapers

StatFin Finland Statistics PxWeb Scraper

parseforge/statfin-finland-pxweb-scraper

EducationBusinessAutomation

Scrapes statistical records from StatFin Finland's PxWeb database by subject path. Returns each record as a flat row for export to CSV, JSON, Excel, or XML.

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

Overview

ParseForge

StatFin Finland Statistics PxWeb Scraper

Scrape StatFin Finland statistics tables from any PxWeb subject path, up to a million records per run. Each record is a clean, flattened row from the official Statistics Finland database. No API key or registration. Export to CSV, JSON, Excel, or XML.

Statistics Finland's official StatFin database holds thousands of statistical tables on population, economy, labour, and regions, but the PxWeb interface is built for browsing one table at a time. This Actor reads the public PxWeb API directly, follows any subject path you give it, and returns each statistical record as one flat row. You can pull a single table or walk an entire subject area in one run.

Who uses it What they scrape StatFin Finland Statistics for
Market researchers Pull demographic and economic indicators for Finland into a spreadsheet for trend analysis.
Data journalists Gather official statistics on population, labour, or regional development for reporting.
Policy analysts Collect time series from StatFin to support policy evaluation and forecasting.
Academic researchers Download large statistical datasets for quantitative studies without manual table exports.
Business intelligence teams Feed Finnish official statistics into internal dashboards and models.

What it does

This Actor collects statistical records from StatFin Finland's PxWeb database by subject path and returns each record as a flat row.

  • ๐Ÿ“ Subject path browsing: start at the root or drill into any sub-path like vrm/vaerak to target a specific table or folder.
  • ๐Ÿ”ข Record limit control: set maxItems from 1 to 1,000,000 to cap the number of statistical records per run.
  • ๐Ÿ“Š Flat row output: every record is returned as a clean, flattened row with all dimension values and the measure.
  • ๐ŸŒ Official source data: reads directly from Statistics Finland's public PxWeb API, no third-party cache.

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

What you can do with StatFin Finland Statistics data

๐Ÿ“ˆ Track population trends.

A market researcher sets the path to the population subject area and collects yearly records to see how age structure changes across Finnish municipalities.

๐Ÿ“ฐ Support data journalism.

A journalist pulls labour force statistics for a story on regional employment differences and exports the rows to CSV for analysis.

๐Ÿ›๏ธ Inform policy analysis.

A policy analyst gathers economic indicators from StatFin to compare Finland's performance against EU targets and prepares a briefing.

๐ŸŽ“ Build academic datasets.

A researcher collects a large set of education statistics by subject path and loads the flat rows into R or Python for modelling.

๐Ÿ“Š Feed business dashboards.

A BI team schedules the Actor to refresh regional economic data from StatFin and pushes the records into their internal reporting tool.

Why choose this scraper

What you get
Official data Direct from Statistics Finland's StatFin PxWeb database, the authoritative source for Finnish statistics.
No API key Uses the public PxWeb endpoint, so you can start scraping without registration or credentials.
Flexible scope Target one table or an entire subject area by changing the path parameter.
Scalable Collect up to a million records in a single run, enough for large time series and cross-table studies.

How it compares

This Actor is a straightforward scraper for StatFin PxWeb, while the Statistics Finland (StatFin) MCP is an MCP server for AI assistants to search and query the same database interactively.

Feature ParseForge Statistics Finland (StatFin) MCP
Scrape by subject path Yes Not listed
Flat row output Yes Yes
Search across 3,000+ tables Not listed Yes
Inspect table variables Not listed Yes
Query clean flattened statistics Yes Yes
MCP server for AI assistants Not listed Yes

Configure the run

Drive the Actor with a subject path inside StatFin PxWeb, and set a maximum number of records to collect per run. The Input tab lists every parameter.

A first run with the defaults:

{
  "maxItems": 10
}

A larger pull:

{
  "maxItems": 200
}

Pricing

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

Results collected Approximate cost
100 results $0.85
1,000 results $8.50
10,000 results $85.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 StatFin Finland Statistics PxWeb 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 StatFin Finland Statistics 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/statfin-finland-pxweb-scraper"

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

Troubleshooting

Why am I getting no results?

Check that the subject path is correct. Try leaving the path empty to list the root subjects, then drill down step by step. Also ensure maxItems is set to at least 1.

Why does the run stop before collecting all records?

The maxItems parameter limits the number of records per run. Increase it if you need more data, up to 1,000,000.

Why do I see an error about the path?

The path must be a valid sub-path within StatFin PxWeb. Check for typos and make sure you are not including the base URL, only the part after it.

Why are some labels in Finnish?

StatFin provides labels in multiple languages. The Actor returns them as they appear in the API. You can map them to English using the table metadata if needed.

Can I get the data in a different format?

The Actor outputs records in a flat structure. You can export to CSV, JSON, Excel, or XML from the Apify dataset, or use the API to retrieve the data programmatically.

FAQ

Question Answer
What is StatFin Finland? StatFin is the official statistics database of Statistics Finland. It contains thousands of statistical tables on population, economy, labour, regions, and more, all accessible through the PxWeb interface.
Do I need an API key or registration? No. This Actor uses the public PxWeb API endpoint, so you can start scraping immediately without any credentials.
How do I find the right subject path? You can browse the StatFin PxWeb website to find the subject area you need. The path is the part of the URL after the base address, for example vrm/vaerak for population structure. Leave the path empty to list the root subjects.
What does the output look like? Each statistical record is returned as a flat row with all dimension values and the measure. The exact fields depend on the table, but the structure is consistent for easy export to CSV, JSON, Excel, or XML.
Can I scrape multiple tables at once? Yes. If you set the path to a subject folder rather than a single table, the Actor will walk that folder and collect records from all tables inside it, up to your maxItems limit.
What is the maximum number of records I can collect? You can set maxItems up to 1,000,000 records per run. The default is 10, which is useful for testing.
Is the data in English or Finnish? StatFin tables often have labels in Finnish, Swedish, and English. The Actor returns the values as provided by the API, so you may see multilingual labels depending on the table.
Can I filter the data before scraping? The Actor currently supports only the subject path and maxItems. For more advanced filtering, you can post-process the exported dataset or use the StatFin PxWeb API directly.
How often is the data updated? The data comes directly from Statistics Finland's live database, so each run reflects the latest published figures.
Is this Actor affiliated with Statistics Finland? No, this is an independent scraper that reads the public PxWeb API. It is not endorsed by or affiliated with Statistics Finland.

Related actors

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 Finland. 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
maxItems integer How many statistical records to collect per run. 10
path string Sub-path within StatFin PxWeb (e.g. vrm/vaerak). Empty = root listing. not set

Pricing

from $7.50 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.0075 to $0.0085

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~statfin-finland-pxweb-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 StatFin Finland Statistics PxWeb Scraper on Apify All scrapers