Get STPT service alerts
get_alertsRetrieve current or historical STPT service alerts, filtered by stop ID or line. Returns only alerts active at the current instant when active_only is enabled.
Instructions
Get current or historical STPT service alerts. Filters by stop ID and/or line when supplied. Active periods are evaluated in Europe/Bucharest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Optional line filter. | |
| limit | No | Maximum number of alerts. | |
| stop_id | No | Optional STPT stop ID. | |
| active_only | No | Return only alerts active at the current instant. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| count | Yes | ||
| error | No | Structured failure, if any. | |
| alerts | No | ||
| status | Yes | Overall result status. | |
| stop_id | No | ||
| provenance | No | Source and freshness metadata. | |
| active_only | Yes |