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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Use case: Integrate denmark government open data data into web and mobile applications
Open Government, Denmark data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.opendata.dk/api/3/action/package_search?q=transport&rows=5";
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Listing details not endpoint-verified

Similar APIs

View All →