Transport for Belgium
APIFree JSON API for Belgian public train transport data
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)
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
People Also Ask about Transport for Belgium
Tool Info
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