Postcodes

Search and list postcodes

Search for postcodes. Returns the postcodes that meet the criterion. Note that, by default, the geography of the postcodes also includes marine areas (https://vis.aws.dk/postnumre), which is not what is wanted in most cases. To request postcodes limited to land areas, add the landpostnumre parameter https://vis.aws.dk/postnumre?landpostnumre).

GET/postnumre

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

nrintegerquery

Postcode. 4 digits.

navnstringquery

Postcode name

kommunekodeintegerquery

Municipality code. 4 digits. Example: 0101 for the City of Copenhagen.

qstringquery

Search text. The postcode name is searched. All words in the search text must match the postcode name. The wildcard * is allowed at the end of each word. No more than 1000 results are returned when using the parameter.

autocompletestringquery

Performs the search as an autocomplete search.

sridintegerquery

Specifies the SRID of the coordinate system in which geospatial parameters are specified. The default is 4326 (WGS84 / geographic coordinates). For ETRS89 / UTM zone 32 North, use 25832

strukturstringquery

The struktur parameter specifies whether a flad or nestet response structure is required. The default is nestet for JSON and flad for GeoJSON.

polygonstringquery

Finds the postcodes that overlap the given polygon. The polygon is given as an array of coordinates, in the same way as coordinates are given in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinate must be identical. Either (ETRS89/UTM32 or) WGS84/geographic may be used as the coordinate system. This is set with the srid parameter, see above. Example: polygon=[[[10.3,55.3],[10.4,55.3],[10.4,55.31],[10.4,55.31],[10.3,55.3]]].

Show all 17 parametersShow fewer
cirkelstringquery

Finds the postcodes that overlap the circle given by the coordinate (x,y) and radius r. ETRS89/UTM32 or WGS84/geographic may be used as the coordinate system. The radius is given in metres. cirkel={x},{y},{r}.

stormodtagerestringquery

If this parameter is set to 'true', bulk-recipient postcodes will be included in the result. The default is false.

landpostnumrestringquery

If this parameter is set, the returned geometry for postcodes will be delimited by coastlines.

formatstringquery

Returns the output in a format other than JSON. See Data formats.

callbackstringquery

Returns the output as JSONP. See Data formats.

noformatstringquery

Omits whitespace formatting from the output

ndjsonstringquery

Returns the output as Newline Delimited JSON

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/postnumre" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/postnumre

Response

application/json

Success response. The MIME type of the response depends on the format parameter.

nrstring

The postcode — four digits.

bboxnumber[]

The smallest rectangle containing the geometry.

max 4 items
hrefstring

The unique URL of the postcode.

navnstring

The name of the postcode, i.e. the postal district.

dagi_idstring

The postcode's id in the DAGI register.

ændretstring<date-time>

The time when any information was last changed.

kommunerobject[]

The municipalities in which the postcode is located wholly or partly.

geo_versioninteger

Incremented each time the geometry changes.

geo_ændretstring<date-time>

The time when the geometry was last changed.

visueltcenternumber[]

Coordinates for label placement on maps.

max 2 items
stormodtageradresserobject[] | null

Addresses tied to a large-recipient code. Null for ordinary postal codes. **Frozen as of 1 October 2026:** Empty as of 1 October 2026: DAWA had no large-recipient postal codes with addresses at shutdown (measured: /postnumre?stormodtagere=true returned 0 at DAWA and here). The field is null everywhere.

200Eksempel
[
  {
    "nr": "…",
    "bbox": [
      0
    ],
    "href": "…",
    "navn": "…",
    "dagi_id": "…",
    "ændret": "2026-09-20T10:00:00.000Z",
    "kommuner": [
      {}
    ],
    "geo_version": 0,
    "geo_ændret": "2026-09-20T10:00:00.000Z",
    "visueltcenter": [
      0
    ],
    "stormodtageradresser": [
      {}
    ]
  }
]
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}