DanskAdresseAPIv1
Datavask

Validate and normalise an address

Validates and normalises an address: corrects typos, fills in postal code and town, and returns the official DAR form. For checkout and forms where the customer typed the address themselves.

POST/v1/validate

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Request

curl --request POST \
  --url "https://api.danskadresseapi.dk/v1/validate" \
  --header "Authorization: Bearer $API_NOEGLE" \
  --header "Content-Type: application/json" \
  --data '{}'

Response

application/json

Valideringsresultat (valid + score + id, eller forslag)

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}