History

History: access addresses

WARNING: Experimental API. Changes that are not backward compatible will be made to this API without notice. Get the history of access addresses. Only historical values for selected fields are included. Note that discontinued access 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 access address during the period specified by virkningstart and virkningslut. If the state is the current state, virkningslut has the value null.

GET/historik/adgangsadresser

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringquery

The access address's unique UUID

postnrintegerquery

Return only historical access addresses with the specified postcode

kommunekodeintegerquery

Return only historical access addresses with the specified municipality code

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/adgangsadresser" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/historik/adgangsadresser

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."
  }
}