OpenTTD live map preview

Playful data set for serious engineering

OpenSimData is a Free to use REST API with live and historic data from a transport simulation.

How it works

1

Sign in

Authenticate with Google or Microsoft Entra ID.

2

Get your token

Receive your API bearer token instantly.

3

Call the API

Use simple REST endpoints over HTTPS with your token.

The simulation behind the API

The API is backed by running open-source transport management game (OpenTTD) simulating trains, road vehicles, ships, and aircraft on a shared map.

  • AI Companies compete for cargo across towns, industries, and stations.
  • Vehicles report real positions, speeds, profit, and status updates.
  • The map evolves over the day, so your data reflects a living network.
OpenTTD live simulation view with trains and industries

What you get from the API

Companies

Names, value, loans, profit, and performance.

Vehicles

Type, position, speed, orders, and status for each vehicle.

Stations

Coverage, waiting cargo, and cargo types.

Industries

Production rates, accepted cargo, output, and locations.

  • Each in-game quarter is saved as a snapshot every six minutes.
  • You can fetch the latest quarter or query historical snapshots.
  • The entire world resets at 24:00 UTC, giving you 60 years of simulation.

Example: fetch companies from the live game

Call with curl (or any HTTP client) and pass your token in the Authorization header.

# Get list of companies
curl https://api.opensimdata.example.com/v1/companies \
  -H "Authorization: Bearer YOUR_TOKEN_HERE"

# Example response (truncated)
[
  {
    "id": 1,
    "name": "Green Rail Co.",
    "color": "dark_green",
    "company_value": 12500000,
    "current_loan": 300000,
    "profit_last_year": 850000,
    "vehicles": 42,
    "stations": 18
  },
  ...
]

Other endpoints: vehicles, towns, stations, industries, finances. Everything ships as predictable JSON with timestamps.

Explore the documentation

Go to api.opensimdata.com/docs for full API reference with endpoints, parameters, sample responses, and auth guidance so you can get started easily.

OpenSimData API documentation screenshot

About

OpenSimData is Built by Jonas Hertz. Questions, feedback, or ideas? Connect on LinkedIn.