Three lines

Uber

Developers

Current Traffic

POST/v1/traffic/current

Use Case

The Current Traffic endpoint returns the best available traffic speed, right now, for every directed road segment within the requested S2 level-13 cell.

Each segment’s speed comes from live realtime traffic when it is available, otherwise from historical traffic for the same time, otherwise from a free-flow estimate. The source and confidence fields tell you which one you received and how much to rely on it. To read traffic at a past time, use Traffic Snapshot.

See the Traffic & Incidents introduction for base URLs and developer guides.

Authorization

OAuth 2.0 Bearer token with the maps.traffic scope. See Authentication.

Request Parameters

All request fields are required.

Name Type Description
spatial_selector SpatialSelector Spatial boundary for the query.
SpatialSelector Parameters
Name Type Description
s2_cell_id string S2 level 13 cell token.
Notes on S2 cell level
  • Use the hexadecimal token produced by an S2 library, not a raw decimal cell ID.
  • A token at any other level, or a malformed token, returns HTTP 400.
  • s2_cell_id is currently the only supported selector, and each request accepts one cell.
  • The traffic endpoints use S2 level 13; the Active Incidents endpoint uses level 7. See S2 Cells for converting between levels and covering larger areas.
Required Headers
Name Value
Authorization Bearer <ACCESS_TOKEN> with the maps.traffic scope
Content-Type application/json

Accept: application/json is optional.

Example Request

$api_url is api.uber.com in production, or test-api.uber.com if Uber has provisioned sandbox access for your application.

curl -X POST \
  -H "authorization: Bearer $UBER_TOKEN" \
  -H 'content-type: application/json' \
  https://$api_url/v1/traffic/current -d \
'{
  "spatial_selector": {
    "s2_cell_id": "<S2_LEVEL_13_CELL_TOKEN>"
  }
}'
Response body parameters
Name Type Description
traffic_flow TrafficFlow[] Optional. Traffic per directed segment.
read_time string UTC evaluation time.

Status-code: 200 OK

Illustrative response; road names, locations, speeds, and timestamps are example data, not a live capture:

{
  "traffic_flow": [
    {
      "location_reference": {"openlr": "Cwhv9S369y9IAP8A/xsSBA=="},
      "road_name": "Example Road",
      "speed_profile": [
        {"speed_kmph": 42.5, "confidence": 0.83}
      ],
      "source": "TRAFFIC_SOURCE_REALTIME"
    },
    {
      "location_reference": {"openlr": "CwhwBS37Ay9JAP8B/xsSAQ=="},
      "speed_profile": [
        {"speed_kmph": 50, "confidence": 0.25}
      ],
      "source": "TRAFFIC_SOURCE_FALLBACK"
    }
  ],
  "read_time": "2026-11-20T08:30:00.412Z"
}
Notes on the response
  • An empty result is a successful response, not a 404. traffic_flow is omitted when there is no traffic; treat that as an empty collection.
  • Each entry describes one direction of travel. A two-way road appears as two entries, one per direction, each with its own location reference.
  • read_time may include fractional seconds.
TrafficFlow Parameters
Name Type Description
location_reference LocationReference The directed road segment.
road_name string Optional. Road name.
speed_profile SpeedProfile[] Speed and confidence.
source TrafficSource Where the speed came from.
  • location_reference is oriented in the direction of travel that the speed applies to.
  • road_name is omitted when the road has no name.
  • speed_profile currently always contains exactly one entry.
LocationReference Parameters
Name Type Description
openlr string Base64-encoded binary OpenLR reference.

OpenLR is currently the only supported location-reference format.

SpeedProfile Parameters
Name Type Description
speed_kmph double Speed in kilometers per hour.
confidence double Reliability, from 0.0 to 1.0.
TrafficSource Options
Name Description
TRAFFIC_SOURCE_INVALID Unset sentinel; not a source.
TRAFFIC_SOURCE_REALTIME Live traffic observed on the segment.
TRAFFIC_SOURCE_HISTORICAL Typical traffic for the segment at this time.
TRAFFIC_SOURCE_FALLBACK Free-flow estimate, e.g. from speed limit.

Sources are used in priority order: realtime when available, otherwise historical, otherwise fallback.

Errors

See Errors for HTTP status codes and how to handle them, and Rate Limits for quotas.

Uber

Developers
© 2026 Uber Technologies Inc.