---
title: "NS (Dutch Railways) integration · RUAL Documentation"
description: "Use NS (Dutch Railways) in RUAL blueprints. Read live departures, arrivals, disruptions and stations, and find the nearest station."
canonical: https://docs.rual.nl/integrations/ns
language: en
---

# NS (Dutch Railways)

Read live departures, arrivals, disruptions and stations, and find the nearest station.

## Blocks

Add these blocks on the canvas by searching for their name. Each block page lists its pins and how it behaves.

- [get arrivals `nsconnection_arrivals` Get the live arrival board for a station. Provide the station code or the UIC code.](https://docs.rual.nl/block-types/NS/nsconnection_arrivals)

- [get departures `nsconnection_departures` Get the live departure board for a station. Provide the station code or the UIC code.](https://docs.rual.nl/block-types/NS/nsconnection_departures)

- [get disruptions `nsconnection_disruptions` Get current disruptions and engineering works on the NS network.](https://docs.rual.nl/block-types/NS/nsconnection_disruptions)

- [get nearest stations `nsconnection_nearest_stations` Find the NS stations closest to a coordinate. Provide a geo point, or a separate latitude and longitude.](https://docs.rual.nl/block-types/NS/nsconnection_nearest_stations)

- [open connection `nsconnection_open` Open a connection with the NS (Nederlandse Spoorwegen) Reisinformatie API. Reuse the resulting connection in the other NS blocks.](https://docs.rual.nl/block-types/NS/nsconnection_open)

- [raw request `nsconnection_request` Perform a raw GET request against any NS Reisinformatie API path. Use this for endpoints without a dedicated block.](https://docs.rual.nl/block-types/NS/nsconnection_request)

- [get stations `nsconnection_stations` List or search NS stations. Leave the search empty to retrieve all stations.](https://docs.rual.nl/block-types/NS/nsconnection_stations)

- [plan trip `nsconnection_trips` Plan a journey between an origin and a destination. Each endpoint accepts a station code, a UIC code, or a geo point.](https://docs.rual.nl/block-types/NS/nsconnection_trips)

## Next steps

- [Third-Party Integrations](https://docs.rual.nl/tutorials/third-party-integrations): Calling outside APIs, receiving their webhooks, keeping data in sync and handling failures.

- [All integrations](https://docs.rual.nl/integrations): Everything RUAL connects to, by what it is for.
