Addresses

Search / list access addresses

Searches and lists access addresses (street level, without floor or door). Choose this over /v1/adresser when you only need the building's own address.

GET/v1/adgangsadresser

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.

per_sideintegerquery

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

default: 201–1000
Show all 14 parametersShow fewer
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/adgangsadresser" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/adgangsadresser

Response

application/json

List of access 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."
  }
}