Home → Widget
Embed typo-tolerant Danish address search on your website. No dependencies, no build — just a <script>. DAWA-compatible response.
Live against our API — free tier. Pick a suggestion.
<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>
| Option | Type | Description |
|---|---|---|
apiKey | string | Your API key. Omitted = free tier (1,000/day per IP). |
onSelect | function | Called with the selected suggestion (DAWA shape: tekst, data). |
type | string | adresse / adgangsadresse (default: both) |
limit | number | Number of suggestions (default 8). |
credit | boolean | false to hide the "Powered by" line. |
Show that you use Danadresse — and help other developers find us.
Markdown:
[](https://danadresse.dk)
HTML:
<a href="https://danadresse.dk"><img src="https://danadresse.dk/static/img/badge.svg" alt="Drevet af danadresse.dk"></a>