v1

latestOpenAPI 3.0.02026-07-1710918.8 KB
departures

Retrieve single departure

get/v2/departures/departure/{id}/{station}/{date}

Path parameters

idstring required

Service ID

stationstring required

Station code (uppercase)

datestring date required

Service date

Query parameters

verboseboolean

Verbose departures (returns wings, material and route stops)

language'nl' | 'en'

Language

Response

Default response

status'UNKNOWN' | 'DOWN' | 'RECOVERING' | 'UP'

System status:

  • UNKNOWN - Insufficient information to determine whether system is UP or DOWN
  • DOWN - Component is down (downtime detected)
  • RECOVERING - Component is receiving data, but not long enough to consider it UP
  • UP - Component is receiving data

Example response

{
  "departure": {
    "destination_actual": "Amsterdam Centraal",
    "destination_actual_codes": [
      "ASD"
    ],
    "destination_planned": "Alkmaar",
    "platform_planned": "13a",
    "platform_changed": true,
    "remarks": [
      "Gewijzigd spoor"
    ],
    "tips": [
      "Stopt op alle tussengelegen stations"
    ],
    "station": "LEDN",
    "status": 5,
    "type": "Intercity",
    "type_code": "IC",
    "via": "Haarlem, Schiphol",
    "wings": [
      {
        "destination_actual": {
          "code": "GVC",
          "short": "Den Haag C",
          "medium": "Den Haag C.",
          "long": "Den Haag Centraal"
        },
        "destination_planned": {
          "code": "GVC",
          "short": "Den Haag C",
          "medium": "Den Haag C.",
          "long": "Den Haag Centraal"
        },
        "material": [
          {
            "destination": "GVC",
            "destination_code": "Den Haag Centraal",
            "number": "4024",
            "type": "ICM-3"
          }
        ],
        "stops": [
          {
            "code": "GVC",
            "short": "Den Haag C",
            "medium": "Den Haag C.",
            "long": "Den Haag Centraal",
            "arrival_platform": "8",
            "departure_platform": "8"
          }
        ]
      }
    ]
  },
  "status": "UP"
}