Three lines

Uber

Developers

Traffic Snapshot

POST/v1/traffic/snapshot

Use Case

The Traffic Snapshot endpoint returns traffic speeds, as they were at a past point in time, for every directed road segment within the requested S2 level-13 cell.

Use it to backfill or analyze past conditions. snapshot_time can be up to 90 days in the past. For traffic right now, use Current Traffic. The response uses the same TrafficFlow format as Current Traffic.

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.
snapshot_time string RFC 3339 time to read traffic at.
SpatialSelector Parameters
Name Type Description
s2_cell_id string S2 level 13 cell token.
Notes on snapshot_time
  • Use an RFC 3339 timestamp, for example 2026-11-20T08:30:00Z.
  • A snapshot_time older than 90 days returns HTTP 400.
  • A snapshot_time in the future returns HTTP 400. Up to 60 seconds of clock skew is tolerated.
  • There is no default; a request without snapshot_time returns HTTP 400.
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/snapshot -d \
'{
  "spatial_selector": {
    "s2_cell_id": "<S2_LEVEL_13_CELL_TOKEN>"
  },
  "snapshot_time": "2026-11-20T08:30:00Z"
}'
Response body parameters
Name Type Description
traffic_flow TrafficFlow[] Optional. Traffic per directed segment.
snapshot_time string The point in time that was evaluated.

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": 31.2, "confidence": 0.89}
      ],
      "source": "TRAFFIC_SOURCE_REALTIME"
    },
    {
      "location_reference": {"openlr": "CwhwBS37Ay9JAP8B/xsSAQ=="},
      "road_name": "Example Road",
      "speed_profile": [
        {"speed_kmph": 47.8, "confidence": 0.62}
      ],
      "source": "TRAFFIC_SOURCE_HISTORICAL"
    }
  ],
  "snapshot_time": "2026-11-20T08:30:00Z"
}
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.
  • TrafficFlow, LocationReference, SpeedProfile, and TrafficSource are the same as in Current Traffic.
  • Each segment’s speed comes from realtime traffic recorded at snapshot_time when available, otherwise from historical traffic for that time, otherwise from a free-flow estimate.

Errors

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

Uber

Developers
© 2026 Uber Technologies Inc.