Transport for Belgium

API

Free JSON API for Belgian public train transport data

Visit Website

Overview

The Transport for Belgium API (powered by iRail) offers RESTful endpoints for Belgian train transport data, including live departures/arrivals, station details, route planning, and vehicle positions. Responses are in JSON format, enabling seamless integration with web and mobile apps. Key endpoints include /liveboard (real-time station departures), /journey (route calculations), /stations (comprehensive station lists), and /vehicle (train location tracking). Ideal for commuter apps, travel planners, or transit analytics tools to help users navigate Belgian trains efficiently.

Example Integration (JavaScript)

script.js JS

fetch('https://docs.irail.be/')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful API
  • JSON Support
  • No Auth Required
  • Real-time Data
  • Route Planning
  • Station Information
  • Vehicle Tracking

Frequently Asked Questions

? Is Transport for Belgium API free to use?

Yes, the API (via iRail) is free for both non-commercial and commercial use, with attribution recommended.

? Does it require an API Key?

No, you can access all endpoints without an API key, simplifying integration.

? What is the response format?

All API responses are in JSON format, which is widely supported and easy to parse across programming languages.

Top Alternatives

NMBS/SNCB Official API Search Google
De Lijn Public Transport API Search Google

People Also Ask about Transport for Belgium

Transport for Belgium vs NMBS/SNCB Official APITransport for Belgium vs De Lijn Public Transport API Transport for Belgium 2025 review

Tool Info

Pricing Free
Category Transportation
Platform Public API

Pros

  • Completely Free to Use
  • Easy Integration
  • Real-time Transit Updates
  • Comprehensive Endpoints
  • Open Source Documentation

Cons

  • Limited to Train Transport (No Buses/Trams)
  • Third-party Maintenance Dependence
  • Potential Rate Limits for High Usage
  • No Official SLA

More Transportation Tools