get_demographics
Fetch local GUS BDL statistics for Polish locations by name or TERYT code, covering demographics, economy, housing, infrastructure and more, with optional year or time-series filters.
Instructions
Local statistics for a Polish location from GUS BDL (Poland's Central Statistical Office): ~50 indicators across 11 categories (population, economy, housing, planning, infrastructure, environment, safety, education, prices) plus a few derived metrics. Address by location (city, county or gmina name; a city or county resolves to county level) OR teryt (codes from list_locations). Neighborhoods/osiedla are NOT addressable. Returns the requested level PLUS all parent levels. Optional year, or yearFrom+yearTo for a time series, and category. Cost: 1 token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Single year (2003-present); exclusive with yearFrom/yearTo. Omit for the latest year per indicator. | |
| teryt | No | TERYT: 2-digit voivodeship (14), 4 county (1465), 6 or 7 gmina (1465011). 7th digit: 3 = urban-rural gmina overall, 4/5 = urban/rural part only, 8 = Warszawa district (1465108 = Śródmieście). Wins over location. | |
| yearTo | No | End year for a time series (max current year + 1). | |
| category | No | Categories to return; omit for all. | |
| location | No | City, county, gmina or district name (e.g. 'Warszawa', 'Wieliczka'): city/county → county level, gmina → that gmina, a Warszawa district ('Mokotów') → that district, another city's delegatura ('Kraków-Podgórze') → its parent county. Shared name → candidates; pass one as teryt. Use this OR teryt. | |
| yearFrom | No | Start year for a time series (min 2003). |