Areas (DAGI)

Search and list places

Search places.

GET/steder

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringquery

Find the place with the specified unique ID

hovedtypestringquery

Find places with the specified main type, for example "bebyggelse"

undertypestringquery

Find places with the specified subtype, for example "bydel"

kommunekodeintegerquery

Find places in the municipality with the specified kommunekode

primærtnavnstringquery

Find places with the specified primary name. Case-sensitive. Note that places may have secondary names. To search all names of a place, use the stednavne2 resource.

primærnavnestatusstringquery

Search for places where the status of the primary name matches the specified parameter. Possible values: "officielt", "uofficielt", "suAutoriseret"

sridintegerquery

Specifies the SRID of the coordinate system in which geospatial parameters are specified. The default is 4326 (WGS84 / geographic coordinates). For ETRS89 / UTM zone 32 North, use 25832

polygonstringquery

Find the places that overlap the specified polygon. The polygon is specified as an array of coordinates in the same way as coordinates are specified in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinates must be identical. The coordinate system can be (ETRS89/UTM32 or) WGS84/geographic. This is specified using the srid parameter; see above. Example: polygon=[[[10.3,55.3],[10.4,55.3],[10.4,55.31],[10.4,55.31],[10.3,55.3]]].

Show all 19 parametersShow fewer
cirkelstringquery

Find the places that overlap the circle specified by the coordinate (x,y) and radius r. ETRS89/UTM32 or WGS84/geographic can be used as the coordinate system. The radius is specified in metres. cirkel={x},{y},{r}.

xnumberquery

Find places that overlap the specified point. Both the x and y parameters must be specified. (If ETRS89/UTM32 is used, specify the easting value.) If WGS84/geographic is used, specify the latitude value.

ynumberquery

Find places that overlap the specified point. Both the x and y parameters must be specified. (If ETRS89/UTM32 is used, specify the northing value.) If WGS84/geographic is used, specify the longitude value.

strukturstringquery

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

nærmestestringquery

Used together with the x and y parameters. Specifies that the place nearest to the specified point should be returned instead of the places that overlap the point. Typically used together with the main type or subtype 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

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

Request

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

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."
  }
}
Search and list places — DanskAdresseAPI