v1

Public transport stops near an address

As /v1/stoppesteder, but looks up the address's coordinate first. Always answers 200 for a known address — no stops within the radius gives an empty list. 404 if the address does not exist or has no coordinate.

GET/v1/stoppesteder/{adgangsadresseid}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

adgangsadresseidstringpathrequired

The access address's DAR id (UUID).

radiusintegerquery

Radius in metres (default 1000, at most 5000).

default: 10001–5000
typestringquery

Only stops served by this mode of transport.

Allowed values:bustogmetroletbanefaerge
per_sideintegerquery

Results per page. The limit is set per endpoint — see default and maximum.

default: 201–200
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/stoppesteder/<adgangsadresseid>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/stoppesteder/%7Badgangsadresseid%7D

Response

application/json

Stops near the address (may be empty)

object

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