DanskAdresseAPIv1
Områder (DAGI)

DAGI: a single constituency

Fetches a single constituency by its code.

GET/v1/dagi/opstillingskredse/{kode}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

kodestringpathrequired

The area's code.

fieldsstringquery

Comma-separated list of fields to include in the response (sparse fieldset). Omitted = all fields.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/dagi/opstillingskredse/<kode>" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Katalog-element

kodestring
navnstring
200Eksempel
{
  "kode": "7455",
  "navn": "Vesterbro"
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}