DanskAdresseAPIv1
Veje

Fetch a single street segment

Fetches a single street segment. Both parts of the key are required, because the street code is only unique within the municipality.

GET/v1/vejstykker/{kommunekode}/{vejkode}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

kommunekodestringpathrequired

Municipality code (4 digits).

vejkodestringpathrequired

Street code (4 digits, unique within the municipality).

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/vejstykker/<kommunekode>/<vejkode>" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Vejstykke med kommune-ref + postnumre

idstring<uuid>
navnstring
vejkodestring
kommunekodestring
200Eksempel
{
  "id": "00000000-0000-0000-0000-000000000000",
  "navn": "…",
  "vejkode": "5804",
  "kommunekode": "0101"
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}
DanskAdresseAPI