Skip to content

Transport for The Netherlands

NS, only trains

Open documentation ↗
API keyNo HTTPSNo CORSTransportation

Verified 4 days ago: 100% uptime

API key

Required

HTTPS

Not supported

Browser calls

No, needs a proxy

Status

Live · 100/100

What our checks found

Health score
100/100
Reliability
100%
Average latency
1848ms

Last checked 2026-09-18. Measured independently, not self-reported by the provider.

How to call it

A starting template for Transport for The Netherlands. Replace ENDPOINT with the path from the official documentation, which we link above rather than guess at.

# Requires an API key. Check the docs for whether it goes in a header or a query parameter.
curl -s "http://www.ns.nl/ENDPOINT" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

This API does not send CORS headers, so a browser will block a direct call from your front end. Call it from your server, or put a small proxy in front of it.

This API is served over plain HTTP. Browsers block HTTP requests made from an HTTPS page, so you will need a server-side call.

Where this listing comes from

Aggregated from 2 public sources (public-api-lists, public-apis), then normalised and checked by us. If something here is wrong, tell us and we will correct it.

Other Transportation APIs

See all 96

Icelandic APIs

Transportation

Open APIs that deliver services in or regarding Iceland

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

LiveTrafficCam

Transportation

Live US state DOT traffic cameras with verified live status and measured uptime

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

REFUGE Restrooms

Transportation

Provides safe restroom access for transgender, intersex and gender nonconforming individuals

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Wander Atlas

Transportation

Hourly quiet and busy crowd windows for 620+ tourist attractions in 20 countries

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Transport for The Netherlands — common questions

Answered from what our own scheduled checks found, not from the provider's marketing.

Is Transport for The Netherlands free to use?

Transport for The Netherlands is listed in our free catalogue, but it requires an API key, so you will need to register before your first call. Providers frequently reserve higher limits and commercial use for paid plans.

Does Transport for The Netherlands need an API key?

Yes. Transport for The Netherlands authenticates with an API key. Keep it server-side rather than in browser code, because anything in your frontend bundle is readable by anyone who opens developer tools.

Can I call Transport for The Netherlands from browser JavaScript?

Not directly. Transport for The Netherlands did not return CORS headers when we checked, so the browser will block your page from reading the response even though the request itself succeeds. Call it from a server, or put a small proxy in front of it.

Is Transport for The Netherlands still working?

Yes, as of 2026-09-18. Our automated check reached Transport for The Netherlands and recorded a 100% reliability score with a median response time of 1848 ms. We re-check on a schedule, and this page updates with the result.

Is Transport for The Netherlands available over HTTPS?

No. Transport for The Netherlands was only reachable over plain HTTP when we checked. Browsers block HTTP requests made from an HTTPS page, so this will fail in production unless you call it from a server instead.