Transport

Trafikverket API

Trafikverket data is useful for transport apps and public dashboards. Apiverket makes common traffic signals easier to test.

Fetch traffic messages, road conditions and infrastructure-related data with consistent authentication and responses.

What can you fetch?

  • Traffic messages
  • Road conditions
  • Infrastructure endpoints
  • Traffic flow and travel time signals

What can you build?

  • Traffic dashboards
  • Commuter tools
  • Municipal operations
  • Logistics and travel planning prototypes

Common problems with the original source

  • Source APIs can require specific query shapes.
  • Real-time transport data needs careful caching.
  • Different transport domains are spread across separate structures.

How Apiverket makes it easier

  • Start with runnable examples.
  • Use normalized error handling and JSON responses.
  • Combine traffic with weather, municipal and event data.

Example request

/v1/transport/traffic?limit=20/v1/traffic/messages?limit=5/v1/road-conditions
curl
curl "https://apiverket.se/v1/traffic/messages?limit=5" \
  -H "Authorization: Bearer sk_test_demo"
Freshness: Traffic and road data use short cache windows where the upstream source is time-sensitive.
Source: Apiverket is independent from Trafikverket. Always show freshness clearly in traffic-facing products. Trafikverket.