GTFS alerts API

GTFS alerts API

DCTA route alerts can be read from the Swiftly GTFS-Realtime alerts feed. This page documents the request. It does not include the API key or the agency key.

Request

The default body is GTFS-Realtime protobuf. Add ?format=json for the same feed as JSON, or ?format=human for a text snapshot.

Feed fields

How this site stores an alert

Swiftly alerts are saved as the hidden external-alert post type, using the same fields as Route Alerts:

The API key is encrypted in the database with a plugin-generated secret. That secret is not taken from wp-config.php. The key is not shown on this page.