Transport for United States

API

Real-time public transit data API for US agencies via NextBus

Visit Website

Overview

The Transport for United States (NextBus) API provides real-time transit data for participating US agencies, including arrival predictions, route details, stop locations, and vehicle positions. Key endpoints include agencyList (supported agencies), routeList (routes per agency), predictions (stop arrival times), and vehicleLocations (live vehicle tracking). Responses are in XML format. Use cases include building commuter apps, displaying real-time arrival info on public screens, integrating transit data into navigation tools, and urban planning analysis.

Example Integration (JavaScript)

script.js JS

fetch('https://retro.umoiq.com/xmlFeedDocs/NextBusXMLFeed.pdf')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • Real-time transit data
  • XML response format
  • Multiple US agency support
  • No API key required
  • Endpoints for predictions & vehicle tracking

Frequently Asked Questions

? Is Transport for United States (NextBus) API free to use?

Yes, the API is free for both non-commercial and commercial use, though some partner agencies may impose usage restrictions.

? Does it require an API key?

No, the API does not require an API key or authentication to access its endpoints.

? What is the response format?

All API responses are in XML format; JSON is not supported at this time.

Top Alternatives

Transitland API Compare
GTFS Realtime (agency-specific) Search Google

People Also Ask about Transport for United States

Transport for United States vs Transitland APITransport for United States vs GTFS Realtime (agency-specific) Transport for United States 2025 review

Tool Info

Pricing Free
Category Transportation
Platform Public API

Pros

  • No authentication needed
  • Covers major US transit systems
  • Detailed route/stop metadata
  • Free access

Cons

  • XML-only (no JSON support)
  • Limited to NextBus-partnered agencies
  • No official SLA
  • Documentation is PDF-only

More Transportation Tools