Open Government, Slovenia API

Free to Use Varies (check documentation)

Overview

The Slovenia Open Government Data API (podatki.gov.si) provides free access to official datasets published by Slovenian government bodies, including data on public finance, environment, and transportation. No authentication is required, and the platform follows EU open data standards (DCAT-AP). It's part of the broader European open data ecosystem, making it a good choice for cross-border civic data projects.

💡

Beginner Tip

Slovenia's portal follows the DCAT-AP standard — you can discover datasets using the SPARQL endpoint or the dataset search API. Start by browsing the portal UI to find dataset identifiers, then use the API to automate data retrieval.

Available Data

Use case: Integrate slovenia government open data data into web and mobile applications
Open Government, Slovenia data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Open Government, Slovenia",
    "description": "Slovenia Government Open Data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

success Whether the CKAN-compatible API call succeeded.
count Total number of matching datasets.
results Array of dataset descriptor objects.
title Dataset title, typically in Slovenian.
license_title Open license under which the dataset is published.
resources Data files or API endpoints associated with the dataset.

Implementation Example

const url = "https://podatki.gov.si/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Slovenian-only content Dataset titles and metadata are primarily in Slovenian (sl locale).
Use translation tools or the portal's English interface to identify datasets, then reference them by their URL slug.
DCAT-AP structure not recognized The response uses JSON-LD or RDF format instead of plain JSON.
Use a JSON-LD parser or an RDF library to properly interpret the response structure.
404 for resource download The dataset resource URL may point to an outdated file location.
Re-fetch the dataset metadata to obtain the most current resource URLs and verify availability.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 7/15
Response Time 1223ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →