Nsi Bg

v0.2.1
io.github.pipeworx-io/nsi-bg Checked 1 day ago Published 29 days ago

Bulgarian National Statistical Institute (НСИ / NSI) — Open Data API.

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

list_datasets

List NSI Bulgaria open-data datasets with their numeric id and English (or Bulgarian) name. Each dataset id can be passed to get_dataset for the actual figures. Use the optional `filter` to substring-match dataset names (case-insensitive), e.g. 'population', 'export', 'inflation'.

ParameterTypeDescription
filterstringCase-insensitive substring to match against dataset names.
langstringLanguage of dataset names. Default en.

get_dataset

Fetch a single NSI Bulgaria dataset by numeric id as a JSON-stat 2.0 object (dimensions, categories, and the flat `value` array). Get ids from list_datasets. Example ids: 107 (children in kindergartens by municipality), 242 (aggregate replacement ratio).

ParameterTypeDescription
id *stringNumeric dataset id, e.g. "107".
langstringLabel language. Default en.

get_fields

Fetch the field/dimension metadata for an NSI dataset (its column codes plus Bulgarian and English names) as parsed CSV rows. Useful for interpreting the dimension codes in a get_dataset response.

ParameterTypeDescription
id *stringNumeric dataset id, e.g. "107".
langstringLabel language. Default en.