History

History: addresses

WARNING: Experimental API. Changes that are not backward compatible will be made to this API without notice. Get the history of addresses. Only historical values for selected fields are included. Note that discontinued addresses (status codes 2 and 4) are also included in the response. The history is returned as an array of JSON objects, where each object represents the state of an address during the period specified by virkningstart and virkningslut. If the state is the current state, virkningslut has the value null.

GET/historik/adresser

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringquery

The address's unique UUID

postnrintegerquery

Returns only historical addresses with the given postcode

kommunekodeintegerquery

Returns only historical addresses with the given municipality code

adgangsadresseidstringquery

Returns only addresses belonging to the given access address

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

formatstringquery

Returns the output in a format other than JSON. See Data formats.

callbackstringquery

Returns the output as JSONP. See Data formats.

noformatstringquery

Omits whitespace formatting from the output

ndjsonstringquery

Returns the output as Newline Delimited JSON

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/historik/adresser" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/historik/adresser

Response

application/json

Success response. The MIME type of the response depends on the format parameter.

—

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