Transport for The Netherlands
NS, only trains
- Authentication
- API Key
- HTTPS
- No
- CORS
- Unknown
- Category
- Transportation
- Documentation / URL
- http://www.ns.nl/reisinformatie/ns-api
Overview
NS provides Dutch train data — key-based (a missing key returns 401, verified).
Quick Start
Stations (replace YOUR_KEY):
curl "https://gateway.apiportal.ns.nl/reisinformatie-api/api/v2/stations" \
-H "Ocp-Apim-Subscription-Key: YOUR_KEY"
Authentication
- NS API portal → subscription key.
- Send it as the
Ocp-Apim-Subscription-Keyheader (missing → 401, verified).
Rate Limits & Notes
- Free tier with limits (check the docs); paid plans scale.
- Train data.
FAQ
Is Transport for The Netherlands free? Free tier with limits; more is paid.
Why 401? A subscription key is required (verified).
What’s the auth style?
Ocp-Apim-Subscription-Key header.
More in Transportation
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| ADS-B Exchange Access real-time and historical data of any and all airborne aircraft | No auth | Yes | Unknown | ↗ |
| airportsapi Get name and website-URL for airports by ICAO code | No auth | Yes | Unknown | ↗ |
| AIS Hub Real-time data of any marine and inland vessel equipped with AIS tracking system | API Key | No | Unknown | ↗ |
| Amadeus for Developers Travel Search - Limited usage | OAuth | Yes | Unknown | ↗ |
| apilayer aviationstack Real-time Flight Status & Global Aviation Data API | OAuth | Yes | Unknown | ↗ |