Topics:

Service alerts

Note: Service alerts API will be deprecated in the future in favor of Disruption info GraphQL API. This is part of an effort to reduce overlapping API functionalities and to concentrate APIs under the GraphQL APIs.

The HSL Alerts API can be used to query real-time updates from the HSL fleet in GTFS-RT format. The API provides service alerts for disruptions (e.g. detours and significant delays) and trip updates for cancelled trips.

Endpoint

http://api.opentransport.ro/realtime/service-alerts/v1/

Supported URL parameters

Parameter Type Description
debug query parameter Print data in human readable format (for debug purposes)

Examples

Show currently active alerts with curl

curl http://api.opentransport.ro/realtime/service-alerts/v1/?debug

Test the API

Show currently active alerts