Static data

The static NeTEx Sweden dataset contains files describing all planned public transport data, with more technical details compared to the GTFS Sweden feed but with the overall same timetable data.

In order to retrieve the static data you need an API key. Technical details for fetching the data can be found in the API’s OpenAPI specification.

To see which operators are included in this dataset see the documentation in the Netex Regional API.

Where to download

The dataset can be accessed through the following URL:{apikey}.

Replace {apikey} with your own API key. If you don´t have a key yet, read here on how to get one.

API key levels

LevelMaximum calls per minuteMaximum calls per month

File structure

Each archive contains three types of files:

  • _shared_data.xml - contains common information, such as calendar schedules
  • _stops.xml - contains information about stops, such as quays, stop areas and entrances
  • line_[lineNumber].xml - contains the specific schedule for a line

Important details

  • Your HTTP client has to have support for Gzip or deflate compression. This needs to be signalled through the HTTP Accept header. If your client does not support this, or is configured incorrectly, you will receive an HTTP 406 error code
  • This API supports conditional requests, and sends out HTTP Last-modified and etag headers. This way you can prevent downloading the same data twice. See the conditional get requests chapter in our best practices for more information.