v42

latestOpenAPI 3.1.0CC-BY-NC-SA-4.0raw.githubusercontent.com2025-03-1271142.7 KB
Trips

Get available train trips

Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances.

get/trips

Query parameters

pageinteger

The page number to return

limitinteger

The number of items to return per page

originstring uuid required

The ID of the origin station

destinationstring uuid required

The ID of the destination station

datestring date-time required

The date and time of the trip in ISO 8601 format in origin station's timezone.

bicyclesboolean

Only return trips where bicycles are known to be allowed

dogsboolean

Only return trips where dogs are known to be allowed

Response

A list of available train trips

Example response

{
  "data": [
    {
      "id": "4f4e4e1-c824-4d63-b37a-d8d698862f1d",
      "origin": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e",
      "destination": "b2e783e1-c824-4d63-b37a-d8d698862f1d",
      "departure_time": "2024-02-01T10:00:00Z",
      "arrival_time": "2024-02-01T16:00:00Z",
      "operator": "Deutsche Bahn",
      "price": 50
    }
  ]
}