4 Västtrafik API
Vincent Lamppa Lönnbro edited this page 2026-05-08 07:32:16 +00:00

How to acquire API tokens

To gain access to Västtrafiks public API's a Västtrafik developer account is necessary, which can be created here. This allows for the creation of applications, which can subscribe to the available API's. Note: the applications have access to API's, not the account.

Creation of an account also creates a unique client identifier, secret and an authentication key. Each application has to fetch an access token to API's using the authentication key.

Duration of validity

It nowhere states the duration of which a developer account and its applications are valid, which leads me to think that they are valid indefinitely, unless the applications connected to a developer account breaks the restrictions, at which point Västtrafik has the right to delete the offending account. Västtrafik also has the right to stop support of any and all API's at any given time.

The client identifier, secret and an authentication key are bound to the account and therefore follow the above.

Access tokens are valid for 24 hours.

Restrictions

All Västtrafik API's follow the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication license, which can be read here.

Västtrafik also have their own terms of use, which can be read here.

Fetching data

Under construction API documentation

Data received

Under construction API documentation