Addresses

Search / list unit addresses

Searches and lists unit addresses (addresses with floor and door). Combine free text (q) with postal code and municipality filters. For address fields and validation.

GET/v1/adresser

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

qstringquery

Free-text search. Omitted = the search text is built from vejnavn, husnr, etage and doer.

max 200 characters
vejnavnstringquery

Structured search: street name (used when q is not set).

max 160 characters
husnrstringquery

Structured search: house number, e.g. 12A. husnummer is also accepted.

max 8 characters
etagestringquery

Structured search: floor, e.g. 2 or st.

max 4 characters
doerstringquery

Structured search: door, e.g. tv. dør and door are also accepted.

max 4 characters
postnrstringquery

Filter on postal code. On its own (without search text) it lists the addresses in the postal code.

kommunekodestringquery

Filter on municipality code (4 digits). On its own (without search text) it lists the addresses in the municipality.

typestringquery

Only this type. Omitted = access addresses merged with their unit addresses (flats).

Allowed values:adresseadgangsadresse
Show all 15 parametersShow fewer
per_sideintegerquery

Results per page. limit (max 100) is accepted as the older name.

default: 201–1000
sideintegerquery

Page number in the ranked search. side × per_side may be at most 1000.

default: 1min 1
limitintegerquery

Older name for per_side (max 100). Use per_side.

1–100
sridstringquery

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

polygonstringquery

Only addresses inside the polygon: a JSON list of [lon,lat] points in WGS84, e.g. [[12.5,55.6],[12.6,55.6],[12.6,55.7],[12.5,55.6]]. Can be used on its own without search text.

cirkelstringquery

Only addresses inside the circle: lon,lat,radius_m in WGS84, radius at most 100000 m. Can be used on its own without search text.

dawastringquery

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

Request

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

Response

application/json

List of addresses

dataobject

The object itself: the address/access address (with id), the street name (navn, href) or the postal code (nr, navn, stormodtager, href).

typestring

adresse | adgangsadresse | vejnavn | postnummer

tekststring
caretposinteger

Where the cursor should be placed after the suggestion is chosen.

forslagstekststring

The text shown in the suggestion list.

stormodtagerpostnrboolean

Address suggestions only.

200Eksempel
[
  {
    "data": {},
    "type": "adgangsadresse",
    "tekst": "Rådhuspladsen 1, 1550 København V",
    "caretpos": 0,
    "forslagstekst": "…",
    "stormodtagerpostnr": false
  }
]
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}
Search / list unit addresses — DanskAdresseAPI