What is the museum open data
Open data is public information published in machine-readable formats that anyone can download and reuse - also for commercial purposes. We publish it in line with the Polish Act of 11 August 2021 on open data and the re-use of public sector information.
Every dataset has a description (metadata): title, description, category, publisher, licence, update frequency, creation and modification dates, and spatial and temporal coverage.
Licence and terms of use
Unless stated otherwise in the dataset description, the data is published under the Creative Commons Attribution 4.0 licence (CC BY 4.0). You may copy, distribute, transform and combine it with other data. CC BY 4.0 licence text (opens in a new tab)
The only condition is to credit the source, e.g.:
Data source: City Museum in Jastrzębie-Zdrój (Muzeum Miejskie w Jastrzębiu-Zdroju), licence CC BY 4.0Data formats
- CSV - text table (UTF-8 encoding, comma separator) that opens in a spreadsheet.
- JSON - data with field descriptions and dataset metadata, convenient for developers.
- XLSX - spreadsheet with a data sheet and a metadata sheet.
- GeoJSON - spatial data (points in WGS84 coordinates) for datasets with locations, for GIS systems and maps.
Files of datasets built from website data are generated at download time, so they always contain the latest version. Other datasets are published by the museum as ready files, updated at the same address.
How to use the API
The API works without signing in and without a key. Responses are also available from other domains (CORS header). The dataset identifier ({slug}) is in the metadata and in the dataset page address.
| Method | Address | Description |
|---|---|---|
| GET | /api/opendata/datasets?languageCode=en | List of datasets with metadata. Optional filters: q (phrase), category (category code), format. |
| GET | /api/opendata/datasets/{slug} | Metadata of one dataset with column descriptions. |
| GET | /api/opendata/datasets/{slug}/data.csv | Dataset data as CSV. |
| GET | /api/opendata/datasets/{slug}/data.json | Dataset data as JSON. |
| GET | /api/opendata/datasets/{slug}/data.xlsx | Dataset data as XLSX. |
| GET | /api/opendata/datasets/{slug}/data.geojson | Spatial dataset data as GeoJSON. |
| GET | /api/opendata/catalog.rdf | Catalogue of all datasets in DCAT-AP-PL (RDF/XML). |
| GET | /api/opendata/catalog.jsonld | Catalogue of all datasets in DCAT-AP-PL (JSON-LD). |
| GET/POST | /api/opendata/sparql?query=… | Harvester endpoint: a CONSTRUCT or DESCRIBE query returns the whole catalogue as RDF/XML. |
Example - downloading museum locations as GeoJSON:
curl -L "https://muzeumjastrzebie.pl/api/opendata/datasets/lokalizacje/data.geojson" -o lokalizacje.geojsonThe languageCode parameter (pl or en) selects the metadata language. Responses may be cached for up to 5 minutes.
DCAT-AP-PL catalogue and dane.gov.pl
Metadata of all published datasets is available in the DCAT-AP-PL standard at permanent addresses:
- RDF/XML: https://muzeumjastrzebie.pl/api/opendata/catalog.rdf
- JSON-LD: https://muzeumjastrzebie.pl/api/opendata/catalog.jsonld
- SPARQL: https://muzeumjastrzebie.pl/api/opendata/sparql
Addresses and dataset identifiers are permanent, so the dane.gov.pl portal can regularly harvest the museum metadata.
Data scope
The datasets contain only information published on the museum website. We do not publish personal data - e.g. names of workshop leaders, event registrations or newsletter subscribers.
Contact
Questions about the data, error reports and suggestions for new datasets can be sent to: info@muzeum.jastrzebie.pl

