SEPTA Bus Arrival API

Get real-time bus arrival predictions using SEPTA's GTFS-realtime feed.

Usage:

/stop/STOP_ID?limit=N

Examples:

/stop/16327 (8th St & Wharton St - all arrivals)
/stop/16327?limit=5 (8th St & Wharton St - next 5 arrivals)

Returns:

{
  "current_time": "2025-10-09T16:40:00",
  "stop_id": "16327",
  "stop_name": "8th St & Wharton St",
  "stop_location": {"lat": 39.9368, "lon": -75.1555},
  "arrivals": [
    {
      "route": "47",
      "trip_id": "123_456",
      "destination": "Whitman Plaza",
      "minutes_until_arrival": 5,
      "arrival_timestamp": "2025-10-09T16:45:00",
      "delay_minutes": 2,
      "schedule_relationship": "SCHEDULED",
      "direction": 0
    },
    {
      "route": "12",
      "trip_id": "789_012",
      "destination": "Darby Transportation Center",
      "minutes_until_arrival": 8,
      "arrival_timestamp": "2025-10-09T16:48:00",
      "delay_minutes": 0,
      "schedule_relationship": "SCHEDULED",
      "direction": 1
    }
  ],
  "count": 2,
  "source": "GTFS-realtime"
}