Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.
ÖBB Scotty API
Query Austria's public transport for trip planning, station departures, and service alerts via the HAFAS mgate API.
Quick Reference
Method
Purpose
LocMatch
Search for stations/stops by name
TripSearch
Plan a journey between two locations
StationBoard
Get departures/arrivals at a station
HimSearch
Get service alerts and disruptions
Base URL:https://fahrplan.oebb.at/bin/mgate.exe
Authentication
All requests require these headers in the JSON body:
Important: The prodX field in journey sections is an index into the common.prodL[] array, NOT the train name itself. To get the actual train name (e.g., "S7", "RJX 662"), you must look up common.prodL[prodX].name.
Extracting Trip Summaries with jq
The raw TripSearch response is very verbose. Use this jq filter to extract a concise summary with resolved train names:
[{"dep":"213900","arr":"221100","depPlatform":"1","arrPlatform":"3A-B","dur":"003200","chg":0,"legs":[{"train":"S 7","dir":"Flughafen Wien Bahnhof","dep":"213900","arr":"221100", ...}]}]
{"svcResL":[{"res":{"msgL":[{"hid":"HIM_FREETEXT_843858","head":"Verringertes Sitzplatzangebot","text":"Wegen einer technischen Störung...","prio":0,"sDate":"20260108","eDate":"20260108"}]}}]}
Common Station IDs
Station
extId
Wien Hbf
8103000
Wien Meidling
8100514
Wien Westbahnhof
8101003
Salzburg Hbf
8100002
Linz Hbf
8100013
Graz Hbf
8100173
Innsbruck Hbf
8100108
Klagenfurt Hbf
8100085
St. Pölten Hbf
8100008
Wr. Neustadt Hbf
8100516
Time Format
Dates: YYYYMMDD (e.g., 20260109)
Times: HHMMSS (e.g., 080000 = 08:00:00)
Duration: HHMMSS (e.g., 025200 = 2h 52m)
Error Handling
Check err field in response:
{"err":"OK",// Success"err":"PARSE",// Invalid request format"err":"NO_MATCH",// No results found"errTxt":"..."// Error details}