Developers · LopoRail API
Railway data,
as an API.
Stations, live departure boards, performance (PPM) and real-time vehicle positions from across LopoRail — read-only, versioned, and served over a public REST API. Build a board, a map, a bot or a study; the data is open to developers.
Quickstart
Your first request
Every response is JSON. Public endpoints need no key; data endpoints take a bearer token.
Endpoints
What you can query
All paths are relative to the base URL. Parameters shown in brackets are optional.
| Method | Endpoint | Description |
|---|---|---|
| GET | /info | API information and endpoint discovery (public). |
| GET | /openapi | Full OpenAPI 3.x specification (public). |
| GET | /stations | Search stations. Params: search, limit, offset. |
| GET | /stations/{crs} | A single station by its 3-letter CRS code. |
| GET | /stations/tocs/{toc} | Stations served by a train operating company. |
| GET | /boards/{crs} | Live departures and arrivals. Params: type, limit, window. |
| GET | /ppm/{provider} | Performance (PPM) metrics for a provider, e.g. ch, fr, de, us-mbta. |
| GET | /positions/{provider} | Real-time vehicle positions for a provider, e.g. us-mbta, jp. |
Rate limits & tiers
Fair use, by tier
Limits are per API key. Every response carries its remaining quota in the headers, and a 429 tells you when to retry.
1,000 per day
10,000 requests a month, 60 a minute. Enough to build and test.
10,000 per day
100,000 requests a month for production apps.
100,000 per day
A million requests a month, with priority support.
1,000,000 per day
Ten million a month, bespoke terms and SLAs.
By the numbers
Railway data, at scale
One platform, one API, and a dataset that keeps growing. We are proud of how far this has come — and it is open to builders.
Get access
Two ways to build with LopoRail
API & Developer Plans
Live positions, boards, stations and performance from across the world — one REST API and one key.
View API plansTraincestry Data Access
The records, people, maps and transcriptions behind the open data — for researchers, museums and societies.
Explore TraincestryStart building.
Read the spec, grab a key, and make your first request in minutes.