v1

Live stream of changes (Server-Sent Events) — for up to 100 addresses

Keeps the connection open and pushes new changes so you do not have to poll. Events: klar (siden, adresser, interval_ms), aendringer (adresse_id + new changes, oldest first), ping (heartbeat every 20 seconds) and genstart (siden) after 55 minutes — reopen with the siden provided. The server checks every 30 seconds. One connection counts as one call. Requires the Pro plan or higher. At most 3 concurrent streams per API key and 10 per team (stream and firehose combined); beyond that the call returns 429 rate_limit_exceeded with Retry-After before the stream opens. A connection that is not closed cleanly is released after 90 seconds at the latest.

GET/v1/aendringer/streamPro

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

adresserstringqueryrequired

Comma-separated list of access address ids (at most 100).

sidenstringquery

Start from this date or ISO timestamp. Omitted = only changes from now on.

kilderstringquery

Comma-separated selection of sources (see above).

sprogstringquery

Language of the tekst field.

default: daAllowed values:daen

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/aendringer/stream" \
  --url-query "adresser=<adresser>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/aendringer/stream

Response

application/json

text/event-stream with the events klar, aendringer, ping and genstart

—

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}