Datacube Sk
v0.2.1DATAcube — 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.
| Parameter | Type | Description |
|---|---|---|
lang | string | Label language (default "en"). |
limit | number | Max results to return (default 50, max 200). |
query | string | Case-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.
| Parameter | Type | Description |
|---|---|---|
cube * | string | Cube code, e.g. "as1001rs" (from list_datasets). |
lang | string | Label 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.
| Parameter | Type | Description |
|---|---|---|
cube * | string | Cube code, e.g. "as1001rs" (from list_datasets). |
selections * | array | One 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"]. |
lang | string | Label language (default "en"). |