Migrating from DAWA

Change the base URL

If you have code that calls DAWA, it works unchanged afterwards. Two things need to change.

DAWA is shutting down. The /dawa surface runs DAWA's own engine, so the same path, the same parameters, the same JSON — you only change where the call goes, and add a key.

Before

JavaScript
const r = await fetch(
  "https://api.dataforsyningen.dk/adgangsadresser?q=" + q
);

After

JavaScript
const r = await fetch(
  "https://api.danskadresseapi.dk/dawa/adgangsadresser?q=" + q,
  { headers: { Authorization: "Bearer YOUR_KEY" } }
);

That is the whole change. Fields, error codes and pagination are the same.

What you must NOT change

  • Parameter names — q, per_side, side, struktur, format, srid
  • Spatial filters — polygon, cirkel, srid=25832
  • The response fields and their names
  • Your parsing

What is new

You have to send a key, and you now have a usage ceiling. See Rate limits. In return you get data every quarter of an hour instead of daily, and access to BBR, property assessments and soil contamination, which DAWA never had.

Change the base URL — DanskAdresseAPI