Areas (DAGI)

Get parish

Returns the parish with the given code.

GET/sogne/{kode}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

formatstringquery

Returns the output in a format other than JSON. See Data formats.

callbackstringquery

Returns the output as JSONP. See Data formats.

noformatstringquery

Omits whitespace formatting from the output

ndjsonstringquery

Returns the output as Newline Delimited JSON

sridintegerquery
strukturstringquery

The struktur parameter specifies whether a flad or nestet response structure is required. The default is nestet for JSON and flad for GeoJSON.

kodeintegerpathrequired

The code of the parish. 4 digits.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/sogne/<kode>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/sogne/%7Bkode%7D

Response

application/json

Success response. The MIME type of the response depends on the format parameter.

bboxnumber[]

The smallest rectangle containing the geometry.

max 4 items
hrefstring

The theme's unique URL.

kodestring

The official code for the area.

navnstring

The official name of the area.

sognobject

The parish (parish council polling districts only).

nuts2string

The NUTS2 code (regions only).

nuts3string

The NUTS3 code (provinces only).

nummerstring

The area number — used instead of kode by multi-member constituencies, nomination districts and polling districts.

Show all 25 fieldsShow fewer
regionobject

The region the area lies in.

bogstavstring

The electoral region letter (electoral regions only).

dagi_idstring

The area's ID in the DAGI register.

kommuneobject

The municipality the area lies in.

ændretstring<date-time>

When any attribute of the area was last changed. **Frozen as of 1 October 2026:** After 1 October 2026: the time the change was loaded by us. DAWA’s value was not the source timestamp either, but DAWA’s own load time, and it remains unchanged on older rows.

kommunerobject[]

The municipalities in the nomination district.

storkredsobject

The multi-member constituency the area lies in.

geo_versioninteger

Incremented each time the geometry changes. Use it to detect that a map needs to be redrawn.

geo_ændretstring<date-time>

When the geometry was last changed. **Frozen as of 1 October 2026:** After 1 October 2026: set only when Datafordeleren (DAGI) actually moves a boundary. Timestamps from before the shutdown are DAWA’s own.

regionskodestring

The region code (municipalities only).

kredskommuneobject

The district municipality (nomination districts only).

valglandsdelobject

The electoral region the area lies in.

visueltcenternumber[]

Coordinates for label placement on maps — a point guaranteed to lie within the area, which a centroid does not for concave shapes.

max 2 items
afstemningsstedobject

The polling station with name and access address (polling districts only).

valgkredsnummerstring

The electoral district number (nomination districts only).

opstillingskredsobject

The nomination district the polling district lies in.

udenforkommuneinddelingboolean

Whether the area lies outside the municipal division (municipalities only).

200Eksempel
{
  "bbox": [
    0
  ],
  "href": "…",
  "kode": "…",
  "navn": "…",
  "sogn": {},
  "nuts2": "…",
  "nuts3": "…",
  "nummer": "…",
  "region": {},
  "bogstav": "…",
  "dagi_id": "…",
  "kommune": {}
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}