Datacube Sk

v0.2.1
io.github.pipeworx-io/datacube-sk Checked 1 day ago Published 1 month ago

DATAcube — Statistical Office of the Slovak Republic (data.statistics.sk).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_datasets

Browse / search the DATAcube collection of Slovak statistical cubes. Filter by case-insensitive substring of the English label. Returns each matching cube's code (use it as `cube` in the other tools), label, last update date, and its ordered list of dimension codes.

ParameterTypeDescription
langstringLabel language (default "en").
limitnumberMax results to return (default 50, max 200).
querystringCase-insensitive substring to match against dataset labels (e.g. "population", "unemployment"). Omit to list everything.

dataset_dimensions

List the dimensions of one cube, in path order, with each dimension's valid value codes and labels. Selections in get_data are positional and must follow this dimension order. Get the cube code from list_datasets.

ParameterTypeDescription
cube *stringCube code, e.g. "as1001rs" (from list_datasets).
langstringLabel language (default "en").

get_data

Pull data for a cube as JSON-stat. Provide one selection per dimension, in the dimension order returned by dataset_dimensions. Each selection is either a single value code, a comma-separated list of codes (e.g. "SEX_M,SEX_F"), or the literal "all" for every value of that dimension. The number of selections must equal the cube's dimension count. Output is JSON-stat: `value` is the flat data array, `dimension`/`size`/`id` describe its shape.

ParameterTypeDescription
cube *stringCube code, e.g. "as1001rs" (from list_datasets).
selections *arrayOne entry per dimension, in dataset_dimensions order. Each is a value code, a comma-separated list of codes, or "all". Example for as1001rs: ["2024", "UKAZ01", "all"].
langstringLabel language (default "en").