Developer APIs
Build with real-time transit data.
BusSetu exposes unified REST endpoints and low-latency WebSocket channels. Access active trip GPS coordinates, route geometries, timetable delays, and occupancy telemetry.
GET /api/v1/trips/TRIP-240708-001
{
"status": "success",
"data": {
"tripId": "TRIP-240708-001",
"busNumber": "UP70 AB 1234",
"status": "running",
"gps": {
"latitude": 25.4358,
"longitude": 81.8463,
"speed": 54,
"heading": 85
},
"passenger": {
"occupiedSeats": 14,
"vacantSeats": 24,
"standingPassengers": 4
}
}
}REST API Endpoints
Retrieve detailed static catalogs of bus routes, stops coordinates, and operators metadata.
WebSocket Channels
Subscribe to real-time 1-second interval telemetry streaming directly from active onboard GPS hardware.
Webhooks Integration
Receive HTTP POST trigger requests on ticket bookings, checkout completions, and delays.
SDK Packages
Official wrappers in JavaScript, Python, and Go to kickstart your integrations immediately.