Introduction

StreetLight Advanced Traffic Counts API

What is StreetLight Advanced Traffic Counts?

StreetLight Advanced Traffic Counts is a set of StreetLight Metrics for private sector companies that provides comprehensive and granular traffic volume metrics at scale, providing deep insights for vehicle and pedestrian travel modes for sites across North America.

If you do not have access to StreetLight Advanced Traffic Counts but would like to learn more, contact your StreetLight representative or go to StreetLight Advanced Traffic Counts .

Why use the StreetLight Advanced Traffic Counts API?

The StreetLight Advanced Traffic Counts API lets you query the API’s endpoints to get metrics on demand and integrate them into your workflows.

How do I authenticate?

You need an API key to authenticate your requests. If you do not have an API key, reach out to your StreetLight representative or Contact Support . For more information, see Authentication .

Workflow

You can use the StreetLight Advanced Traffic Counts API in a basic workflow with the following steps:

  1. Check available dates for your travel mode.
  2. Identify the geometry to study.
  3. Check how many segments are included in your geometry.
  4. Get your geometry data as GeoJSON line strings.
  5. Request metrics for your geometry.

To learn how these endpoints can be used together in a scenario, see Example Workflow.

Endpoints

The StreetLight Advanced Traffic Counts API includes the endpoints below.

🚧

StreetLight only charges for calls to the Metrics endpoint, based on the number of StreetLight segments queried and the metrics fields requests. For more information, see Available Metrics.

If you would like to enable quotas on the number of segments analyzed for your organization, contact your StreetLight representative.

Available Date Range

Lets you check the date range for which metrics are available for a specified travel mode.

Segment Count

Lets you check how many StreetLight segments are included in your defined geometry, and thus how many segments you would get metrics for if you use the same geometry with the Metrics endpoint.

Geometry

Returns the StreetLight segment IDs and their associated geometry in the GeoJSON format.

Geometry paging

Returns a subset of the segments and their respective geometries from a previous geometry query.

Metrics

Returns metrics for StreetLight segments within your defined geometry. You can request many types of metrics and filter your results. For more information, see Available Metrics.

Metrics paging

Returns metrics for a subset of segments from a previous metrics query.

Usage

Returns details of previous queries, such as number of segments queried and billable fields.