DanskAdresseAPIv1
Veje

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).

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.

Request

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

Response

application/json

Vejnavne

countinteger
resultsobject[]
Show child attributes(2)
results.idstring<uuid>
results.navnstring
200Eksempel
{
  "count": 0,
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "navn": "…"
    }
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}