DanskAdresseAPIv1
Statistik

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.

offsetintegerquery

Number of results to skip before the first one returned.

sortstringquery

Sort order.

Request

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

Response

application/json

Postnumre med adresse-count

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