Open Government, Luxembourg API

Government / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

The Open Government Luxembourg API provides access to official Luxembourgish government open data through the data.public.lu portal, which runs on a CKAN platform. You need a free API key to write data, but most read operations are accessible without authentication. It covers datasets on the economy, environment, mobility, and public services in Luxembourg.

💡

Beginner Tip

For read-only access, most CKAN endpoints work without authentication — try https://data.public.lu/api/3/action/package_search?q=transport to search datasets. If you need to upload or modify datasets, register at data.public.lu to get your API key.

Available Data

Response fields: public lu
Open Government, Luxembourg data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

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

Field Reference

success Whether the CKAN API call was completed without errors
result.count Total datasets matching the search term in the Luxembourg portal
result.results[].title Title of the dataset, often in French or German
result.results[].organization Luxembourg government organization responsible for the dataset
result.results[].resources Downloadable files or API links attached to the dataset
result.results[].license_title Name of the open license under which the data is published

Implementation Example

const url = "https://data.public.lu/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "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

403 Forbidden when writing data The API key is missing from the request header for write operations
Add Authorization: YOUR_API_KEY to your request headers when using POST endpoints to create or update datasets
Dataset metadata in French or German only Luxembourg is multilingual and some datasets are labeled only in French or German
Parse the extras field for alternate language titles, or use the search endpoint with French keywords like transport or energie
Resource download URL returns 404 A dataset resource file has been moved or removed by the publishing ministry
Re-fetch the dataset using package_show to get the current resource list and updated download URLs

Matrix Score Breakdown

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

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Intermediate
Verified: 2026-04-07

Similar APIs

View All →