None required. iRail API is public and free to use.
Core Rules
Always use --json when parsing output programmatically
Station names are flexible - accepts partial matches, quotes for multi-word
Time format - HH:MM (24-hour), date format YYYY-MM-DD
Language options - nl, fr, en, de (default: nl)
Output Formats
Flag
Format
Use case
(default)
Table
User-facing with colors
--json
JSON
Agent parsing, scripting
Colors indicate: red = delays, yellow = platform changes.
Workflows
Liveboard (Departures/Arrivals)
bash
# 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
Connections (Route Planning)
bash
# 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
Stations
bash
# List all stations
irail stations
# Search stations
irail stations --search bruss
irail stations --search gent
# JSON for scripting
irail stations --json
Vehicle (Train Info)
bash
# Show train information
irail vehicle IC1832
# Include all stops
irail vehicle IC1832 --stops
# JSON output
irail vehicle IC1832 --json
Composition (Train Cars)
bash
# Show train composition (seats, amenities)
irail composition S51507
irail composition IC1832
# JSON for parsing
irail composition S51507 --json
Disturbances
bash
# 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
Scripting Examples
bash
# 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'
Limited provenance information — review the source before installing.
Freshness11/15
Updated within the last 6 months.
Scored automatically from popularity, completeness, trust, and freshness — computed only from data in our catalog, never fabricated.
Proud of your score? Add this badge to your README.
Paste a snippet into your GitHub README. The badge updates automatically and links back to this page.
Score badge
Markdown
[](https://www.claudemarket.ai/skills/dedene/irail)
HTML
<a href="https://www.claudemarket.ai/skills/dedene/irail"><img src="https://www.claudemarket.ai/skills/dedene/irail/badges/score.svg" alt="The IRail API skill"/></a>
The IRail API FAQ
How do I install the The IRail API skill?
Run “clawhub install dedene/irail” in your terminal. The skill is added to your agent's skills directory and picked up automatically on the next run — no restart or extra configuration needed.
What does the The IRail API skill do?
CLI for Belgian railways (NMBS/SNCB) via iRail API . No authentication required. The SKILL.md section on this page shows the exact instructions the skill gives your agent.
Is the The IRail API skill free?
Yes. The IRail API is a free, open-source skill by dedene. As with any third-party skill, review the source repository before installing it into an agent with sensitive access.
Does The IRail API work with Claude Code and OpenClaw?
Yes. Skills use the portable SKILL.md format, so The IRail API works with Claude Code, OpenClaw, Codex, Hermes, and any other agent that reads SKILL.md skills.