Addresses

Autocomplete across addresses, streets and postcodes

GET/autocomplete

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringquery

Return the address or access address with the specified ID. The type parameter determines whether access addresses or addresses are searched. An empty array is returned if the (access) address does not exist.

adgangsadresseidstringquery

Limit the search to addresses with the specified adgangsadresseid

kommunekodeintegerquery

Limit the search to addresses within the specified municipality

postnrintegerquery

Limit the search to the specified postcode

geometristringquery

Specifies which geometry is used for geometric searches (the polygon or cirkel parameters). Possible values: "adgangspunkt" or "vejpunkt".

polygonstringquery

Autocomplete within a polygon. Intended for smaller polygons—large polygons will result in poor performance. The polygon is specified as an array of coordinates in the same way that coordinates are specified in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinates must be identical. The coordinate system can be (ETRS89/UTM32 or) WGS84/geographic. This is specified using the srid parameter; see above. Example: polygon=[[[10.3,55.3],[10.4,55.3],[10.4,55.31],[10.4,55.31],[10.3,55.3]]].

cirkelstringquery

Autocomplete within the circle specified by the coordinate (x,y) and radius r. Intended for smaller circles. Large circles will result in poor performance. The coordinate system can be (ETRS89/UTM32 or) WGS84/geographic. The radius is specified in metres. cirkel={x},{y},{r}.

sridintegerquery

Specifies the SRID of the coordinate system in which geospatial parameters are specified. The default is 4326 (WGS84 / geographic coordinates). For ETRS89 / UTM zone 32 North, use 25832

Show all 24 parametersShow fewer
qstringquery

Search text—the text entered by the user

fuzzystringquery

Enables fuzzy search

caretposintegerquery

Position of the caret (cursor) in the text entered by the user

typestringquery

Specifies whether the user is entering a street name, an access address or an address. Possible values: "vejnavn", "adgangsadresse" or "adresse". The returned values are not necessarily of this type. For example, if the user is entering an address but has not entered enough for the street name to be uniquely determined, the service will return street names as options for the user

startfrastringquery

Autocomplete searches through street names, access addresses and addresses. By default, the first type that produces more than one result is returned. The startfra parameter specifies that the search should start later in the sequence. For example, if street names should not be returned, specify startfra=adgangsadresse, and access addresses will be returned even if more than one street name matches the search. The parameter is intended for the situation where the user selects a street name from the options shown by the autocomplete component. In this situation, the user expects the autocomplete component to subsequently show access addresses. Specifying startfra=adgangsadresse ensures this. Possible values for the parameter: "vejnavn" (default), "adgangsadresse", "adresse"

supplerendebynavnstringquery

Specifies whether addresses are formatted with a supplementary town name. Possible values: true or false. Default true.

stormodtagerpostnumrestringquery

Specifies whether suggestions with large-recipient postcodes are returned. Possible values: true or false. Default false. Note that if large-recipient postcodes are enabled, the same address may appear twice in the list of suggestions.

multilinjestringquery

Specifies whether suggestions are formatted with line breaks. Possible values: true or false. Default false.

gældendestringquery

Return only current addresses, not preliminary ones.

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

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

kun_med_adresserbooleanquery

DanskAdresseAPI only (not in the original DAWA). true leaves out suggestions of type vejnavn for streets that have no addresses, so a step-wise autocomplete (street → address) never suggests a street whose next step is empty. All other suggestions and the shape of the response are unchanged. Only on /autocomplete.

default: false

Request

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

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