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 metrics at scale, providing deep insights for vehicle and pedestrian travel modes for sites across North America.
If you do not have access 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 API allows you to programmatically retrieve and integrate traffic metrics into your workflows. It supports real-time access to key transportation data, enabling:
- Automated data ingestion
- Scalable site analyses
- Integration with analysis tools and dashboards
How do I authenticate?
All API requests require an API key. If you do not have a key, contact your StreetLight representative or Contact Support . For more information, see Authentication .
Workflow
You can use the StreetLight Advanced Traffic Counts API in a workflow with the following steps:
- Check available dates: Confirm what data is available for your travel mode.
- Define your geometry: Provide the road segments you want to analyze.
- Estimate segment count: Understand how many StreetLight segments your geometry includes.
- Get segment geometry: Retrieve GeoJSON line strings for each segment.
- Request metrics: Query metrics for your geometry with optional filters.
For a walkthrough, see Example Workflow.
API 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.
To enable usage quotas for your organization, contact your StreetLight representative.
Lets you check the date range for which metrics are available for a specified travel mode.
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.
Returns the StreetLight segment IDs and their associated geometry in the GeoJSON format.
Returns a subset of the segments and their respective geometries from a previous geometry
query.
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.
Returns metrics for a subset of segments from a previous metrics
query.
Returns details of previous queries, such as number of segments queried and billable fields.
Updated about 18 hours ago