Addresses

Fetch a single unit address by DAR id

Fetches a single unit address by its DAR id. Use it when you have already stored an id and want fresh data.

GET/v1/adresser/{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/adresser/<id>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/adresser/%7Bid%7D

Response

application/json

Address

xnumber | null

Longitude (WGS84).

ynumber | null

Latitude (WGS84).

idstring<uuid>required

DAR id (Adresse — unit address).

dørstring | null
hrefstring<uri>required
etagestring | null
husnrstringrequired
postnrstringrequired
Show all 25 fieldsShow fewer
statusintegerrequired

DAWA status: 1 = current, 3 = provisional.

forslagboolean

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

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
adgangsadresseidstring<uuid>required

The adgangsadresse's (access address) DAR id.

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",
  "dør": "tv",
  "href": "…",
  "etage": "2",
  "husnr": "1",
  "postnr": "1550",
  "status": 1,
  "forslag": false,
  "vejkode": "0006152",
  "vejnavn": "Rådhuspladsen"
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}