BBR and OIS

OIS: municipalities

Find municipalities in BBR. IMPORTANT: A new data model has been developed for BBR and is available on Datafordeleren. DAWA's BBR API is based on an older data model, where data is converted back from the new BBR data model. For documentation of concepts, fields, code lists, etc., see BBR datamodellen, BBR's registreringsindhold and OIS-dokumentationen.

GET/ois/kommuner

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

sridintegerquery
strukturstringquery

Specifies the desired response structure. "mini" specifies the BBR entity without related entities. "nestet" specifies that any related entities must be included. "flad" specifies that related entities must be included, but in a flat structure. "nestet" is the default for JSON format, "flad" is the default for GeoJSON and CSV.

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

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

idstringquery

Find the municipality with the specified UUID (Kommune_id)

kommunekodestringquery

Find the municipality by municipality code

medtagophørtestringquery

Also return discontinued OIS entities (entities with ophoert_ts different from NULL)

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/ois/kommuner" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/ois/kommuner

Response

application/json

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

—

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