Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Wrapper for the NS api

Project description



Unofficial wrapper for the Dutch railway API (Nederlandse Spoorwegen). The NS API currently features the following services:

  • Prices
  • Current departure times
  • Disruptions and engineering work
  • The station list, with all stations in the Netherlands including Geodata
  • Travel recommendations from station to station
from nsapi import NSAPI

ns = NSAPI('yourkey')
from nsapi import AsyncNSAPI

async def example():
    async with AsyncNSAPI('yourkey') as ns:
        await ns.get_all_stations()


Licensed under the MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ns-api, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size ns_api-0.0.1-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ns-api-0.0.1.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page