TL;DR
dane.gov.pl is Poland's official open data portal, providing a CKAN API to discover and access thousands of public datasets from Polish government institutions. Search by keyword, category, or institution to find data on demographics, economy, transport, education, healthcare, and more. Returns dataset metadata including resources in CSV, JSON, XLSX, and XML formats. No API key required. Managed by the Polish Ministry of Digital Affairs, this portal implements the EU Open Data Directive.
Quick start: https://dane.gov.pl/api/3/action/package_list
No API key needed — Polish open government data!
How to Use This API
1. List All Dataset IDs
https://dane.gov.pl/api/3/action/package_list
2. Search Datasets by Keyword
Search for datasets related to "education" (edukacja):
https://dane.gov.pl/api/3/action/package_search?q=edukacja&rows=5
3. JavaScript — Browse Polish Open Data
fetch('https://dane.gov.pl/api/3/action/package_search?q=transport&rows=10')
.then(r => r.json())
.then(data => {
if (data.success) {
data.result.results.forEach(ds => {
console.log(ds.title);
console.log(' Institution:', ds.organization?.title);
console.log(' Resources:', ds.resources?.length || 0);
});
console.log('Total:', data.result.count);
}
});
4. Python — Get Dataset Resources
import requests
# Get details for a specific dataset
r = requests.get(
'https://dane.gov.pl/api/3/action/package_show',
params={'id': 'liczba-bezrobotnych-w-powiecie'}
)
if r.status_code == 200:
ds = r.json()['result']
print(f"Tytuł: {ds['title']}")
print(f"Opis: {ds['notes'][:150]}...")
for res in ds['resources'][:3]:
print(f" {res['format']}: {res['url']}")
https://dane.gov.pl/api/3/action/package_search?q=demografia&rows=3
Frequently Asked Questions
- Is the portal bilingual?
- The main interface is in Polish, but many English-language resources are available. The CKAN API endpoints work identically in both languages.
- What types of datasets are most popular?
- Demographic data (GUS statistics), transport schedules (PKP rail data), air quality monitoring, public finance, education statistics, and geospatial data.
- Are there file format preferences?
- Most datasets are available in CSV and XLSX. Geospatial datasets use SHP or GeoJSON. Some statistical data is available in JSON and XML formats.
- How frequently is data updated?
- Update frequency varies by dataset — some are real-time (air quality), while others are annual (GUS demographic statistics).
- Can I search by institution?
- Yes — use the CKAN
q=organization:urzadsyntax or browse datasets by institution through the web interface. - Is the API compliant with EU regulations?
- Yes — the portal implements the EU Open Data Directive (PSI Directive) and INSPIRE Directive for geospatial data sharing.
API Details
- API URL
https://dane.gov.pl/api/3/action- Documentation
- dane.gov.pl/en/developers
- Category
- Government
- Authentication
- Not Required
- Geographic Coverage
- Poland — national and regional government data
What You Can Build
- Polish air quality monitoring dashboard using real-time sensor data
- PKP (Polish rail) schedule browser and trip planner
- Regional demographic analysis tool using GUS census data
- Polish public spending visualization across government units
- Educational statistics portal showing school system data by province