303,700 datasets indexed1,391 publishers
Open Data IndexThe index of open data about the Netherlands
Sources›Traffic and transport

NS travel information

Live departures, delays and disruptions on the Dutch railways. Free, with a key from the NS API portal.

Traffic and transportFree keyAPIReal timeNetherlands · station and trip
Reachable · checked 17:23
On the tracks now

Loading map …

What you can build with it1

What can you do with it?1 ideas

Getting started

How often is your train late?

Store departures from one station for a month and count delays.

Interesting combinations

Similar sources

APIOpenAPI 3.0.1 · read 16 Oct 2026

StandardOpenAPI 3.0.1docs
Access login

Free key required, sent in the header Ocp-Apim-Subscription-Key. Without a key: HTTP 401 (tested). Open Data Index keeps its key on the server. tested

Formats

JSON

Base URL

https://gateway.apiportal.ns.nl/reisinformatie-api

Endpoints 15

  • GET/api/v3/tripsTrips
  • GET/api/v3/trips/tripSingle trip
  • GET/api/v3/trips/booked-tripBooked trip
  • GET/api/v3/priceDomestic prices (deprecated)
  • GET/api/v3/disruptionsDisruptions (deprecated)
  • GET/api/v3/disruptions/{type}/{id}Single disruption (deprecated)
  • GET/api/v3/disruptions/station/{stationCode}Station disruptions (deprecated)
  • GET/api/v2/stationsStations (deprecated)
  • GET/api/v2/stations/nearestGet stations closest to provided coordinates (deprecated)
  • GET/api/v2/priceDomestic prices
  • GET/api/v2/journeyJourney details
  • GET/api/v2/departuresDepartures (deprecated)
  • GET/api/v2/arrivalsArrivals (deprecated)
  • GET/api/v1/calamitiesCalamities (deprecated)
  • GET/api/openapiOpenAPI Spec

More APIs with the same key 4 · from the provider's documentation from the description

Disruptions API (v3)

Disruptions, calamities and engineering works, current and planned, with sections, cause, expected duration and alternative transport.

https://gateway.apiportal.ns.nl/disruptions/v3
  • GET/disruptions/v3?isActive&typeLijst van storingen, calamiteiten en werkzaamheden; isActive=true voor alleen wat nu speelt
  • GET(single disruption)Eén storing op id
  • GET(personal disruptions)Storingen voor opgeslagen reizen
  • POST(sync saved trips)Opgeslagen reizen synchroniseren

Open Data Index fetches this every 10 minutes and keeps the history (see On the tracks now).

Spoorkaart API (v1)

The rail network as GeoJSON, in sections from station to station, plus disruptions and routes as map layers.

https://gateway.apiportal.ns.nl/Spoorkaart-API/api/v1
  • GET/spoorkaartHet hele spoornet (763 trajectdelen, LineString, eigenschappen from/to)
  • GET/storingenStoringen en werkzaamheden als lijnen met stations, niveau en type
  • GET/storingen/{id}Eén storing als GeoJSON (.geojson via ?extension)
  • GET(route)Route tussen stations als lijn (drie varianten)

Open Data Index uses /spoorkaart (weekly) for the map on this page.

Places API (v2)

Places around the railway, such as stations and their facilities, OV-bikes, shared cars, stops, addresses and opening hours.

https://gateway.apiportal.ns.nl/places-api
  • GET/api/v2/placesLijst van plaatsen (vervangt autosuggest)
  • GET/v2/autosuggest?q&typeZoeken op tekst (verouderd)
  • GET(OV-fiets availability)Beschikbaarheid van OV-fietsen
  • GET(nearby me locations, v1–v5)Locaties in de buurt van een punt
  • GET(stationfacility lift locations)Liften op stations
  • GET(modality details, v1–v5)Details van een vervoersmiddel, ook via QR-code

Virtual Train API (v1)

The train itself, such as composition, rolling stock, crowding forecast, platform information, shortened trains and train images.

https://gateway.apiportal.ns.nl/virtual-train-api/v1
  • GET(getTrainInformation…, op ritnummer en station)Samenstelling en materieel van een trein
  • GET(getPrognose)Verwachte drukte
  • GET(getIngekort, v3)Ingekorte treinen
  • GET(getPlatformInfo)Perroninformatie
  • GET(getVehicles)Voertuigen en hun positie
  • GET/images/{image}Afbeelding van een treinstel (png)

Filtering from the description

No general filter language: each endpoint has its own query parameters (see below).

Parameters 30

dateTimeDatetime that the user want to depart from his origin or or arrive at his destination · on 4 endpointsfrom the description
travelClassClass of travel to use when calculating product prices · on 4 endpointsfrom the description
langLanguage to use for localizing the travel advice. Only a small subset of text is translated, mainly notes. Defaults to Dutch · on 3 endpointsfrom the description
fromStationNS station code of the origin station · on 3 endpointsfrom the description
toStationNS station code of the destination station · on 3 endpointsfrom the description
nsrNSR number for the customer making this request. Since the replacement of the NSRA backend in Reisinfo with PAS, we do not use the NSR … · on 2 endpointsfrom the description
accessibilityEquipment1Accessibility equipment to use when searching for trip assistance options (AVG/PAS) · on 2 endpointsfrom the description
accessibilityEquipment2Accessibility equipment to use when searching for trip assistance options (AVG/PAS) · on 2 endpointsfrom the description
productName of the product that will be used in travel · on 2 endpointsfrom the description
discountDiscount of travel to use when calculating product prices · on 2 endpointsfrom the description
travelRequestTypedirectionsOnly only plans a google directions (walk/bike/car) advice · on 2 endpointsfrom the description
ctxReconReconstruction context to use as basis for finding trip. Can be found in the /api/v3/trips output · on 2 endpointsfrom the description
travelTypeReturn the price for a single or return trip. Defaults to single · on 2 endpointsfrom the description
isJointJourneySet to true to return the price including joint journey discount · on 2 endpointsfrom the description
adultsNumber of adults to return the price for. Defaults to 1 · on 2 endpointsfrom the description
childrenNumber of children to return the price for. Defaults to 0 · on 2 endpointsfrom the description
routeIdSpecific identifier for the route to take between the two stations. This routeId is returned in the /api/v3/trips call. · on 2 endpointsfrom the description
plannedArrivalTimePlanned arrival time of the trip. Is used to find the correct route, if multiple routes are possible between the origin and destination … · on 2 endpointsfrom the description
limitThe limit is only applied when call is performed with q parameter. If invoked by countrycodes only, no limit is applied · on 2 endpointsfrom the description
stationNS Station code for the station to return departures for. Can be left empty if uicCode parameter is provided. · on 2 endpointsfrom the description
uicCodeUIC code for the station to return departures for. Can be left empty if station parameter is provided. · on 2 endpointsfrom the description
maxJourneysNumber of departures or departures to return. Defaults to 40 · on 2 endpointsfrom the description
originUicCodeUIC code of the origin station · on v3/tripsfrom the description
originLatLatitude of the origin location. Should be used together with originLng. If the origin is a station, just provide the uicCode instead of … · on v3/tripsfrom the description
originLngLongitude of the origin location. Should be used together with originLat. If the origin is a station, just provide the uicCode instead of … · on v3/tripsfrom the description
originNameName of the origin location. Will be returned in the response · on v3/tripsfrom the description
destinationUicCodeUIC code of the destination station · on v3/tripsfrom the description
destinationLatLatitude of the destination location. Should be used together with destinationLng. If the destination is a station, just provide the … · on v3/tripsfrom the description
destinationLngLongitude of the destination location. Should be used together with destinationLat. If the destination is a station, just provide the … · on v3/tripsfrom the description
destinationNameName of the destination location. Will be returned in the response · on v3/tripsfrom the description

Limits and pitfalls

  • The description lists https://apigateway.ns.nl/reisinformatie-api as server, but the working gateway is https://gateway.apiportal.ns.nl/reisinformatie-api. tested
  • 300 requests per 5 minutes for non-paying users; above that HTTP 429 with a Retry-After header. from the description
  • NS terms forbid the NS logo in your application and altering data so that it becomes incorrect. from the description
  • Responses are compressed (gzip); use curl --compressed or a client that decompresses. tested
  • Arrivals and departures in this API are deprecated: NS points to https://gateway.apiportal.ns.nl/timetable-api/v2/. from the description
  • The NS portal shows API definitions only after login; only the Reisinformatie API spec can be fetched through the gateway. tested

Try it HTTP 200 · 315 ms · 16 Oct

https://gateway.apiportal.ns.nl/reisinformatie-api/api/v2/departures?station=UT&maxJourneys=2
{
  "payload": {
    "source": "DVS",
    "departures": [
      {
        "direction": "Venlo",
        "name": "NS  3525",
        "plannedDateTime": "2026-10-16T08:24:00+0200",
        "plannedTimeZoneOffset": 120,
        "actualDateTime": "2026-10-16T08:24:00+0200",
        "actualTimeZoneOffset": 120,
        "plannedTrack": "18",
        "actualTrack": "18",
        "product": {
          "number": "3525",
          "categoryCode": "IC",
          "shortCategoryName": "NS Intercity",
          "longCategoryName": "Intercity",
          "operatorName": "NS",
          "operatorCode": "NS",
          "type": "TRAIN"
        },
        "trainCategory": "IC",
        "cancelled": false,
        "routeStations": [
          {
            "uicCode": "8400319",
            "mediumName": "'s-Hertogenbosch"
          },
          {
            "uicCode": "8400206",
            "mediumName": "Eindhoven C."
          }
        ],
        "messages": [],
        "departureStatus": "ON_STATION"
      },
      {
        "direction": "Zaandam",
        "name": "NS  2722",

Shortened response, saved at harvest time. Click the URL for the real, current response.

Read from OpenAPI description, 15 paths (with key). Labels: from the description stated in what the api itself publishes. tested from our own small call. platform applies to every api on this platform, per its documentation. experience learned while building open data index.

More in this topic

See how this page is built
bron: ns-reisinformatie
blokken: []
secties:
  - ideeen
  - koppelingen
  - vergelijkbaar
cache:
  tag: bron:ns-reisinformatie
  ververs: na statuscheck, als de bron nieuwer is
statuscheck:
  methode: API-portaal bereikbaar
  verwacht: elke minuut

Source: content/bronnen/ns-reisinformatie.yaml · Markdown