DanskAdresseAPIv1
Områder (DAGI)

Batch DAGI lookup (up to 100 locations) — requires Pro or higher

Each lookup: {lat, lon} or {postnr}. Counts as one call. Requires the Pro plan or higher.

POST/v1/dagi/lookup/batchPro

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Request

curl --request POST \
  --url "https://api.danskadresseapi.dk/v1/dagi/lookup/batch" \
  --header "Authorization: Bearer $API_NOEGLE" \
  --header "Content-Type: application/json" \
  --data '{}'

Response

application/json

DAGI-resultater pr. lokation

countinteger
resultsobject[]

Resultater i samme rækkefølge som input (hvert med idx + input).

200Eksempel
{
  "count": 0,
  "results": [
    {}
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}