MBTA API
Provides schedules, maps, and fare information for Greater Boston's public transportation system, including subway, rail, bus, and boat lines.
import requests
url = "https://api.mbta.com/v3/routes"
params = {
"api_key": "YOUR_API_KEY"
}
response = requests.get(url, params=params)
print(response.json())Last 50 checks (10 min intervals)