Migration guide

Move off DAWA
step by step

From dawa.aws.dk / api.dataforsyningen.dk to a drop-in alternative — without rewriting your code.

TL;DR

Change the base URL from dawa.aws.dk / api.dataforsyningen.dk to api.danadresse.dk and add an X-Api-Key header. Endpoints, params and responses are 1:1 with DAWA — no other code change. Takes ~30 seconds.

1. Get an API key

Create a free account at danadresse.dk/signup (no credit card, 2,000 calls/month). Copy your key — it looks like dawa_live_…. Use a dawa_test_ key for development.

2. Change the base URL

Find every place your code calls DAWA and replace the host. The rest of the URL (path + query) stays the same.

- https://dawa.aws.dk/autocomplete?q=rådhus
- https://api.dataforsyningen.dk/adresser?postnr=8000
+ https://api.danadresse.dk/autocomplete?q=rådhus
+ https://api.danadresse.dk/adresser?postnr=8000

3. Add your key

Send the key as an X-Api-Key header (recommended) or as a ?api_key= query param (for browser/JSONP). A key is required on every request — get a free one in 30 seconds.

curl 'https://api.danadresse.dk/autocomplete?q=rådhuspladsen' \
     -H 'X-Api-Key: dawa_live_…'

4. Verify the response matches

The response has the same fields and the same address IDs (DAR UUID) as DAWA. Run your existing tests against the new base URL — they should pass unchanged.

5. Error handling & rate limits

  • 429 Too Many Requests means rate-limited. Headers X-RateLimit-Remaining and X-RateLimit-Limit show status.
  • Errors follow the same JSON convention. Implement retry with backoff on 429/5xx.
  • Hobby (free): 2,000 calls/month per account. When they are used up, we still answer up to 2,400 calls (a 20% buffer); those responses carry X-Quota-Grace: true and X-Quota-Remaining with the calls left in the buffer. After that the API answers 429 with quota_exceeded until the 1st of next month (retrying won't help). On Basis and Pro, calls keep running as overage.

6. Test on staging, then roll out

DAWA is closed, so there is nothing left to run in parallel with — change the base URL on staging first and run your tests. If you have stored DAWA responses (logs, fixtures, cache), compare samples with ours. Then roll out.

Get a free key Code examples →

Using a specific tool?

We have ready recipes for WordPress/WooCommerce, frameworks and no-code.

See integrations →

DAWA is closed — switch now Get free key