Areas (DAGI)

Batch DAGI lookup (Pro 100, Enterprise 500 locations per call) — requires Pro or higher

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

POST/v1/dagi/lookup/batchPro

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Body

application/json
lookupsobject[]required
max 500 items
Show child attributes(3)
lookups.latnumber
lookups.lonnumber
lookups.postnrstring

Request

curl --request POST \
  --url "https://api.danskadresseapi.dk/v1/dagi/lookup/batch" \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "lookups": [
    {
      "lat": 1,
      "lon": 1
    }
  ]
}'
Try it
POST https://api.danskadresseapi.dk/v1/dagi/lookup/batch

Response

application/json

DAGI results per location

countinteger
resultsobject[]

Results in the same order as the input (each with idx and input).

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