DanskAdresseAPIv1
Veje

Search / list street segments (municipality code + street code)

Searches and lists street segments. A street segment is identified by municipality code plus street code — the street code is only unique within the municipality.

GET/v1/vejstykker

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

qstringquery

Free-text search (prefix + fuzzy).

kommunekodestringquery

Filter by municipality code.

vejkodestringquery

Filter by street code (4 digits, unique within the municipality).

postnrstringquery

Filter by 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/vejstykker" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Vejstykker

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