@danadresse/client
v1.0.0
Published
Official JavaScript/TypeScript client for the Danadresse API — drop-in DAWA replacement. 2.7M Danish addresses, autocomplete, datavask, geocoding.
Maintainers
Readme
@danadresse/client
Official JavaScript / TypeScript client for Danadresse — the drop-in replacement for the Danish Address Web API (DAWA, closing 17 August 2026).
npm install @danadresse/clientQuick start
import { DanadresseClient } from '@danadresse/client'
const api = new DanadresseClient({ apiKey: 'dawa_live_…' })
// Typo-tolerant autocomplete (same as DAWA /autocomplete)
const hits = await api.autocomplete('Rådhuspladsen')
console.log(hits[0].tekst) // "Rådhuspladsen 1, 1550 København V"
// Reverse geocoding
const addr = await api.reverse(12.5683, 55.6761)
// Address cleansing / datavask
const result = await api.datavask('Radhuspladsen 1 KBH')
console.log(result.kategori) // "A"
// Full property bundle: BBR + valuation + zoning + energy (beyond DAWA)
const property = await api.enrichAll('<address-uuid>')Migration from DAWA
Migrating from dawa.aws.dk? Change one line:
- const BASE = 'https://api.dataforsyningen.dk'
+ const BASE = 'https://api.danadresse.dk'Or use this client — same endpoints, same parameters, same JSON shapes:
| DAWA endpoint | Danadresse method |
|---|---|
| GET /autocomplete?q=… | api.autocomplete(q) |
| GET /adresser | api.adresser(params) |
| GET /adresser/{id} | api.adresse(id) |
| GET /adgangsadresser/reverse | api.reverse(x, y) |
| POST /datavask/adresser | api.datavask(betegnelse) |
| GET /postnumre | api.postnumre() |
Full migration guide → danadresse.dk/migration
API key
Get a free key (1 000 calls/month, no credit card) at danadresse.dk/dashboard/signup.
Pass it as X-Api-Key header or ?api_key= query param — this client handles both via the constructor.
Enrichment (beyond DAWA)
// BBR building data
const bbr = await api.enrichBbr(adresseId)
// Energy label (EMO)
const energi = await api.enrichEnergi(adresseId)
// Property + zoning + valuation
const ejendom = await api.enrichEjendom(adresseId)
// Everything in one call
const all = await api.enrichAll(adresseId)See danadresse.dk/ejendom for the full property data reference.
Browser / CDN
<script type="module">
import { DanadresseClient } from 'https://esm.sh/@danadresse/client'
const api = new DanadresseClient({ apiKey: 'dawa_live_…' })
</script>License
MIT © LynBro ApS
