Open Government, Italy API

Free to Use Varies (check documentation)

Overview

The Open Government Italy API (dati.gov.it) offers free access to Italian government open data published across national and regional agencies, including datasets on public administration, environment, and transportation. No API key is needed — the platform uses a CKAN-compatible API that accepts plain HTTP requests. It is a solid resource for exploring Italian civic data or building public-interest applications.

💡

Beginner Tip

Query the CKAN API at https://www.dati.gov.it/opendata/api/3/action/package_search to search for datasets. Add ?q=your_keyword&rows=10 to the URL to retrieve up to 10 matching datasets in a single call.

Available Data

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

Example Response

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

Field Reference

success Indicates whether the API action was executed without errors
result.count Total number of matching datasets in the catalog
result.results[].name URL-safe identifier for the dataset, used in package_show calls
result.results[].title Human-readable Italian title of the dataset
result.results[].organization Government body responsible for publishing the dataset
result.results[].resources Downloadable files or sub-APIs attached to the dataset

Implementation Example

const url = "https://www.dati.gov.it/";
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

Response contains Italian error messages The API returns localized error text when a parameter is invalid
Validate your parameter names against the CKAN API documentation — common valid actions are package_search, package_show, and datastore_search
result.results is empty despite high count The start offset parameter is set beyond the available records
Reset start=0 and use rows to control page size; iterate with start increments equal to rows for pagination
SSL certificate error The server certificate may be outdated or use an intermediate CA not trusted by your system
Update your system CA certificates or pass the --cacert flag in curl with a current CA bundle

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 642ms

Fully tested on Apr 5, 2026

Technical Specifications

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

Similar APIs

View All →