Statistics

Address count per postal code — requires Pro or higher

Number of addresses per postal code, pre-aggregated. Requires the Pro plan or higher.

GET/v1/stats/postnumrePro

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

limitintegerquery

Maximum number of results. The limit is set per endpoint — see default and maximum.

default: 1000max 5000
offsetintegerquery

Number of results to skip before the first one returned.

default: 0
sortstringquery

Sort order.

default: count_descAllowed values:count_desccount_ascnrnavn

Request

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

Response

application/json

Postal codes with address counts

countinteger
totalinteger
offsetinteger
resultsobject[]
200Eksempel
{
  "count": 0,
  "total": 0,
  "offset": 0,
  "results": [
    {}
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}