API Documentation

Tiers

Choose the tier that fits your needs. You can start without any key and upgrade at any time.

TierAuthRate LimitDaily LimitHow to Get
No keyNone3 req/sUnlimitedExisting behavior
AnonymousNone10 req/s3,000/dayGenerate instantly
IdentifiedEmail + password30 req/s10,000/dayCreate an account
CommercialContactCustomCustomContact us

Upgrading from Anonymous to Identified

Anonymous keys are great for quick prototyping. When you need higher limits, create an account to get an Identified key. Your anonymous key will continue to work — you don't need to migrate.

Authentication

Pass your API key using one of these methods:

HTTP Header (recommended)

curl -H "X-API-Key: your_api_key_here" https://api.okbe.dev/irail/liveboard?station=Brussel-Zuid&format=json

Query Parameter

curl "https://api.okbe.dev/irail/liveboard?station=Brussel-Zuid&format=json&apikey=your_api_key_here"

Available APIs

iRail

Belgian railway data — liveboards, connections, vehicle info, and more. See the full iRail documentation for all available endpoints.

EndpointDescription
/irail/stationsList all Belgian railway stations
/irail/liveboardReal-time departures/arrivals for a station
/irail/connectionsRoute planning between two stations
/irail/vehicleInfo and stops for a specific train
/irail/compositionTrain composition (carriages)
/irail/disturbancesCurrent service disruptions

Response Format

Add format=json to get JSON responses (default is XML). JSONP is also supported via the format=jsonp parameter.