get_transport_alerts
Retrieve real-time transport alerts and disruptions for NSW public transport, with filters for date, transport mode, stop, line, or operator.
Instructions
Get transport alerts from the Transport NSW API.
Args:
date (str, optional): Date in DD-MM-YYYY format. Defaults to today's date.
mot_type (int, optional): Mode of transport type filter. Options:
1: Train
2: Metro
4: Light Rail
5: Bus
7: Coach
9: Ferry
11: School Bus
stop_id (str, optional): Stop ID or global stop ID to filter by.
line_number (str, optional): Line number to filter by (e.g., '020T1').
operator_id (str, optional): Operator ID to filter by.
Returns:
dict: API response containing alerts information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| mot_type | No | ||
| stop_id | No | ||
| line_number | No | ||
| operator_id | No |