Postcodes and town names

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_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/postnumre/%7Bnr%7D

Response

application/json

Postal code with an aggregated municipality list and bounding box

nrstring
navnstring
stormodtagerboolean
visningsnavnstring | null
bboxnumber[] | null

[west, south, east, north]

kommunerobject[]
Show child attributes(2)
kommuner.kodestring | null
kommuner.navnstring | null
200Eksempel
{
  "nr": "1550",
  "navn": "København V",
  "stormodtager": false,
  "visningsnavn": "…",
  "bbox": [
    0
  ],
  "kommuner": [
    {
      "kode": "0101",
      "navn": "København"
    }
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}