Streets

Search street names

Searches street names across the country. Filter by municipality or postal code to tell the many identical street names apart.

GET/v1/vejnavne

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

qstringqueryrequired

Free-text search (prefix + fuzzy).

max 160 characters
kommunekodestringquery

Filter by municipality code.

postnrstringquery

Restrict to roads that have addresses in the postal code.

limitintegerquery

Maximum number of results. The limit is set per endpoint — see default and maximum.

default: 20max 50

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/vejnavne" \
  --url-query "q=<q>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/vejnavne

Response

application/json

Street names

countinteger
resultsobject[]
Show child attributes(5)
results.idstring

The street name's DAR id (UUID). Empty text when the suggestion comes from the fallback search.

results.navnstring
results.vejkodestring
results.kommunekodestring
results.visningstekststring
200Eksempel
{
  "count": 0,
  "results": [
    {
      "id": "…",
      "navn": "…",
      "vejkode": "…",
      "kommunekode": "…",
      "visningstekst": "…"
    }
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}