Transport for United States
NextBus API
- 认证方式
- No auth
- HTTPS
- No
- CORS
- Unknown
- 分类
- 交通运输
简介
NextBus XML feed API 提供美国公交数据——机构、线路和到站预测(按文档 PDF)。
⚠️ 状态(2026-08 实测):猜测的路径(
/api/public/agencies)返回 HTTP 404(站点提供前端)——XML feed 路由不同。请查看 NextBus XML feed 文档获取当前路径。
提供的数据
curl "https://retro.umoiq.com/service/publicXMLFeed?command=agencyList"
注意事项
- NextBus XML feed:
service/publicXMLFeed?command=...。 - 命令:
agencyList、routeList、predictions。
常见问题
美国公交 API 免费吗? 是的——NextBus feed 免费。
为什么 404? 我们 2026-08 猜测的路径不对(已实测)——请用 XML feed 路由。
什么格式? XML(NextBus feed)。
交通运输 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| ADS-B Exchange Access real-time and historical data of any and all airborne aircraft | No auth | Yes | Unknown | ↗ |
| airportsapi Get name and website-URL for airports by ICAO code | No auth | Yes | Unknown | ↗ |
| AIS Hub Real-time data of any marine and inland vessel equipped with AIS tracking system | API Key | No | Unknown | ↗ |
| Amadeus for Developers Travel Search - Limited usage | OAuth | Yes | Unknown | ↗ |
| apilayer aviationstack Real-time Flight Status & Global Aviation Data API | OAuth | Yes | Unknown | ↗ |