DanskAdresseAPIv1
Postnumre og bynavne

Fetch a single postal code (with municipalities and bounding box)

Fetches a single postal code with its municipalities and geographic bounding box.

GET/v1/postnumre/{nr}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

nrstringpathrequired

The area's number.

Request

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

Response

application/json

Postnummer med aggregeret kommune-liste + bbox

any

200Eksempel
{
  "nr": "1550",
  "navn": "København V",
  "stormodtager": false,
  "visningsnavn": null
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}