OPSI (data.gov.si)
Open data portalsSIpodatki.gov.si
Slovenia's national open-data portal.
Capabilities (9)
GET /v1/data/datagovsi/dataset1 creditReturns one dataset's full CKAN record: title, notes, licence, publishing organisation, tags, custom extras and the list of its distributions with format and download URL.
GET /v1/data/datagovsi/datasets1 creditRuns a Solr-backed search over the 9,282 OPSI datasets and returns ten full package records plus the total match count and facet counts.
GET /v1/data/datagovsi/licenses1 creditReturns the licences the portal offers, each with its id, title, URL and whether it counts as open, OSI-approved or OKD-compliant.
GET /v1/data/datagovsi/organization1 creditReturns one publishing organisation's record: title, description, contact extras and the list of datasets it owns.
GET /v1/data/datagovsi/organizations1 creditReturns the names of all 5,794 Slovenian public bodies that publish on OPSI; with all_fields=true it returns their titles, descriptions and dataset counts instead.
GET /v1/data/datagovsi/package-list1 creditReturns a flat JSON array of every dataset name (slug) on the portal, about 9,000 strings and ~345 KB.
GET /v1/data/datagovsi/resource1 creditReturns one distribution's record: its download URL, format, size, description and the dataset it belongs to.
GET /v1/data/datagovsi/resource-search1 creditSearches distributions rather than datasets and returns up to 20 matching resource records with their URLs, formats and parent dataset ids, plus the total count.
GET /v1/data/datagovsi/tags1 creditReturns every tag used on the portal as a JSON array of strings, or only the tags matching a substring when query is given.
Response example
The shape of data from datagovsi/dataset (Dataset detail). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"help": "https://podatki.gov.si/api/3/action/help_show?name=package_show",
"success": true,
"result": {
"license_title": "",
"maintainer": null,
"licence": "Priznanje avtorstva (CC BY 4.0)",
"relationships_as_object": [],
"tag_string": "Statistični urad Republike Slovenije, statistični podatki",
"publisher": "VLADA REPUBLIKE SLOVENIJE STATISTIČNI URAD REPUBLIKE SLOVENIJE",
"private": false,
"maintainer_email": "surs.si-stat@gov.si",
"revision_timestamp": "2020-07-22T23:30:45.274471",
"organization": {
"description": "",
"created": "2016-11-09T19:16:39.119000",
"title": "VLADA REPUBLIKE SLOVENIJE STATISTIČNI URAD REPUBLIKE SLOVENIJE",
"name": "vlada_republike_slovenije_statisticni_urad_republike_slovenije",
"revision_timestamp": "2016-11-09T18:14:18.421616",
"is_organization": true,
"state": "active",
"image_url": "",
"revision_id": "361ed549-3111-4dac-bce8-50740eb5cd9b",
"type": "organization",
"id": "5022932000",
"approval_status": "approved"
},
"foi-email": "gp.surs@gov.si",
"dostopnost_zbirke": "Podatki so objavljeni kot odprti podatki",
"id": "c224af28-1850-4f4a-8502-a7edc7fc5b53",
"metadata_created": "2017-09-05T09:59:42.332959",
"municipal": false,
"pogoji_licence": "Ni omejitev (navedba vira)",
"metadata_modified": "2026-07-21T23:30:19.164101",
"author": null,
"author_email": null,
"geographic_coverage": "Slovenija",
"state": "active",
"version": null,
"archiver": {
"status": "Archived successfully",
"is_broken": false,
"reason": "",
"status_id": 0
},
"opsi_tip": "1",
"license_id": "",
"type": "dataset",
"unpublished": "false",
"resources": [
{
"hash": "",
"description": "Pristaniški potniški promet, Slovenija, letno",
"created": "2018-04-06T01:30:44.655997",
"url": "https://pxweb.stat.si/SiStatData/Resources/PX/Databases/Data/2219454S.PX",
"format": "PCAXIS",
"qa": {
"updated": "2024-10-28T07:34:48.258576",
"openness_score": 3,
"archival_timestamp": "2024-07-23T06:07:04.392168",
"format": "PCAXIS",
"created": "2018-04-06T01:31:01.666931",
"resource_timestamp": null,
"openness_score_reason": "Lokalna kopija ne obstaja, uporabljena prejšnja ocena: Zbirka vsebuje datoteke formata PCAXIS, kar zadošča za oceno 3."
},
"tracking_summary": {
"total": 0,
"recent": 0
},
"archiver": {
"is_broken_printable": "Downloaded OK",
"updated": "2024-07-23T06:07:04.392168",
"cache_filepath": "/var/ckan/resource_cache/0c/0c46cbc3-2389-479e-b714-5671549992e5/2219454S.PX",
"last_success": "2024-07-23T06:07:04.392168",
"size": "11596",
"is_broken": false,
"failure_count": 0,
"etag": "\"1DAAA91CEF51900\"",
"status": "Archived successfully",
"url_redirected_to": null,
"hash": "084f1afa6d5279f849e4aa371af0d7b95e0aad80",
"status_id": 0,
"reason": "",
"last_modified": "Mon, 20 May 2024 08:43:38 GMT",
"resource_timestamp": "2020-07-22T23:30:45.274471",
"mimetype": "application/octet-stream",
"cache_url": "http://localhost:5000/data/resource_cache/0c/0c46cbc3-2389-479e-b714-5671549992e5/2219454S.PX",
"created": "2018-04-06T01:31:00.109827",
"first_failure": null
},
"position": 0,
"revision_id": "772c33d3-ef45-42d1-8a93-98cc28452b10",
"datastore_active": false,
"id": "0c46cbc3-2389-479e-b714-5671549992e5",
"name": ""
},
{
"hash": "",
"description": "Izbor podatkov",
"created": "2019-07-23T01:51:52.232027",
"url": "https://pxweb.stat.si/SiStatData/pxweb/sl/Data/-/2219454S.PX",
Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Dataset detail
Use OPSI (data.gov.si) (datagovsi) from fastCRW Pergamon, capability "Dataset detail" (dataset). You have an OPSI dataset name or id and want its metadata and the URLs of its files. Example options: id=surs2219454s. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsi" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset search
Use OPSI (data.gov.si) (datagovsi) from fastCRW Pergamon, capability "Dataset search" (datasets). You are looking for Slovenian datasets by keyword, organisation or tag and do not yet have an id. Example options: q=promet, fq=res_format:CSV, sort=metadata_modified desc. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsi" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence list
Use OPSI (data.gov.si) (datagovsi) from fastCRW Pergamon, capability "Licence list" (licenses). You need to resolve a license_id seen on a dataset, or check which licences are considered open here. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsi" and capability "licenses". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Organisation detail
Use OPSI (data.gov.si) (datagovsi) from fastCRW Pergamon, capability "Organisation detail" (organization). You have an organisation name from a search result and want its profile and its datasets. Example options: id=vlada_republike_slovenije_statisticni_urad_republike_slovenije. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsi" and capability "organization". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
CC BY 4.0 for data published on the portal as open data, stated verbatim in the general terms of use (Slovenian Act on Access to Public Information, art. 10.b).
https://podatki.gov.si/pogoji-uporabeAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Vir: OPSI, podatki.gov.si
Cache: up to 3600s
