Home Documentation Central Bank Rates Tax Authority Rates Playground Pricing API Status Blog About FAQ Contact Us

Danmarks Nationalbank Exchange Rate API: Official DKK Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

The Danmarks Nationalbank publishes the official exchange rates that accounting, tax, and customs rules in Denmark reference — published official rates, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency danmarks-nationalbank-exchange-rate npm package.

USD → DKK — official Danmarks Nationalbank official rate
Weekly observations, Aug '25 – Aug '26 · Danish krones per 1 US dollar
6.3006.4006.5006.600Aug '25Nov '25Feb '26May '26Aug '266.4782025-08-08: 6.407 DKK2025-08-15: 6.386 DKK2025-08-22: 6.431 DKK2025-08-29: 6.403 DKK2025-09-05: 6.382 DKK2025-09-12: 6.370 DKK2025-09-19: 6.359 DKK2025-09-26: 6.395 DKK2025-10-03: 6.363 DKK2025-10-10: 6.455 DKK2025-10-17: 6.394 DKK2025-10-24: 6.433 DKK2025-10-31: 6.463 DKK2025-11-07: 6.458 DKK2025-11-14: 6.411 DKK2025-11-21: 6.483 DKK2025-11-28: 6.457 DKK2025-12-05: 6.414 DKK2025-12-12: 6.368 DKK2025-12-19: 6.379 DKK2025-12-23: 6.338 DKK2025-12-30: 6.353 DKK2026-01-02: 6.373 DKK2026-01-09: 6.418 DKK2026-01-16: 6.431 DKK2026-01-23: 6.361 DKK2026-01-30: 6.265 DKK2026-02-06: 6.331 DKK2026-02-13: 6.298 DKK2026-02-20: 6.350 DKK2026-02-27: 6.329 DKK2026-03-06: 6.462 DKK2026-03-13: 6.511 DKK2026-03-20: 6.466 DKK2026-03-27: 6.488 DKK2026-04-01: 6.439 DKK2026-04-10: 6.381 DKK2026-04-17: 6.335 DKK2026-04-24: 6.381 DKK2026-04-30: 6.385 DKK2026-05-08: 6.354 DKK2026-05-13: 6.380 DKK2026-05-22: 6.445 DKK2026-05-29: 6.418 DKK2026-06-04: 6.421 DKK2026-06-12: 6.462 DKK2026-06-19: 6.518 DKK2026-06-26: 6.556 DKK2026-07-03: 6.529 DKK2026-07-10: 6.540 DKK2026-07-17: 6.537 DKK2026-07-24: 6.571 DKK2026-07-31: 6.509 DKK2026-08-07: 6.481 DKK2026-08-11: 6.478 DKK
Source: Danmarks Nationalbank published rates · chart data from the AllRatesToday API (/api/v1/central-bank/dnb/history?source=USD&target=DKK).

What the Danmarks Nationalbank publishes

The USD/DKK rate anchors the table for pricing and reporting, while the EUR/DKK series documents the fixed-rate policy itself — the krone has been pegged to the euro in ERM II since 1999, held within a narrow band around 7.46.

Why official rates, not market rates

A live mid-market feed answers "what is USD/DKK trading at right now?" — the right tool for checkouts and dashboards. But accountants, auditors, and tax authorities ask a different question: "which rate were you required to use for this date?" That answer comes from the Danmarks Nationalbank's published rates, and it never changes after publication.

Get the latest rates (REST)

curl "https://allratestoday.com/api/v1/central-bank/dnb/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the bank's most recent published data — every rate and the publication date. The latest rates are available on every plan, including the free tier (300 requests/month, no credit card).

The npm SDK

npm install danmarks-nationalbank-exchange-rate
import { getRate, getLatestRates } from 'danmarks-nationalbank-exchange-rate';

// One pair at the official Danmarks Nationalbank rate
const pair = await getRate('USD', 'DKK', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

// The bank's full published table
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);

Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.

Historical rates for an invoice date

import { getRatesForDate, getHistory } from 'danmarks-nationalbank-exchange-rate';

// The official rates for an invoice date — non-publication days return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

// Time series for one pair
const series = await getHistory(
  { source: 'USD', target: 'DKK', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);

Historical dates and time series need a paid plan; the latest rates stay free.

Published vs derived pairs

If the Danmarks Nationalbank does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via DKK — and flags it derived: true with the method used. Official and computed values are never silently mixed, which is exactly the distinction an auditor will ask about.

A decade of krone history

The series runs from 2016 and shows two currencies in one: an EUR/DKK line that barely moves — the ERM II peg doing its job — and a USD/DKK line that swings with the dollar cycle, from the 6.2s to above 7.6 in 2022. For invoice-date lookups and audits, the Nationalbank's print is the official record.

FAQ

Does the Danmarks Nationalbank have an official exchange rate API?

The Danmarks Nationalbank publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the danmarks-nationalbank-exchange-rate npm package. The latest table is free.

How often do Danmarks Nationalbank rates update?

Once per business day, around 16:00 Copenhagen time. These are published official rates, not moving market prices — every API response carries the publication date so you can cite it.

Can I get the Danmarks Nationalbank rate for a past date, like an invoice date?

Yes. The /central-bank/dnb/rates-for-date endpoint returns the official rates for any archived date. Non-publication days resolve to the most recent published date and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

Official Danmarks Nationalbank rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

Get your free API key

Related Articles