# Denmark Open Data API

> Opendata.dk: 628 open datasets from Danish municipalities and regions, searchable

- Vendor: `denmarkopendataapi` · version 1.0 · category Government Data · tags denmark api, denmark open data api, ckan api, government open data api, open datasets api, public data catalog api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/denmarkopendataapi
- This document: https://apiclay.com/docs/denmarkopendataapi.md
- OpenAPI 3.1: https://apiclay.com/api/denmarkopendataapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `denmarkopendataapi`
- Updated: 2026-11-18

## About

## Denmark Open Data API

The open data catalog of Danish municipalities and regions (Opendata.dk) (admin.opendata.dk, run on CKAN): about 628 datasets, for example street lighting data. Search datasets by keyword or filter, read any dataset with its resources and download links, list the publishing organisations.

Data comes from **admin.opendata.dk** (https://admin.opendata.dk). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/datasets?q=&amp;rows=5`, then `/dataset?id=` for its resources.

### Routes

#### GET `/datasets` - Datasets
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| q | query | string | no | Keyword search, e.g. `flood`. |
| fq | query | string | no | Solr filter, e.g. `organization:` or `res_format:CSV`. |
| rows | query | number | no | Datasets per page (default 10; keep it small, records carry every resource). |
| start | query | number | no | Datasets to skip, for paging. |
| sort | query | string | no | e.g. `metadata_modified desc`. |

Returns: `result.count` and `result.results`: datasets with `name`, `title`, `notes`, `organization`, `tags`, `metadata_modified`, `license_title` and `resources` (`id`, `name`, `format`, `url`, `datastore_active`).

#### GET `/dataset` - Dataset
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| id | query | string | yes | Dataset `name` or `id` from `/datasets`. |

Returns: `result`: the full dataset record with all its `resources` and download URLs.

#### GET `/organizations` - Organizations
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| all_fields | query | string | no | `true` for titles and dataset counts. |
| limit | query | number | no | Organisations per page. |
| offset | query | number | no | Organisations to skip. |

Returns: `result`: publishing organisations (`name`, `title`, `package_count` with `all_fields=true`).

### Caveats

- Dataset records are verbose; keep `rows` small and read resources with `/dataset`.
- Some datasets name individuals (licence holders, employees, drivers, arrestees) as published by the government; handle them under applicable privacy law.
- Each dataset carries its own licence (`license_title`); credit Danish municipalities and regions (Opendata.dk).
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by admin.opendata.dk.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /datasets — Datasets
- Gateway: `GET https://api.apiclay.com/v1/api/denmarkopendataapi/datasets`
- Public query params: `q` (string), `fq` (string), `rows` (number), `start` (number), `sort` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /dataset — Dataset
- Gateway: `GET https://api.apiclay.com/v1/api/denmarkopendataapi/dataset`
- Public query params: `id` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /organizations — Organizations
- Gateway: `GET https://api.apiclay.com/v1/api/denmarkopendataapi/organizations`
- Public query params: `all_fields` (string), `limit` (number), `offset` (number)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/denmarkopendataapi/datasets" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
