Public Information Bulletin
For developers

Rzeszów data in your own tools

Fetch any dataset automatically – in a spreadsheet, a script or an app. The portal runs on CKAN, so you use the standard API known from other open data portals.

What do you want to do?

  • No accountNo sign-up and no API key.
  • FreeFree to use, also commercially.
  • Free to reuseUsually CC BY 4.0 – credit “City of Rzeszów”.
  • CKAN standardThe same API as other CKAN portals.

Quick start

Every request is a plain web address. No key, no headers – the answer comes back as JSON. Try searching for public transport datasets:

# Click or paste into the browser address bar:
https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action/package_search?q=komunikacja&rows=5
curl "https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action/package_search?q=komunikacja&rows=5"
import requests

r = requests.get(
    "https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action/package_search",
    params={"q": "komunikacja", "rows": 5},
)
for ds in r.json()["result"]["results"]:
    print(ds["name"], "–", ds["title"])
const url = "https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action/package_search?q=komunikacja&rows=5";
const { result } = await (await fetch(url)).json();

for (const ds of result.results) {
  console.log(ds.name, "–", ds.title);
}

API base URL

GEThttps://ckan.otwartedane-rz.st.cetuspro.com/api/3/action

The portal runs on CKAN 2.11, so ready-made libraries work, e.g. ckanapi (Python) or ckanr (R). Full reference of all actions: docs.ckan.org.

Reading a response

Every response has the same shape. Data lives in result, and if something went wrong the details are in error (HTTP 400, 403, 404 or 409).

{
  "help": "…/help_show?name=package_show",
  "success": true,
  "result": {
    "name": "odczyt-poziomu-zanieczyszczenia-powietrza-z-14-czu",
    "…": "…"
  }
}
{
  "help": "…",
  "success": false,
  "error": {
    "__type": "Not Found Error",
    "message": "Not found"
  }
}

Find datasets

How do I get a dataset’s details and files?

You get the description, licence, publisher, categories, tags and the list of files (resources) with download URLs.

/api/3/action/package_show?id=odczyt-poziomu-zanieczyszczenia-powietrza-z-14-czu
JSON ↗
More options (1)
ParameterTypeDescription
idrequiredstringDataset name from the page URL (e.g. /zbiory/liczba-pasazerow → liczba-pasazerow).

GET/api/3/action/package_show

How do I check a single file?

Format, size, download URL and last change of a single file.

/api/3/action/resource_show?id=<resource_id>
JSON ↗
More options (1)
ParameterTypeDescription
idrequireduuidFile id – the id field in the resources list of package_show.

GET/api/3/action/resource_show

Get the data

Publishers & categories

Which institutions publish data?

City institutions. With all_fields=true you also get descriptions and dataset counts.

/api/3/action/organization_list?all_fields=true&limit=2
JSON ↗
More options (1)
ParameterTypeDescription
all_fieldsboolFull objects instead of names.

GET/api/3/action/organization_list

How do I get one institution?

The institution’s details, optionally with its datasets.

/api/3/action/organization_show?id=zarzad-transportu-miejskiego&include_datasets=false
JSON ↗
More options (2)
ParameterTypeDescription
idrequiredstringInstitution name from the page URL.
include_datasetsboolInclude datasets.

GET/api/3/action/organization_show

What are the categories?

Categories such as transport, environment, finance.

/api/3/action/group_list?all_fields=true
JSON ↗
More options (1)
ParameterTypeDescription
all_fieldsboolFull objects instead of names.

GET/api/3/action/group_list

Which keywords are used?

All tags assigned to datasets.

/api/3/action/tag_list
JSON ↗

GET/api/3/action/tag_list

Data in a spreadsheet

A spreadsheet can load a CSV file from the portal and keep it fresh. Copy the file address from the dataset page (“Download” button) or the url field in package_show. Example: public WiFi hotspots.

  1. Google SheetsPaste into cell A1:
    Google Sheets
    =IMPORTDATA("https://ckan.otwartedane-rz.st.cetuspro.com/dataset/publiczne-hotspoty-wifi")
  2. ExcelData → From Web → paste the CSV address → Load. Refresh it with “Refresh All”.
  3. LibreOfficeSheet → Link to External Data → paste the CSV address. Step-by-step guide

Data on a map

Datasets with coordinates (WGS84, like GPS) can be fetched row by row with datastore_search and pinned on a map. Leaflet example – WiFi hotspots:

JavaScript
// Points from a table with coordinates (Leaflet)
const url = "https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action/datastore_search?resource_id=<resource_id>&limit=1000";
const { result } = await (await fetch(url)).json();

// Find the latitude and longitude columns by name
const col = (start) => Object.keys(result.records[0]).find((k) => k.startsWith(start));
const lat = col("szerokosc"), lon = col("dlugosc");

for (const r of result.records) {
  L.marker([+r[lat], +r[lon]]).bindPopup(r["adres hotspota"]).addTo(map);
}

Prefer no coding? Open the CSV in free QGIS – guide. See all layers at once on the portal map.

Analysis in Python

Fetch all rows page by page and analyse them in pandas – daily mean PM10 from the city’s sensors:

Python
import pandas as pd, requests

API = "https://ckan.otwartedane-rz.st.cetuspro.com/api/3/action"
# All rows, 1000 per request
rows, offset = [], 0
while True:
    r = requests.get(f"{API}/datastore_search",
                     params={"resource_id": "<resource_id>", "limit": 1000, "offset": offset}).json()["result"]
    rows += r["records"]
    offset += 1000
    if offset >= r["total"]:
        break

df = pd.DataFrame(rows).drop(columns="_id")
df["PM10"] = pd.to_numeric(df["PM10"], errors="coerce")
print(df.groupby("Data")["PM10"].mean().round(1).tail())

Terms of use

  • LicenceEach dataset has its own licence (usually CC BY 4.0) – the license_id field. Credit the source: “City of Rzeszów”.
  • Freshnessmetadata_modified tells you when a dataset changed and update_frequency how often it is updated. Don’t poll more often than the data changes.
  • Large downloadsResults are paged: package_search up to 1000 per page (rows + start), datastore_search uses limit + offset. If you need the whole file, download it once instead of making hundreds of requests.
  • Read onlyThe public API is read-only. Institutions publish data in the CKAN panel.
  • Found an error?Contact the institution that publishes the dataset – details are in its description.

DCAT / dane.gov.pl

Catalogue metadata in the DCAT-AP standard. The dane.gov.pl harvester and other data catalogues use these endpoints.