NS, only trains
The NS API provides a large amount of data regarding planned and actual train timetables and travel information for the Netherlands.
import requests
url = "https://api.ns.nl/v1/trains/departures"
params = {
"stationCode": "UT",
"apiKey": "YOUR_API_KEY"
}
response = requests.get(url, params=params)
print(response.json())Last 50 checks (10 min intervals)