Public APIs
Transport for Sweden favicon

Transport for Sweden

Transportation

Public Transport consumer.

Transport for Sweden's website screenshot

About Transport for Sweden

Trafiklab provides a collection of APIs and datasets covering public transport in Sweden, including static and real-time data on schedules, stops, routes, and vehicle positions. Data is offered in formats such as GTFS, GTFS-RT, NeTEx, SIRI, and JSON/XML, spanning products including GTFS Sverige 2, GTFS Regional, GTFS Sweden 3, NeTEx Regional, NeTEx Sweden, Stops data, KoDa historical data, Trafiklab Realtime APIs, ResRobot (route planning, departure/arrival boards, stop lookup), SL's APIs (Transport, Deviations, Journey-planner), and Oxyfi realtime train positioning.

The service is aimed at developers building applications that require Swedish public transport information, such as departure boards, trip planners, stop lookups, and vehicle tracking. It also links to related third-party data sources, including Västtrafik's API portal, Trafikverket's Open API, and open data from Stockholm and Göteborg, for projects needing data outside Trafiklab's own offerings.

Key features

  • GTFS static and realtime public transport datasets for Sweden
  • NeTEx/SIRI highly detailed regional public transport datasets
  • Real-time departure and arrival board API with trip details and stop lookup
  • Journey/route planning API (ResRobot)
  • Realtime train vehicle position API via websocket (Oxyfi)
  • High quality historical GTFS data (KoDa)

Frequently asked questions

What formats does Trafiklab provide data in?

Data is available in GTFS, GTFS-RT, NeTEx, SIRI, JSON, XML, and websocket formats depending on the API or dataset.

Does Trafiklab offer real-time data?

Yes, several APIs including Trafiklab Realtime APIs, GTFS Regional, GTFS Sweden 3, SL's APIs, Oxyfi Vehicle Positions, and Trafikverkets API provide real-time data.

What kind of public transport data is covered?

Trafiklab covers Swedish public transport including static and historical GTFS datasets, regional and national NeTEx/SIRI data, stop lookups, departure/arrival boards, and route planning.

Who is Trafiklab's data for?

It is aimed at developers building projects that need Swedish public transport data, such as journey planners, departure boards, or voice assistants, as noted in the site's example solutions and SDKs.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product