Skip to main content link using access key S.
Statistical Office SR
PortalMenuPortlet
API Open data SO SR
Print Mail PDF TW FB WA

API Open data SO SR

Last update: 06.02.2023 | Number of views: 70056

The Statistical Office of the Slovak Republic offers an application programming interface (API) providing an access to selected data available in the DATAcube. database. It is a tool designed mainly for developers who need data in machine-readable form. These are available in JSON-stat, CSV, XML, XLSX and ODS formats.

The data is updated every working day at 10:00 and 22:00.

API
Open data
SO SR

What is JSON-stat?

JSON-stat is a simple JSON (JavaScript Object Notation) format that has been specially created for statistical tables that can have many dimensions. This initiative is based on the fact that tables are the most common form of data dissemination. JSON-stat is a hierarchical structure that contains table metadata, dimensions, and their descriptions and data. More information about this format can be found at https://json-stat.org/.

How do I get the data?

For easier access to the data, we have created a web interface in which you will find a list of all available tables. In the list, you can search for tables by their name or unique code, or filter by statistical domain and subdomain. The Complete Data column contains URL links to files that contain all the data in the table. These links are only available for smaller tables. For larger tables, it is necessary to create a partial selection from the available data.

A partial selection can be created in the table detail, which will be displayed after clicking on the table name. In the detail of the table, you can use the form to compile your own selection of dimension elements, set the required language and output data format. After the name of each dimension, there is a code designation of the dimension, which is a link to the list of its elements in the JSON-stat format. You can access the data of your choice by pressing the Generate button and then displaying the generated link.

The API allows you to get 3 types of data:

  1. Overview of all tables available in the API via the URL https://data.statistics.sk/api/v2/collection?lang=en in JSON-stat format.
  2. List of table dimension elements in JSON-stat format via URL https://data.statistics.sk/api/v2/dimension/cube_code/dim_code?lang=lang_code, where cube_code is the eight-digit table code, dim_code is the table dimension code, and lang_code is the language code (sk or en), it is an optional parameter by default set to sk.
  3. 3. The data request shall take the form of an URL, which shall take the following form: https://data.statistics.sk/api/v2/dataset/cube_code/PARAM1/PARAM2/PARAM3...?lang=lang_code&type=file_type, where cube_code is the eight-digit table code, PARAM1, PARAM2 .... are the element codes of the selected table dimensions, lang_code is the language code (sk or en), it is an optional parameter defaultly set to sk, file_type is the file type (json, csv, xml, xlsx, ods), it is an optional parameter by default set to json. You can use the form available after clicking on the table detail to compile the URL.

Access to data is free and does not require registration. All information is subject to the license terms of the Creative Commons Attribution License (cc-by) 4.0. More detailed information can be found on the page Conditions for use and further dissemination of the SO SR statistical information.

More information is on the page Help API Open data SO SR


Open data portal

Based on the Government Resolution of the Slovak Republic No 59/2015 of 11 February 2015 approving the Open Government Partnership  Action Plan of the Slovak Republic 2015, the Statistical Office of the SR publishes available data in open formats with text description of published data content.

Open data Statistical Office of the Slovak Republic is available on the open data portal URL: https://data.gov.sk/

Open data portal was created as a part of the Initiative for Open Governance, which intention is to improve governance and public matters, through increasing transparency, effectivity and responsibility. The portal is a catalog containing various datasets published by obliged entities in the Slovak republic.

The Open data of the Statistical Office of the Slovak Republic is available directly on the website:

  • Hypercubes from Population and Housing Census 2011
    Export data in * .CSV format from hypercubes for selected results from Population, Housing and Housing 2011
  • Elections and Referendums
    Election results * .CSV for elections and referendums since 2001
  • Key indicators
    Download statistical data in the format * .XLSX, * .CSV and * .XML as indicators of economic and socio-economic development of Slovak Republic. Warning: from 1.1.2021 this web application will be replaced by the new API Open data SO SR.

Other links:

All data are available free of charge more info is in Conditions for use and further dissemination of the SO SR statistical data


/wps/portal/ext/Databases/Open_data API Open data SO SR Z6_VLP8BB1A00UL90ARD318J62CS1 /Štatistický úrad SR - Home /Databases /API Open Data SO SR