NS travel information
Live departures, delays and disruptions on the Dutch railways. Free, with a key from the NS API portal.
Loading map …
What you can build with it1
What can you do with it?1 ideas
How often is your train late?
Store departures from one station for a month and count delays.
Interesting combinations
Similar sources
- RT
APIOpenAPI 3.0.1 · read 16 Oct 2026
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
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
dateTime | Datetime that the user want to depart from his origin or or arrive at his destination · on 4 endpoints | from the description |
travelClass | Class of travel to use when calculating product prices · on 4 endpoints | from the description |
lang | Language to use for localizing the travel advice. Only a small subset of text is translated, mainly notes. Defaults to Dutch · on 3 endpoints | from the description |
fromStation | NS station code of the origin station · on 3 endpoints | from the description |
toStation | NS station code of the destination station · on 3 endpoints | from the description |
nsr | NSR 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 endpoints | from the description |
accessibilityEquipment1 | Accessibility equipment to use when searching for trip assistance options (AVG/PAS) · on 2 endpoints | from the description |
accessibilityEquipment2 | Accessibility equipment to use when searching for trip assistance options (AVG/PAS) · on 2 endpoints | from the description |
product | Name of the product that will be used in travel · on 2 endpoints | from the description |
discount | Discount of travel to use when calculating product prices · on 2 endpoints | from the description |
travelRequestType | directionsOnly only plans a google directions (walk/bike/car) advice · on 2 endpoints | from the description |
ctxRecon | Reconstruction context to use as basis for finding trip. Can be found in the /api/v3/trips output · on 2 endpoints | from the description |
travelType | Return the price for a single or return trip. Defaults to single · on 2 endpoints | from the description |
isJointJourney | Set to true to return the price including joint journey discount · on 2 endpoints | from the description |
adults | Number of adults to return the price for. Defaults to 1 · on 2 endpoints | from the description |
children | Number of children to return the price for. Defaults to 0 · on 2 endpoints | from the description |
routeId | Specific identifier for the route to take between the two stations. This routeId is returned in the /api/v3/trips call. · on 2 endpoints | from the description |
plannedArrivalTime | Planned arrival time of the trip. Is used to find the correct route, if multiple routes are possible between the origin and destination … · on 2 endpoints | from the description |
limit | The limit is only applied when call is performed with q parameter. If invoked by countrycodes only, no limit is applied · on 2 endpoints | from the description |
station | NS Station code for the station to return departures for. Can be left empty if uicCode parameter is provided. · on 2 endpoints | from the description |
uicCode | UIC code for the station to return departures for. Can be left empty if station parameter is provided. · on 2 endpoints | from the description |
maxJourneys | Number of departures or departures to return. Defaults to 40 · on 2 endpoints | from the description |
originUicCode | UIC code of the origin station · on v3/trips | from the description |
originLat | Latitude of the origin location. Should be used together with originLng. If the origin is a station, just provide the uicCode instead of … · on v3/trips | from the description |
originLng | Longitude of the origin location. Should be used together with originLat. If the origin is a station, just provide the uicCode instead of … · on v3/trips | from the description |
originName | Name of the origin location. Will be returned in the response · on v3/trips | from the description |
destinationUicCode | UIC code of the destination station · on v3/trips | from the description |
destinationLat | Latitude of the destination location. Should be used together with destinationLng. If the destination is a station, just provide the … · on v3/trips | from the description |
destinationLng | Longitude of the destination location. Should be used together with destinationLat. If the destination is a station, just provide the … · on v3/trips | from the description |
destinationName | Name of the destination location. Will be returned in the response · on v3/trips | from 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




