Obs: Detta innehåll finns inte tillgängligt på svenska. Därför ser du engelska versionen. Om du tycker att denna sida borde översättas till svenska, kan du skriva till oss på support.trafiklab.se.

Om du vill se webbsidan på engelska, klicka här.

Trafiklabs APIs

At Trafiklab we’re offering a wide range of APIs and datasets. Each API and dataset provides data of a different kind or format. Choosing the right data for your project will help you to get the best results.

The following pages will give you an overview of all our data, describing what’s included, the format, how to get it, and some examples. Make sure you also check out The right data type for your project to help you choose the right data source. Using our data will help you to get started with our APIs and datasets.

APIFile formatScheduled dataReal-time dataWhat is it
GTFS Sverige 2GTFSDataset with all public transport, static and historical
GTFS RegionalGTFS(-RT)Some, see detailsPublic transport datasets
NeTEx/SIRI RegionalNeTEx & SIRISome, see detailsHighly detailed public transport datasets
GTFS Sweden 3GTFSSome, see detailsPublic transport dataset of Sweden, as one static dataset and multiple realtime datasets
NeTEx SwedenNeTExHighly detailed public transport datasets of Sweden, as one static dataset and multiple realtime datasets
Stops dataNeTExAll stops of Sweden with mappings to regional IDs
KoDaGTFS(-RT)Some, see GTFS Regional detailsHigh quality historical data
ResRobot StolptidstabellerJson, XMLSome, see detailsDeparture & Arrival board API
ResRobot ReseplanerareJson, XMLTravel planner API
SLs APIsJson, XMLAPI collection
Oxyfi Vehicle PositionsWebsocketRealtime train position API
Trafikverkets APIJson, XMLRoad and rail API

Other APIs

While we offer a wide range of APIs and datasets covering public transport, easily accessible through Trafiklab, you sometimes need something less focused on public transport, or data not available on Trafiklab.

The APIs in the “related data and APIs” category cannot be accessed through Trafiklab, but might still be valuable additions for your project.