get_demographics
Fetch demographic, economic, housing, and other local statistics for a Polish location. Uses location name or TERYT code to return data from GUS BDL, covering ~50 indicators across 11 categories.
Instructions
Demographic, economic, housing and other local statistics for a Polish location, from GUS BDL (Bank Danych Lokalnych) — Poland's public Central Statistical Office open-data bank. ~50 indicators across 11 categories (population, economy, housing, spatial planning, infrastructure, environment, safety, education, prices) plus a few derived metrics. Address by location (city/county name) OR teryt. A name resolves to county/powiat (4-digit) level; for richer gmina/district-level data (L6) pass a 6 or 7-digit teryt. teryt wins when both are given. Use list_locations to find TERYT codes — neighborhoods/osiedla are NOT addressable here. A query returns the requested level PLUS all parent levels (a gmina query also yields powiat, NUTS3 region and voivodeship indicators). Optional year, or yearFrom+yearTo for a time series, and category to filter. Cost: 1 token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Single year (2003-present). Mutually exclusive with yearFrom/yearTo. Omit for the latest available year per indicator. | |
| teryt | No | TERYT code: 2-digit (voivodeship, e.g. 14), 4-digit (county, e.g. 1465), 6 or 7-digit (gmina, e.g. 1465011). Wins over location. Use list_locations to find codes. | |
| yearTo | No | End year for a time series (max current year + 1). | |
| category | No | Filter to these categories. Omit to return all available. | |
| location | No | City/county name, resolves to county/powiat level (e.g. 'Warszawa', 'Kraków'). Use this OR teryt. For gmina-level data pass a 6/7-digit teryt instead. | |
| yearFrom | No | Start year for a time series (min 2003). |