Nsi Bg
v0.2.1Bulgarian 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'.
| Parameter | Type | Description |
|---|---|---|
filter | string | Case-insensitive substring to match against dataset names. |
lang | string | Language 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric dataset id, e.g. "107". |
lang | string | Label 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric dataset id, e.g. "107". |
lang | string | Label language. Default en. |