irailQuery Belgian railway (NMBS/SNCB) schedules via the irail CLI. Use when the user wants train departures, connections between stations, train compositions, or...
Install via ClawdBot CLI:
clawdbot install dedene/irailCLI for Belgian railways (NMBS/SNCB) via iRail API. No authentication required.
# Station departures
irail liveboard Brugge
# Find connections
irail connections Brugge Leuven
# Check disruptions
irail disturbances
None required. iRail API is public and free to use.
--json when parsing output programmatically| Flag | Format | Use case |
|------|--------|----------|
| (default) | Table | User-facing with colors |
| --json | JSON | Agent parsing, scripting |
Colors indicate: red = delays, yellow = platform changes.
# Departures from station
irail liveboard Brugge
irail liveboard "Brussel-Centraal"
# Arrivals instead of departures
irail liveboard Brugge --arrivals
# Specific date/time
irail liveboard Brugge --time 09:00 --date 2025-02-15
# JSON for scripting
irail liveboard Brugge --json
# Different language
irail liveboard Brugge --lang en
# Find routes
irail connections Brugge Leuven
# Specific departure time
irail connections Brugge Leuven --time 09:00
# Arrive by time (instead of depart at)
irail connections Brugge Leuven --time 14:00 --arrive-by
# More results
irail connections Brugge Leuven --results 10
# JSON for parsing
irail connections Brugge Leuven --json
# List all stations
irail stations
# Search stations
irail stations --search bruss
irail stations --search gent
# JSON for scripting
irail stations --json
# Show train information
irail vehicle IC1832
# Include all stops
irail vehicle IC1832 --stops
# JSON output
irail vehicle IC1832 --json
# Show train composition (seats, amenities)
irail composition S51507
irail composition IC1832
# JSON for parsing
irail composition S51507 --json
# All current disruptions
irail disturbances
# Only planned works
irail disturbances --type planned
# Only unplanned disruptions
irail disturbances --type disturbance
# JSON for scripting
irail disturbances --json
# Get next train to destination
irail connections Brugge Leuven --json | jq -r '.[0].departure'
# Find station ID
irail stations --search "brussel" --json | jq -r '.[0].id'
# Check if delays exist on liveboard
irail liveboard Brugge --json | jq '[.[] | select(.delay > 0)] | length'
# Get platform for next departure
irail liveboard Brugge --json | jq -r '.[0].platform'
# List all disruptions
irail disturbances --json | jq -r '.[].title'
| Variable | Description |
|----------|-------------|
| IRAIL_LANG | Default language (nl, fr, en, de) |
| IRAIL_JSON | Default to JSON output |
| NO_COLOR | Disable colored output |
| Code | Language |
|------|----------|
| nl | Dutch (default) |
| fr | French |
| en | English |
| de | German |
irail liveboard Brugge --lang fr
irail connections Brugge Leuven --lang en
| Command | Description |
|---------|-------------|
| liveboard | Station departures/arrivals |
| connections | Route planning between stations |
| stations | List/search stations |
| vehicle | Train information and stops |
| composition | Train car composition |
| disturbances | Service disruptions |
| completion | Shell completions |
irail vehicle IC1832 --json | jq '.delay // 0'
irail connections Brugge Leuven --json | jq '.[0].vias | length'
irail connections Brugge Leuven --json | jq '[.[] | select(.vias == null or (.vias | length) == 0)]'
brew install dedene/tap/irail
Generated Mar 1, 2026
Tourists visiting Belgium can use irail-cli to check train schedules and plan day trips between cities like Bruges and Brussels. It helps them find direct connections, departure times, and service disruptions to avoid delays during sightseeing. The tool supports multiple languages, making it accessible for international travelers.
Commuters in Belgium rely on irail-cli to monitor live departures and arrivals at their local stations, such as Leuven or Antwerp, to manage daily travel. They can check for delays, platform changes, and disruptions to optimize their commute time and reduce stress. The JSON output allows for integration into personal scripts for automated alerts.
Event organizers use irail-cli to plan transportation for attendees traveling to conferences or festivals across Belgium. By querying connections and disturbances, they can provide real-time updates on train schedules and alternative routes. This ensures smooth logistics and enhances attendee experience with timely information.
Business professionals traveling between Belgian cities like Ghent and Brussels use irail-cli to find efficient train connections and check for service disruptions. It helps them schedule meetings by providing accurate arrival times and minimizing travel downtime. The tool's scripting capabilities allow for automated itinerary updates.
Local authorities or transit agencies utilize irail-cli to monitor train service disruptions and compositions for maintenance planning. By analyzing disturbances and vehicle data, they can assess network performance and communicate updates to the public. This supports operational efficiency and service reliability.
Offer a free tier for basic queries like liveboards and connections, with premium features such as advanced analytics or higher API limits for a subscription fee. This model targets developers and businesses needing reliable train data for apps or services. Revenue is generated through monthly or annual subscriptions.
Provide customized reports and insights derived from irail-cli data, such as delay trends or station usage patterns, to transportation companies or urban planners. This adds value by helping clients optimize schedules and infrastructure. Revenue comes from one-time project fees or ongoing consulting contracts.
License the irail-cli technology to travel agencies or tourism platforms, allowing them to embed train schedule features into their own applications. This model leverages the tool's public API and ease of integration. Revenue is generated through licensing agreements or revenue-sharing from increased bookings.
💬 Integration Tip
Use the --json flag for programmatic parsing and integrate with tools like jq to extract specific data points, such as delays or platform information, for automated workflows.
Navigate Dubai as visitor, resident, tech worker, student, or entrepreneur with neighborhoods, transport, costs, visas, and local insights.
Navigate New York City as visitor, resident, tech worker, student, or entrepreneur with neighborhoods, transport, costs, safety, and local insights.
Plan public transit trips globally using Wheels Router (Hong Kong) and Transitous (worldwide)
Navigate Toronto as visitor, resident, tech worker, student, or entrepreneur with neighborhoods, transit, costs, immigration, and local insights.
Navigate San Francisco as visitor, resident, tech worker, student, or entrepreneur with neighborhoods, transport, costs, safety, and local insights.
查询大众点评餐厅信息。使用场景:(1) 用户要查询某家餐厅的评分、人均消费、地址 (2) 用户要搜索特定菜系或区域的餐厅推荐 (3) 用户要获取附近美食推荐。登录账号:一定S。重要:搜索时URL需包含城市ID(如hangzhou页面),账号定位北京时需使用URL参数方式绕过。