Open Government, Denmark API

Free to Use Varies (check documentation)

Overview

The Open Government Denmark API (opendata.dk) provides free access to Danish public sector datasets covering topics such as municipalities, transport, culture, and the environment. No authentication is required. The portal aggregates data from many Danish government bodies into a single searchable catalog.

💡

Beginner Tip

Denmark's portal aggregates datasets from multiple municipalities and agencies; use the organization filter in package_search (fq=organization:NAME) to narrow down to a specific city or agency.

Available Data

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

Example Response

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

Field Reference

success Indicates whether the API call was processed successfully.
result Contains count and results array for searches, or the full dataset object for show calls.
count Total number of datasets matching the search query.
title Dataset title in Danish.
resources Files or API endpoints where the dataset can be accessed, each with url and format fields.
organization The Danish municipality or agency that published the dataset.

Implementation Example

const url = "https://www.opendata.dk/";
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

Danish-language metadata Dataset titles and descriptions are almost exclusively in Danish.
Use Danish keywords such as transport, miljo (environment), or kultur (culture) when searching.
Resource URL returns 403 Some municipality datasets require requests from within Denmark or have additional access controls.
Check the dataset notes for access instructions and contact the publishing organization if access is restricted.
Inconsistent data formats Different municipalities publish data in different formats (CSV, XML, JSON, GeoJSON).
Always check the format field in the resource object before downloading; filter by format in your search if needed.

Matrix Score Breakdown

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

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 →