Open Government, Greece API

Government / OAuth Advanced HTTPS
Varies by plan (check documentation)

Overview

The Open Government Greece API provides access to official Greek government datasets covering areas such as economy, environment, transportation, and public health. Authentication is done via OAuth, so you will need to register for credentials before making requests. It is a valuable resource for developers building applications focused on Greek public data.

💡

Beginner Tip

Register at https://data.gov.gr/ to obtain OAuth credentials, then exchange them for an access token before calling any data endpoints. Start with the /api/v1/query endpoint and filter by category to narrow down datasets quickly.

Available Data

Use case: Integrate greece government open data data into web and mobile applications
Open Government, Greece data via REST API
JSON-formatted response data
Requires OAuth authentication

Example Response

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

Field Reference

dataset Identifier of the dataset that was queried
data Array of records matching the query parameters
data[].date Date associated with the data record in ISO 8601 format
data[].value Numeric value for the measured indicator
total Total number of records available for the dataset

Implementation Example

const url = "https://data.gov.gr/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
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

401 Unauthorized Missing or expired OAuth access token in the Authorization header
Re-authenticate and include the token as Authorization: Bearer YOUR_TOKEN in every request
No datasets returned The requested category code does not match any available dataset group
Browse https://data.gov.gr/datasets/ first to find valid category names, then use them in the API query
Connection timeout The Greek government servers may be slow during peak hours
Set your HTTP client timeout to at least 30 seconds and implement retry logic with exponential backoff

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Advanced
Verified: 2026-04-04

Similar APIs

View All →