Addresses

Fetch a single access address by DAR id

Fetches a single access address by its DAR id.

GET/v1/adgangsadresser/{id}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The resource's UUID.

includestringquery

Comma-separated: bbr, dagi and/or dar — adds objects with the same name to the response.

fieldsstringquery

Comma-separated list of fields to include in the response (sparse fieldset). Omitted = all fields.

dawastringquery

1 = exactly DAWA's fields (omits confidence, forslag and similarity).

sridstringquery

Coordinate system for the coordinates in the response as an EPSG code, e.g. 25832. Default 4326 (WGS84).

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/adgangsadresser/<id>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/adgangsadresser/%7Bid%7D

Response

application/json

Access address

xnumber | null

Longitude (WGS84).

ynumber | null

Latitude (WGS84).

idstring<uuid>required

DAR id (Husnummer — house number record).

hrefstring<uri>required
husnrstringrequired
postnrstringrequired
statusintegerrequired

DAWA status: 1 = current, 3 = provisional.

forslagboolean

true when the address is a fuzzy suggestion (not in DAWA; omitted with ?dawa=1).

Show all 22 fieldsShow fewer
vejkodestring | null
vejnavnstringrequired
darstatusintegerrequired

DAR status: 2 = provisional, 3 = current.

confidenceinteger

Confidence 0–100 (not in DAWA; omitted with ?dawa=1).

postnrnavnstringrequired
similaritynumber

Similarity 0–1 of the street name on a fuzzy match (not in DAWA; omitted with ?dawa=1).

kommunekodestringrequired
supplerendebynavnstring | null
stormodtagerpostnrstring | null
adresseringsvejnavnstring
stormodtagerpostnrnavnstring | null
bbrobject

Only with include=bbr.

darobject

Only with include=dar.

dagiobject

Only with include=dagi.

200Eksempel
{
  "x": 12.5683,
  "y": 55.6761,
  "id": "00000000-0000-0000-0000-000000000000",
  "href": "…",
  "husnr": "1",
  "postnr": "1550",
  "status": 1,
  "forslag": false,
  "vejkode": "0006152",
  "vejnavn": "Rådhuspladsen",
  "darstatus": 3,
  "confidence": 0
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}