ParseForge Scrapers

Slovakia DATAcube Statistics Scraper

parseforge/slovakia-datacube-statistics-scraper

Automation

Scrape official Slovak statistics from DATAcube (Statistical Office of the Slovak Republic) by table ID. Filter dimensions with a JSON query, choose English or Slovak labels, export to CSV, JSON, Excel or XML.

Run this scraper See the API call
Total runs
29
Bookmarked
0
Last modified
23 days ago

This scraper was last updated on .

What does the Slovakia DATAcube Statistics Scraper return?

ParseForge

Slovakia DATAcube Statistics Scraper

Scrape official Slovak statistics from DATAcube by table ID, with full control over language and query filters. Every row is a flat record ready for CSV, JSON, Excel, or XML. No API key, no registration, no rate-limit headaches.

Slovakia's official statistics portal, DATAcube, publishes thousands of datasets from the Statistical Office of the Slovak Republic, but its web interface is built for browsing, not bulk export. This Actor reads the public PxWeb API directly, so you can pull any table by its ID, filter with a JSON query, and get every matching row in one fixed schema. It works for population, economy, labour, education, and hundreds of other official indicators.

Who uses it What they scrape Slovakia DATAcube for
Data journalists Pull official population or economy figures for a story without manual downloads
Market researchers Get regional demographic or labour statistics for Slovakia in bulk
Public policy analysts Track official indicators over time for reports and dashboards
Academic researchers Collect consistent, citable datasets from the national statistics office

What it does

This Actor collects rows from a Slovakia DATAcube statistics table by table ID and returns each row as a flat record.

  • ๐Ÿ”ข Table ID input: pass any DATAcube table identifier, like om2024rs, and get every member of every dimension for the latest period by default
  • ๐ŸŒ Language selection: return labels and metadata in English or Slovak
  • ๐ŸŽฏ Query JSON filtering: pick member codes per dimension, as a plain object or a PxWeb-style selection array, to select specific regions, periods, or variables
  • ๐Ÿ“ฆ Flat row output: every statistic becomes one row, ready for CSV, JSON, Excel, or XML export

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

What you can do with Slovakia DATAcube data

๐Ÿ“Š Build a regional dashboard.

A data analyst pulls monthly unemployment statistics for all Slovak regions and feeds the flat rows into a BI tool for a live dashboard.

๐Ÿ“ฐ Fact-check a news story.

A journalist retrieves the latest population figures from the official table and compares them with claims made in a press release.

๐ŸŽ“ Collect data for a thesis.

A graduate student downloads a full education statistics table in Slovak and English to analyse enrolment trends over a decade.

๐Ÿ›๏ธ Monitor policy indicators.

A public sector analyst schedules weekly runs of a key economic table to track changes and alert stakeholders.

Why choose this scraper

What you get
Official source Data comes directly from the Statistical Office of the Slovak Republic, so it is citable and authoritative
No API key The public PxWeb endpoint needs no registration or authentication
Flexible queries Filter any dimension by member code, with a plain JSON object or a PxWeb-style selection array
Bulk export Get up to 1,000,000 rows per run for paid users, or a 10-row preview for free

How it compares

No other Store actor targets Slovakia DATAcube the same way, so the honest comparison is with the alternatives teams actually weigh.

Slovakia DATAcube Statistics Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When Slovakia DATAcube changes Maintained for you You fix it You re-learn the page
API quirks (cube size limits, member codes, dimension paths) Handled for you Your problem Manual
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 DATAcube table ID, optionally add a JSON query to select specific dimensions, and set the response language. The maximum rows limit controls how many statistics rows are returned. The Input tab lists every parameter.

A first run with the defaults:

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

A larger pull:

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

A filtered pull. Dimension names accept the full id (om2024rs_rok) or its suffix (rok), and values are member codes, not labels. Dimensions you leave out return every member, except the time dimension, which defaults to the latest period:

{
 "tableId": "om2024rs",
 "maxItems": 200,
 "query": "{\"rok\":[\"2024\",\"2025\"],\"vek\":[\"08vekr000\",\"08vekr001\",\"08vekr002\"]}"
}

The same selection in PxWeb style: [{"code":"om2024rs_rok","selection":{"filter":"item","values":["2024","2025"]}}]. Member codes for any dimension are listed by the official API, for example https://data.statistics.sk/api/v2/dataset/om2024rs/x/x/x/all?lang=en for the age dimension of om2024rs. A value that matches no member code stops the run with an error row naming the dimension and its first codes.

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 Slovakia DATAcube 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 Slovakia DATAcube 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/slovakia-datacube-statistics-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 table ID is correct and that your Query JSON does not filter out all values. Try leaving the query empty to see if the table returns any rows at all.

Why does the run fail with an error?

The upstream DATAcube API may be temporarily unavailable or the table ID may be invalid. Verify the ID on the official website and retry after a few minutes.

Why do I only get 10 rows?

Free users are limited to a 10-row preview. Upgrade to a paid plan and set maxItems to a higher value to get more rows.

Why are the labels in English when I wanted Slovak?

Set the lang input to sk. If the table itself has no Slovak labels, the API will return whatever is available.

Why is my Query JSON not working?

The query must be valid JSON: either an object mapping dimension names to arrays of member codes, or a PxWeb-style array of selection objects. Invalid JSON is ignored with a warning. Values must be member codes (08vekr000), not labels (0). A code that matches nothing stops the run with an error row that lists the first valid codes of that dimension.

FAQ

Question Answer
Where do I find the table ID? Open the dataset on the DATAcube website. The table ID is the short code in the URL, for example om2024rs. You can also browse the official API catalogue.
Can I get data in Slovak? Yes. Set the language input to sk and all labels and metadata will be returned in Slovak.
How do I filter the results? Use the Query JSON input. It accepts a plain object of dimension names to member codes, or a PxWeb-style array of selection objects. Leave it empty to get every member for the latest period.
What is the maximum number of rows? Free users get a 10-row preview. Paid users can set maxItems up to 1,000,000 rows per run.
Do I need an API key? No. The Actor uses the public PxWeb endpoint of the Statistical Office of the Slovak Republic, which requires no authentication.
What format is the output? Each statistics row is returned as a flat record. You can export the dataset to CSV, JSON, Excel, or XML from Apify.
Can I scrape multiple tables at once? This Actor handles one table per run. To scrape multiple tables, run it once per table ID or use Apify's scheduler to run several configurations.
Is this legal? Yes. DATAcube is a public service of the Slovak government, and the data is published for public use. Always check the terms of use for any specific dataset.
What if the table ID is wrong? The Actor will return an error from the upstream API. Double-check the ID on the DATAcube website and try again.
Can I get historical data? Yes, if the table contains historical values. Use the Query JSON to select specific time periods.

๐Ÿ†˜ 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 Statistical Office of the Slovak Republic. 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.

What input does the Slovakia DATAcube Statistics Scraper accept?

FieldTypeWhat it doesDefault
tableId required string Slovakia DATAcube table identifier (for example om2024rs). Browse https://data.statistics.sk/api/v2/collection?lang=en for the full list of table IDs. om2024rs
maxItems integer Free users: Limited to 10 statistics rows (preview). Paid users: Optional, max 1,000,000. 10
lang string (2 options) Language of the labels and the table title. en
query string Optional. Selects dimension members. Either a JSON object such as {"rok":["2024","2025"],"vek":["0","1","2"]} or a PxWeb-style array such as [{"code":"om2024rs_rok","selection":{"filter":"item","values":["2024","2025"]}}]. Dimension names accept the full id (om2024rs_rok) or its suffix (rok). Dimensions you leave out return every member, except the time dimension, which defaults to the latest period. not set

How much does the Slovakia DATAcube Statistics Scraper cost?

from $4.52 per 1,000 results

Charged forWhat it isPrice each
result One statistics row in the default dataset. $0.00452 to $0.005

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

How do I call the Slovakia DATAcube Statistics Scraper 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~slovakia-datacube-statistics-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "tableId": "om2024rs",
    "maxItems": 10,
    "lang": "en",
    "query": "{\"rok\":[\"2024\",\"2025\"],\"vek\":[\"08vekr000\",\"08vekr001\"]}"
  }'

What example inputs can I use?

Use these inputs to see how a run is configured.

input.json
{
  "tableId": "om2024rs",
  "maxItems": 10,
  "lang": "en",
  "query": "{\"rok\":[\"2024\",\"2025\"],\"vek\":[\"08vekr000\",\"08vekr001\"]}"
}

What do users say about the Slovakia DATAcube Statistics Scraper?

No reviews yet. Be the first.

How do I report an issue with the Slovakia DATAcube Statistics Scraper?

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.

What related scrapers can I use?

Run Slovakia DATAcube Statistics Scraper on Apify All scrapers