Traffic & Incidents API Introduction
¶ Overview
Uber’s Traffic & Incidents APIs provide Uber-sourced, real-time road conditions:
- Traffic: speeds for every directed road segment within an area, right now or at a past point in time.
- Incidents: road closures, accidents, roadworks, and other incidents that are active now within an area.
- Partner Incidents: report the incidents that you detect to Uber, and get driver votes on them back.
All requests and responses use JSON over HTTPS.
¶ Base URLs
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://api.uber.com |
Live data. |
| Testing | https://test-api.uber.com |
Sandbox, when provisioned. |
Use the testing environment only when Uber has provisioned sandbox access for your application. Sandbox applications must also get tokens from the testing auth URL; see Authentication.
¶ Developer Guides
- Authentication - These are private APIs. Your application must be granted the API’s scope, then authenticate using OAuth 2.0 client credentials.
- S2 Cells - Requests select an area using an S2 cell token. Each endpoint requires a specific S2 level.
- Rate Limits - Per-application request quotas and how to handle HTTP 429.
- Errors - HTTP status codes and how to handle each one.
¶ Traffic Endpoints
Requires the maps.traffic scope.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/traffic/current | Speeds now, per road segment. |
| POST | /v1/traffic/snapshot | Speeds at a past time (up to 90 days). |
Both take an S2 level-13 cell.
¶ Incidents Endpoints
Requires the maps.incidents scope.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/incidents/active | Closures and incidents active now. |
Takes an S2 level-7 cell.
¶ Partner Incidents Endpoints
Requires the maps.partner.incidents scope, and Uber must enable your application for incident reporting.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/incidents/report | Report an incident to Uber. |
| POST | /v1/incidents/status | Status and driver votes of a report. |
Report Incident takes an OpenLR location. Report Status takes a report ID.