Same paths, same response shape. Just change the base URL and add your X-Api-Key — the rest of your code is unchanged.
curl "https://dawa.aws.dk/autocomplete?q=rådhuspladsen"
curl "https://api.danadresse.dk/autocomplete?q=rådhuspladsen" \
-H "X-Api-Key: dawa_live_…"
fetch("https://dawa.aws.dk/autocomplete?q=rådhuspladsen")
fetch("https://api.danadresse.dk/autocomplete?q=rådhuspladsen", {
headers: { "X-Api-Key": "dawa_live_…" }
})
requests.get("https://dawa.aws.dk/autocomplete",
params={"q": "rådhuspladsen"})
requests.get("https://api.danadresse.dk/autocomplete",
params={"q": "rådhuspladsen"},
headers={"X-Api-Key": "dawa_live_…"})
$ctx = stream_context_create();
file_get_contents("https://dawa.aws.dk/autocomplete?q=rådhuspladsen", false, $ctx);
$ctx = stream_context_create(["http" => [
"header" => "X-Api-Key: dawa_live_…"
]]);
file_get_contents("https://api.danadresse.dk/autocomplete?q=rådhuspladsen", false, $ctx);
http.Get("https://dawa.aws.dk/autocomplete?q=rådhuspladsen")
req, _ := http.NewRequest("GET",
"https://api.danadresse.dk/autocomplete?q=rådhuspladsen", nil)
req.Header.Set("X-Api-Key", "dawa_live_…")
http.DefaultClient.Do(req)
await http.GetStringAsync( "https://dawa.aws.dk/autocomplete?q=rådhuspladsen");
http.DefaultRequestHeaders.Add("X-Api-Key", "dawa_live_…");
await http.GetStringAsync(
"https://api.danadresse.dk/autocomplete?q=rådhuspladsen");
Integrate Danish address autocomplete into React in 10 lines: fetch from api.danadresse.dk in useEffect, render a dropdown of hits. Same endpoints as DAWA — drop-in for existing code.
No SDK needed — one fetch call in a useEffect and you have live typeahead.
Call the API directly from an async Server Component — no client-side API key exposure.
Full TypeScript support via @danadresse/client — autocomplete in your editor.
// React hook example
const [hits, setHits] = useState([])
useEffect(() => {
if (!q) return
fetch(`https://api.danadresse.dk/autocomplete?q=${q}`, {
headers: { 'X-Api-Key': process.env.REACT_APP_DANADRESSE_KEY }
}).then(r => r.json()).then(setHits)
}, [q])
Replace a plain text input with typeahead — validated address from the first keystroke.
Use a Route Handler to proxy the API key server-side and expose a safe autocomplete endpoint to the client.
Embed address autocomplete in any React form library (react-hook-form, Formik, etc.).
The slug /react-adresse-autocomplete follows DAWA's conventions — same paths, same JSON shape, same UUIDs. See the migration guide for the full picture.
See also