Bus lanes and lost bus time
Where buses lose time to traffic, by street and by stop-to-stop stretch, and which blocks have a bus lane.
https://transitlab.nyc/data/bus-lanes.json No keyRebuilt every night. About 1.7 MB.
Request
Section titled “Request”curl https://transitlab.nyc/data/bus-lanes.jsonimport requests
r = requests.get( "https://transitlab.nyc/data/bus-lanes.json", timeout=60,)r.raise_for_status()print(r.json())const res = await fetch("https://transitlab.nyc/data/bus-lanes.json")if (!res.ok) throw new Error(`HTTP ${res.status}`)console.log(await res.json())Authorization
Section titled “Authorization”No key needed.
Responses
Section titled “Responses”200 OK
Section titled “200 OK”The JSON file.
Headers:
-
Cache-Controlstringpublic, max-age=300
Body:
-
updatedstring (date) required -
periodobject required -
period.startstring requiredYYYY-MM
-
period.endstring requiredYYYY-MM
-
summaryobject required -
summary.busHoursLostinteger required -
summary.withoutLaneinteger required -
summary.withLaneinteger required -
summary.routeMilesWithoutinteger required -
summary.routeMilesWithinteger required -
streetsobject[] requiredThe 25 streets where buses lose the most time.
-
streets[].streetstring required -
streets[].boroughstring required -
streets[].routesstring requiredRoutes on the street, space separated.
-
streets[].lostinteger requiredBus-hours lost each weekday.
-
streets[].mphnumber required -
streets[].lanenumber requiredShare of route-miles on a bus lane.
-
streets[].ridersinteger required -
streets[].routeMilesnumber required -
stretchesobject[] requiredStop-to-stop stretches.
-
stretches[].rstring requiredRoute
-
stretches[].astring requiredFrom stop
-
stretches[].bstring requiredTo stop
-
stretches[].mphnumber required -
stretches[].bestnumber requiredSpeed in the fastest hour.
-
stretches[].delaynumber required -
stretches[].busesinteger requiredBuses a weekday.
-
stretches[].lostnumber requiredBus-hours lost a weekday.
-
stretches[].perMilenumber required -
stretches[].lanenumber requiredShare of the stretch on a bus lane.
-
stretches[].cnumber[][] requiredPath of the stretch.
-
lanesnumber[][][] requiredBus lane segments as pairs of points.
{ "updated": "2026-10-06", "period": { "start": "2026-03", "end": "2026-08" }, "summary": { "busHoursLost": 10477, "withoutLane": 8409, "withLane": 2000, "routeMilesWithout": 6366, "routeMilesWith": 959 }, "streets": [ { "street": "Madison Av", "borough": "Manhattan", "routes": "BXM10 BXM11 BXM18 BXM3 BXM4 BXM6 BXM7 BXM8 BXM9 M1 M2 M3 M4 X27 X28 X37 X38", "lost": 126, "mph": 5.7, "lane": 0.37, "riders": 39426, "routeMiles": 40.1 }, { "street": "Flatbush Av", "borough": "Brooklyn", "routes": "B2 B41 B9 Q35", "lost": 122, "mph": 6.6, "lane": 0.09, "riders": 16803, "routeMiles": 17.2 } ], "stretches": [ { "r": "B1", "a": "Oriental Blvd/Mackenzie St", "b": "Brighton Beach Av/Coney Island Av", "mph": 8.8, "best": 15.4, "delay": 3.3, "buses": 54, "lost": 3, "perMile": 2.65, "lane": 0.1, "c": [ [-73.94, 40.5783], [-73.9519, 40.577] ] }, { "r": "B1", "a": "Brighton Beach Av/Coney Island Av", "b": "Brighton Beach Av/Ocean Pkwy", "mph": 4.8, "best": 5.1, "delay": 0.3, "buses": 2, "lost": 0, "perMile": 0.02, "lane": 0, "c": [ [-73.9602, 40.5779], [-73.9674, 40.5763] ] } ], "lanes": [ [ [-73.9703, 40.6747], [-73.9697, 40.6743] ], [ [-73.9614, 40.7802], [-73.962, 40.7809] ] ]}Errors
Section titled “Errors”| Status | When |
|---|---|
404 | Not found. The file has not been built yet. |
Error responses carry this body:
text/plain