sfmta.dev

An unofficial RESTful JSON API for the SFMTA Muni System

Not associated with the San Francisco Municipal Transportation Agency. Inspired by RESTBUS

Why?

As a developer and daily Muni rider, I've always wanted to build a project involving real-time data from Muni. Unfortunately, SFMTA has never released an official Muni API. The closest thing to it was through NextBus (now Umoiq). Besides its outdated XML style feed, the biggest issue was a lack of consistency. In 2021 SFMTA began building their "Next Generation Customer Information System ☝️🤓" which consisted of spending 25.4 million dollars to update some screens and take down the existing api without any notice. 511.org provides an API for real-time data, but it's meant for transit agencies in the Bay Area and thus is excessively complex. sfmta.dev converts this feed into a simplified JSON API meant for the Muni system.