Transport for Belgium

Belgian rail stations, schedules and live departures as JSON

🚆 TransportUNMONITORED
AUTH NONECORS ✓AGENT ?HTTPS ✓COMMERCIAL ?

iRail is a long-running third-party API for Belgian train travel, covering stations, connections, timetables and live board data. Add ?format=json to get keyless JSON; the project asks callers to send a descriptive User-Agent and use it fairly. It is community-run and independent of the national operator.

—HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
ON PROBE SCHEDULE

We probe a documented GET and expect 2xx JSON — full uptime and health score. Open provider docs ↗

Uptime historystarts after first probe

On our probe schedule. Uptime charts appear after the first check lands.

Example responsefrom provider docs — not verified by us
GET https://api.irail.be/stations/?format=json

{
  "version": "1.4",
  "timestamp": "1783247001",
  "station": [
    {
      "id": "BE.NMBS.008400319",
      "name": "'s Hertogenbosch",
      "locationX": "5.294278",
      "locationY": "51.69042",
      "standardname": "'s Hertogenbosch"
    }
  ]
}
Call itcurl · fetch · python
curl "https://api.irail.be/stations/?format=json"
const res = await fetch("https://api.irail.be/stations/?format=json");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://api.irail.be/stations/?format=json")
print(res.json())
Endpoints · 6On scheduleFULL DOCS ↗
On schedule — GET /stations/?format=json awaits first probe
GET/stations/?format=jsonPROBED

Belgian rail stations, schedules and live departures as JSON

GET/stations/?limit=5

Stations — documented GET route.

GET/stations/?page=1

Stations — documented GET route.

GET/terms/unknown

Unknown — documented GET route.

GET/terms/low

Low — documented GET route.

GET/terms/medium

Medium — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Not tracked yet. Shape-change history starts once this API joins our probe schedule.

Transport for Belgium: common questions

Is Transport for Belgium free to use?

Yes — Transport for Belgium is a free transport API. Free tier: Free — no key. Whether the free tier allows commercial use is unclear — check the provider docs.

Does Transport for Belgium need an API key?

No — Transport for Belgium needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call Transport for Belgium from the browser?

Yes — Transport for Belgium returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is Transport for Belgium up right now?

Transport for Belgium is catalogued but not yet on our probe schedule, so we don't publish a live status for it. Check the provider's own status page or docs for its current state.