ConsoleCatalog
Sign in
Bahn Germany logo

Bahn Germany

bahn.comTravelno auth

Deutsche Bahn - train connection search and station name resolution.

Journey Search Results

ASYNCWRITENo auth

Returns train connections between two stations for a date with times, names, and segments.

ParametersFormJSON

Opaque origin halt location token from station autocomplete (abfahrtsHalt)

Opaque destination halt location token from station autocomplete (ankunftsHalt)

Departure search datetime in ISO format (anfrageZeitpunkt)

Travel class for the connection search (klasse)

Passenger type for the reisende array (typ)

Discount type for the passenger (ermaessigungen.art)

Discount class for the passenger (ermaessigungen.klasse)

Number of passengers for the search (reisende.anzahl)

cost: 2 credits · balance: 0
curl https://api.openwire.sh/v1/wire/task \
  -X POST \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_bahn_de_journey_search_results",
    "params": {
      "origin_halt_id": "A=1@O=Berlin Hbf@X=13369549@Y=52525589@U=80@L=8011160@p=1779908603@i=U×008065969@",
      "destination_halt_id": "A=1@O=Munich Central (München Hbf)@X=11558339@Y=48140229@U=80@L=8000261@p=1779908603@i=U×008020347@",
      "travel_date": "2026-06-01T13:37:00",
      "travel_class": "KLASSE_2",
      "passenger_type": "ERWACHSENER",
      "discount_type": "KEINE_ERMAESSIGUNG",
      "discount_class": "KLASSENLOS",
      "passenger_count": "1"
    }
  }'