TransportationDocumentedScanned
wienerlinien
Vienna public transport (Wiener Linien) real-time.
Share:
Installation
npx clawhub@latest install wienerlinienView the full skill documentation and source below.
Documentation
Wiener Linien Real-Time API
Query Vienna's public transport for real-time departures, disruptions, elevator outages, and service information.
Quick Reference
| Endpoint | Purpose |
/monitor | Real-time departures at a stop |
/trafficInfoList | All current disruptions |
/trafficInfo | Specific disruption details |
/newsList | Service news & elevator maintenance |
---
## Finding Stop IDs
Stops are identified by **RBL numbers** (Rechnergestütztes Betriebsleitsystem). Use the reference data:
__CODE_BLOCK_0__
**Common Stop IDs (RBL):**
| Stop | RBL IDs | Lines |
|------|---------|-------|
| Stephansplatz | 252, 4116, 4119 | U1, U3 |
| Karlsplatz | 143, 144, 4101, 4102 | U1, U2, U4 |
| Westbahnhof | 1346, 1350, 1368 | U3, U6 |
| Praterstern | 4205, 4210 | U1, U2 |
| Schwedenplatz | 1489, 1490, 4103 | U1, U4 |
| Schottentor | 40, 41, 4118 | U2, Trams |
---
## 1. Real-Time Departures (/monitor)
Get next departures at one or more stops.
### Request
__CODE_BLOCK_1__
### Parameters
| Param | Required | Description |
|-------|----------|-------------|
| stopId | Yes (1-n) | RBL stop ID(s) |
| activateTrafficInfo | No | Include disruptions: stoerungkurz, stoerunglang, aufzugsinfo |
| aArea | No | 1 = include all platforms with same DIVA number |
### Response Structure
__CODE_BLOCK_2__
### Key Fields
| Field | Description |
|-------|-------------|
| countdown | Minutes until departure |
| timePlanned | Scheduled departure |
| timeReal | Real-time prediction (if available) |
| barrierFree | Wheelchair accessible |
| trafficjam | Traffic jam affecting arrival |
| type | ptMetro, ptTram, ptBusCity, ptBusNight |
---
## 2. Disruptions (/trafficInfoList)
Get all current service disruptions.
### Request
__CODE_BLOCK_3__
### Parameters
| Param | Description |
|-------|-------------|
| relatedLine | Line name (U1, 13A, etc.) - can repeat |
| relatedStop | RBL stop ID - can repeat |
| name | Category: stoerunglang, stoerungkurz, aufzugsinfo, fahrtreppeninfo |
### Response
__CODE_BLOCK_4__
### Disruption Categories
| Name | Description |
|------|-------------|
| stoerunglang | Long-term disruptions |
| stoerungkurz | Short-term disruptions |
| aufzugsinfo | Elevator outages |
| fahrtreppeninfo | Escalator outages |
---
## 3. Specific Disruption (/trafficInfo)
Get details for a specific disruption by name.
__CODE_BLOCK_5__
---
## 4. Service News (/newsList)
Planned maintenance, elevator service windows, news.
__CODE_BLOCK_6__
### Categories
| Name | Description |
|------|-------------|
| aufzugsservice | Planned elevator maintenance |
| news | General service news |
---
## Reference Data (CSV)
### Stops (Haltepunkte) - Primary
__CODE_BLOCK_7__
**StopID is the RBL number used in API calls.**
### Stations (Haltestellen)
__CODE_BLOCK_8__
### Lines
__CODE_BLOCK_9__
**MeansOfTransport:** ptMetro, ptTram, ptBusCity, ptBusNight
---
## Common Use Cases
### "When is the next U1 from Stephansplatz?"
__CODE_BLOCK_10__
### "Are there any U-Bahn disruptions?"
__CODE_BLOCK_11__
### "Which elevators are out of service?"
__CODE_BLOCK_12__
### "Departures from Karlsplatz with all disruption info"
__CODE_BLOCK_13__
---
## Error Codes
| Code | Meaning |
|------|---------|
| 311 | Database unavailable |
| 312 | Stop does not exist |
| 316 | Rate limit exceeded |
| 320 | Invalid query parameter |
| 321 | Missing required parameter |
| 322 | No data in database |
---
## Vehicle Types
| Type | Description |
|------|-------------|
| ptMetro | U-Bahn |
| ptTram | Straßenbahn |
| ptBusCity | City bus |
| ptBusNight | Night bus (N lines) |
---
## Tips
1. **Multiple platforms**: A single station may have multiple RBL IDs (one per platform/direction). Query all for complete departures.
2. **Real-time availability**: Check realtimeSupported - some lines only have scheduled times.
3. **Countdown vs timeReal**: Use countdown for display, timeReal for precise timing.
4. **Barrier-free routing**: Filter by barrierFree: true for wheelchair users.
5. **Find stop IDs**: Search the CSV files by station name, then use the StopID as stopId` parameter.