The Urban Traffic Congestion API is a powerful tool designed to provide real-time access to traffic alerts and congestion data in urban areas. Users can define a specific geographic area using latitude and longitude pairs, and the API will provide detailed information on incidents and congestion within that area. This API is ideal for those interested in traffic monitoring, route optimization, urban planning and location-based application development.
The API is flexible for traffic monitoring and analysis in urban areas. Through the “Jams and Alerts” endpoint, users can obtain detailed, real-time information about traffic jams and alerts in a specific geographic location. This API is ideal for a wide range of applications, from traffic management to location-based marketing. By providing accurate and up-to-date data, the API facilitates better decision making and optimizes mobility in urban environments.
To use this endpoint, define a geographic area with latitude and longitude, and you will receive real-time traffic jam alerts and data.
Jams And Alerts - Endpoint Features
| Object | Description |
|---|---|
bottom_left |
[Required] Bottom-left corner of the geographic rectangular area for which to get alerts and traffic jams. Specified as latitude, longitude pair. |
top_right |
[Required] Top-right corner of the geographic rectangular area for which to get alerts and traffic jams. Specified as latitude, longitude pair. |
max_alerts |
Optional Maximum number of alerts to fetch (to avoid fetching alerts set it to 0). Default: 20 |
max_jams |
Optional Maximum number of traffic jams to fetch (to avoid fetching traffic jams, set it to 0). Default: 20 |
{"status":"OK","request_id":"eb3f6ed3-db28-450d-9efb-f0d837e466d8","parameters":{"bottom_left":["40.17611721531038","44.517015590523954"],"top_right":["40.67611721531038","44.017015590523954"],"max_alerts":20,"max_jams":20},"data":{"alerts":[],"jams":[{"jam_id":"1326003144","type":"NONE","level":4,"severity":5,"line_coordinates":[{"lat":40.20926,"lon":44.503264},{"lat":40.208333,"lon":44.500861},{"lat":40.208006,"lon":44.50007},{"lat":40.20787,"lon":44.49974},{"lat":40.207726,"lon":44.499389},{"lat":40.206666,"lon":44.496761}],"start_location":null,"end_location":null,"speed_kmh":3.7,"length_meters":624,"delay_seconds":231,"block_alert_id":null,"block_alert_type":null,"block_alert_description":null,"block_alert_update_datetime_utc":null,"block_start_datetime_utc":null,"publish_datetime_utc":"2025-03-11T14:49:40.556Z","update_datetime_utc":"2025-03-11T14:52:13.483Z","country":"AM","city":"Yerevan","street":"Hovsep Emin str."},{"jam_id":"1325582778","type":"NONE","level":4,"severity":5,"line_coordinates":[{"lat":40.194372,"lon":44.495314},{"lat":40.194316,"lon":44.495105},{"lat":40.193718,"lon":44.493654},{"lat":40.193451,"lon":44.49301},{"lat":40.192976,"lon":44.491803},{"lat":40.192939,"lon":44.491632},{"lat":40.192914,"lon":44.491462},{"lat":40.192915,"lon":44.491448},{"lat":40.192927,"lon":44.491149},{"lat":40.193033,"lon":44.490714},{"lat":40.193099,"lon":44.490516},{"lat":40.193669,"lon":44.489049},{"lat":40.194371,"lon":44.487215}],"start_location":null,"end_location":null,"speed_kmh":7.24,"length_meters":766,"delay_seconds":291,"block_alert_id":null,"block_alert_type":null,"block_alert_description":null,"block_alert_update_datetime_utc":null,"block_start_datetime_utc":null,"publish_datetime_utc":"2025-03-11T14:47:05.375Z","update_datetime_utc":"2025-03-11T14:52:12.467Z","country":"AM","city":"Yerevan","street":"Orbeli Yeghbairneri str."},{"jam_id":"1326446516","type":"NONE","level":1,"severity":5,"line_coordinates":[{"lat":40.214346,"lon":44.43651},{"lat":40.215314,"lon":44.436654},{"lat":40.215777,"lon":44.436665},{"lat":40.216367,"lon":44.436589},{"lat":40.216972,"lon":44.436662},{"lat":40.217293,"lon":44.436786},{"lat":40.217444,"lon":44.436857},{"lat":40.217734,"lon":44.437094},{"lat":40.218064,"lon":44.437426},{"lat":40.218276,"lon":44.43764},{"lat":40.218899,"lon":44.438232},{"lat":40.219242,"lon":44.438627},{"lat":40.220066,"lon":44.439485},{"lat":40.220253,"lon":44.439601},{"lat":40.220649,"lon":44.439796},{"lat":40.221083,"lon":44.440228},{"lat":40.221183,"lon":44.4404},{"lat":40.221395,"lon":44.440741},{"lat":40.22207,"lon":44.441602},{"lat":40.222505,"lon":44.44212}],"start_location":null,"end_location":null,"speed_kmh":27.25,"length_meters":1072,"delay_seconds":65,"block_alert_id":null,"block_alert_type":null,"block_alert_description":null,"block_alert_update_datetime_utc":null,"block_start_datetime_utc":null,"publish_datetime_utc":"2025-03-11T14:52:13.167Z","update_datetime_utc":"2025-03-11T14:52:13.167Z","country":"AM","city":"Yerevan","street":"Silikian 7th str."},{"jam_id":"1326085142","type":"NONE","level":3,"severity":5,"line_coordinates":[{"lat":40.184489,"lon":44.453977},{"lat":40.184753,"lon":44.45258},{"lat":40.185098,"lon":44.450884},{"lat":40.1854,"lon":44.449147}],"start_location":null,"end_location":null,"speed_kmh":6.92,"length_meters":424,"delay_seconds":114,"block_alert_id":null,"block_alert_type":null,"block_alert_description":null,"block_alert_update_datetime_utc":null,"block_start_datetime_utc":null,"publish_datetime_utc":"2025-03-11T14:49:46.486Z","update_datetime_utc":"2025-03-11T14:52:19.275Z","country":"AM","city":"Yerevan","street":"Tichina str."}]}}
curl --location --request GET 'https://zylalabs.com/api/5083/urban+traffic+congestion+api/6477/jams+and+alerts?bottom_left=40.66615391742187,-74.13732147216798&top_right=40.772787404902594,-73.76818084716798&max_alerts=20&max_jams=20' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
This API is used by sending HTTP requests with parameters such as geographic location, you receive real-time traffic data from Waze, including information about traffic jams.
The Urban Traffic Congestion API is an interface that provides real-time data on vehicular flow in cities for traffic analysis and management.
The Urban Traffic Congestion API receives real-time traffic queries and returns data such as road conditions.
Route optimization: Adjusts navigation routes to avoid congestion and delays. Road event monitoring: Informs about special events that may affect traffic. Traffic pattern analysis: Studies traffic trends to improve urban planning. Integration with navigation applications: Provides updated data to improve user experience.
Pro Plan: 20 requests per second. Pro Plus Plan: 50 requests per second. Premium Plan: 50 requests per second. Elite Plan: 100 requests per second.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
The API returns detailed information about the age and history of a domain, including years, months and days since its creation, as well as expiration and update dates.
The Jams and Alerts endpoint returns real-time data on traffic jams and alerts within a specified geographic area. This includes details about the nature of the jams, their locations, and any relevant alerts affecting traffic conditions.
The key fields in the response data include "status," "request_id," "parameters" (which details the geographic area and limits), and "data" (which contains arrays for "alerts" and "jams" with specific incident details).
The response data is structured in JSON format. It includes a top-level object with status information, a unique request ID, parameters used for the query, and a data object containing arrays for alerts and jams.
The Jams and Alerts endpoint provides information on traffic jams, alerts related to road conditions, and any incidents that may impact traffic flow within the defined geographic area.
Users can customize their requests using parameters such as "bottom_left" and "top_right" for geographic boundaries, as well as "max_alerts" and "max_jams" to limit the number of results returned.
Data accuracy is maintained through continuous updates from reliable traffic monitoring sources, including real-time data feeds and user-reported incidents, ensuring that the information reflects current traffic conditions.
Typical use cases include real-time traffic monitoring, route optimization for navigation applications, urban planning analysis, and providing location-based marketing insights based on traffic patterns.
Users can analyze the "alerts" and "jams" arrays to identify traffic issues, adjust routes accordingly, and integrate this data into applications for enhanced user experiences and informed decision-making.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
11,584ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
3,541ms
Service Level:
100%
Response Time:
1,447ms
Service Level:
100%
Response Time:
8,511ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
1,865ms
Service Level:
100%
Response Time:
9,757ms
Service Level:
100%
Response Time:
3,312ms
Service Level:
100%
Response Time:
1,952ms
Service Level:
100%
Response Time:
224ms
Service Level:
100%
Response Time:
2,450ms
Service Level:
100%
Response Time:
415ms
Service Level:
100%
Response Time:
2,072ms
Service Level:
100%
Response Time:
1,056ms
Service Level:
100%
Response Time:
958ms
Service Level:
100%
Response Time:
134ms
Service Level:
100%
Response Time:
2,207ms
Service Level:
100%
Response Time:
1,521ms