Areas (DAGI)

Search and list place names (v2)

Get place names.

GET/stednavne2

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

sted_idstringquery

Find place names for the place with the specified ID.

navnstringquery

Find place names with the specified name. Case-sensitive.

hovedtypestringquery

Find place names where the place has the specified main type, for example "bebyggelse"

undertypestringquery

Find place names where the place has the specified subtype, for example "bydel"

kommunekodeintegerquery

Find place names where the place is located in the municipality with the specified municipality code

navnestatusstringquery

Find place names with the specified name status. Possible values: "officielt", "uofficielt", "suAutoriseret"

brugsprioritetstringquery

Find place names with the specified usage priority. Possible values: "primær", "sekundær".

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

Show all 23 parametersShow fewer
polygonstringquery

Finds the place names that overlap the given polygon. The polygon is given as an array of coordinates, in the same way as coordinates are given in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinate must be identical. Either (ETRS89/UTM32 or) WGS84/geographic may be used as the coordinate system. This is set with 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]]].

cirkelstringquery

Finds the place names that overlap the circle given by the coordinate (x,y) and radius r. ETRS89/UTM32 or WGS84/geographic may be used as the coordinate system. The radius is given in metres. cirkel={x},{y},{r}.

xnumberquery

Find place names where the place overlaps 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 place names where the place overlaps 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.

qstringquery

Find place names where the name matches the specified search text

autocompletestringquery

Performs the search as an autocomplete search.

nærmestestringquery

Used together with the x and y parameters. Specifies that the place name nearest to the specified point must be returned instead of the place names that overlap the point. Typically used together with the main type or subtype parameters.

fuzzystringquery

Enables fuzzy search

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/stednavne2" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/stednavne2

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."
  }
}