HomeWidget

Address autocomplete in 3 lines

Embed typo-tolerant Danish address search on your website. No dependencies, no build — just a <script>. DAWA-compatible response.

Try it

Live against our API — free tier. Pick a suggestion.

Embed

<input id="adr" placeholder="Type an address…">

<script src="https://danadresse.dk/static/js/danadresse-widget.js"></script>
<script>
  DanadresseAutocomplete.attach("#adr", {
    apiKey: "dawa_live_…",          // optional (free without)
    onSelect: function (s) {
      console.log(s.tekst, s.data); // selected address
    }
  });
</script>

Or fully declarative — no JS:

<input data-danadresse data-danadresse-key="dawa_live_…">
<script src="https://danadresse.dk/static/js/danadresse-widget.js"></script>

Options

OptionTypeDescription
apiKeystringYour API key. Omitted = free tier (1,000/day per IP).
onSelectfunctionCalled with the selected suggestion (DAWA shape: tekst, data).
typestringadresse / adgangsadresse (default: both)
limitnumberNumber of suggestions (default 8).
creditbooleanfalse to hide the "Powered by" line.

"Powered by" badge

Show that you use Danadresse — and help other developers find us.

Drevet af danadresse.dk

Markdown:

[![Drevet af danadresse.dk](https://danadresse.dk/static/img/badge.svg)](https://danadresse.dk)

HTML:

<a href="https://danadresse.dk"><img src="https://danadresse.dk/static/img/badge.svg" alt="Drevet af danadresse.dk"></a>

Get a free key

Higher rate limit + stats. 1,000 calls/day free without a key.

Get started →

Code examples · API docs · Integrations