Urban Traffic Congestion API

The Urban Traffic Congestion API provides users with access to real-time alerts and traffic jam information. Users can define a geographic area using latitude and longitude pairs, and retrieve relevant alerts and jams within that area. This can be useful for a wide range of applications, from traffic monitoring to location-based marketing.

About the API: 

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.

 

API Documentation

Endpoints


To use this endpoint, define a geographic area with latitude and longitude, and you will receive real-time traffic jam alerts and data.



                                                                            
GET https://zylalabs.com/api/5083/urban+traffic+congestion+api/6477/jams+and+alerts
                                                                            
                                                                        

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
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":"OK","request_id":"5e1daa2f-948c-443d-8095-ec3ec7e9715d","data":{"alerts":[{"alert_id":"1221252539","type":"ROAD_CLOSED","subtype":null,"reported_by":"ConstantinDancuNYC","description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:02:22.000Z","country":"US","city":"Manhattan, NY","street":"E Houston St","latitude":40.725364,"longitude":-73.996834,"num_thumbs_up":0,"alert_reliability":5,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1198452451","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"krzycholub","description":null,"image":null,"publish_datetime_utc":"2024-01-05T15:41:34.000Z","country":"US","city":"Jersey City, NJ","street":"Barrow St","latitude":40.720179,"longitude":-74.045089,"num_thumbs_up":29,"alert_reliability":10,"alert_confidence":5,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"74084699","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"New York State Department of Transportation","description":"Utility work on CR-659","image":null,"publish_datetime_utc":"2024-06-27T15:53:26.000Z","country":"US","city":"Kearny, NJ","street":"Pennsylvania Ave","latitude":40.739208,"longitude":-74.104437,"num_thumbs_up":4,"alert_reliability":10,"alert_confidence":2,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1215956171","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"Rfrsw101","description":null,"image":null,"publish_datetime_utc":"2024-09-17T21:00:10.000Z","country":"US","city":"Manhattan, NY","street":"E 44th St","latitude":40.751122,"longitude":-73.971263,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221670424","type":"JAM","subtype":"JAM_HEAVY_TRAFFIC","reported_by":"wongdi","description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:48:11.000Z","country":"US","city":"Manhattan, NY","street":"to Downtown / 34th to 35th Sts / 2nd Ave","latitude":40.746802,"longitude":-73.976106,"num_thumbs_up":1,"alert_reliability":8,"alert_confidence":1,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221727102","type":"HAZARD","subtype":"HAZARD_ON_ROAD_EMERGENCY_VEHICLE","reported_by":"HAAS Alert","description":"Ambulance on scene","image":null,"publish_datetime_utc":"2024-09-18T15:58:20.000Z","country":"US","city":"Manhattan, NY","street":"W 43rd St","latitude":40.760171,"longitude":-73.994678,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221682505","type":"POLICE","subtype":"POLICE_HIDING","reported_by":null,"description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:52:24.000Z","country":"US","city":"Manhattan, NY","street":"Bowery","latitude":40.723859,"longitude":-73.992799,"num_thumbs_up":2,"alert_reliability":9,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221615709","type":"JAM","subtype":"JAM_STAND_STILL_TRAFFIC","reported_by":null,"description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:41:29.000Z","country":"US","city":"Manhattan, NY","street":"E 57th St","latitude":40.759828,"longitude":-73.966519,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221660014","type":"JAM","subtype":"JAM_HEAVY_TRAFFIC","reported_by":"ronbadd3","description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:46:39.000Z","country":"US","city":"Manhattan, NY","street":"Vesey St","latitude":40.711516,"longitude":-74.008868,"num_thumbs_up":0,"alert_reliability":5,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1213213059","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"Be8el0ve","description":null,"image":null,"publish_datetime_utc":"2024-09-17T16:00:07.000Z","country":"US","city":"Manhattan, NY","street":"Grand St","latitude":40.719324,"longitude":-73.997303,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1079261444","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"krzycholub","description":null,"image":null,"publish_datetime_utc":"2024-09-01T13:34:43.000Z","country":"US","city":"Jersey City, NJ","street":"Baldwin Ave","latitude":40.730369,"longitude":-74.058233,"num_thumbs_up":7,"alert_reliability":10,"alert_confidence":3,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1213213083","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"Be8el0ve","description":null,"image":null,"publish_datetime_utc":"2024-09-17T16:00:08.000Z","country":"US","city":"Manhattan, NY","street":"Mulberry St","latitude":40.721951,"longitude":-73.996268,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221754896","type":"HAZARD","subtype":"HAZARD_ON_ROAD_EMERGENCY_VEHICLE","reported_by":"HAAS Alert","description":"Ambulance on scene","image":null,"publish_datetime_utc":"2024-09-18T15:58:18.000Z","country":"US","city":"Brooklyn, NY","street":"S 4th St","latitude":40.711478,"longitude":-73.961775,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1213213214","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"Be8el0ve","description":null,"image":null,"publish_datetime_utc":"2024-09-17T16:00:10.000Z","country":"US","city":"Manhattan, NY","street":"Centre St","latitude":40.719786,"longitude":-73.998524,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1220701456","type":"HAZARD","subtype":"HAZARD_ON_ROAD_POT_HOLE","reported_by":"JoyLovePeacePatience","description":null,"image":null,"publish_datetime_utc":"2024-09-18T13:56:55.000Z","country":"US","city":"Queens, NY","street":"160th St","latitude":40.758939,"longitude":-73.806067,"num_thumbs_up":1,"alert_reliability":7,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221764832","type":"POLICE","subtype":"POLICE_HIDING","reported_by":null,"description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:58:53.000Z","country":"US","city":"Brooklyn, NY","street":"Prospect Pl","latitude":40.677629,"longitude":-73.968689,"num_thumbs_up":0,"alert_reliability":5,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221551714","type":"JAM","subtype":null,"reported_by":null,"description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:35:20.000Z","country":"US","city":"Manhattan, NY","street":"Madison Ave","latitude":40.751781,"longitude":-73.980031,"num_thumbs_up":0,"alert_reliability":5,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1213213275","type":"ROAD_CLOSED","subtype":"ROAD_CLOSED_EVENT","reported_by":"Be8el0ve","description":null,"image":null,"publish_datetime_utc":"2024-09-17T16:00:11.000Z","country":"US","city":"Manhattan, NY","street":"Kenmare St","latitude":40.72159,"longitude":-73.997803,"num_thumbs_up":0,"alert_reliability":6,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1221740889","type":"POLICE","subtype":null,"reported_by":null,"description":null,"image":null,"publish_datetime_utc":"2024-09-18T15:57:06.000Z","country":"US","city":"Manhattan, NY","street":"West St","latitude":40.712867,"longitude":-74.014223,"num_thumbs_up":4,"alert_reliability":10,"alert_confidence":0,"near_by":null,"comments":[],"num_comments":0},{"alert_id":"1219952970","type":"HAZARD","subtype":"HAZARD_ON_ROAD_POT_HOLE","reported_by":"usa_8ouu1m37","description":null,"image":null,"publish_datetime_utc":"2024-09-18T12:40:57.000Z","country":"US","city":"Queens, NY","street":"127th St","latitude":40.667739,"longitude":-73.813045,"num_thumbs_up":3,"alert_reliability":9,"alert_confidence":1,"near_by":null,"comments":[],"num_comments":0}],"jams":[{"jam_id":"1203341192","type":"NONE","level":3,"severity":5,"line_coordinates":[{"lat":40.666987,"lon":-73.782221},{"lat":40.667031,"lon":-73.781674},{"lat":40.667238,"lon":-73.7784},{"lat":40.667363,"lon":-73.77622},{"lat":40.667404,"lon":-73.775264},{"lat":40.667421,"lon":-73.774298},{"lat":40.667401,"lon":-73.772538},{"lat":40.667315,"lon":-73.770768},{"lat":40.667261,"lon":-73.770142},{"lat":40.666791,"lon":-73.765877},{"lat":40.666022,"lon":-73.759},{"lat":40.665811,"lon":-73.757072},{"lat":40.665762,"lon":-73.75652},{"lat":40.665742,"lon":-73.756001},{"lat":40.665746,"lon":-73.75336},{"lat":40.665749,"lon":-73.749865}],"start_location":null,"end_location":null,"speed_kmh":19.6,"length_meters":2751,"delay_seconds":396,"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":"2024-09-18T15:29:04.572Z","update_datetime_utc":"2024-09-18T15:59:39.196Z","country":"US","city":"Queens, NY","street":"Belt Pkwy E"},{"jam_id":"1199310710","type":"NONE","level":3,"severity":5,"line_coordinates":[{"lat":40.707471,"lon":-74.004049},{"lat":40.707517,"lon":-74.003983},{"lat":40.708113,"lon":-74.003384},{"lat":40.708849,"lon":-74.002486},{"lat":40.709486,"lon":-74.001665},{"lat":40.709592,"lon":-74.001563},{"lat":40.7097,"lon":-74.001458},{"lat":40.710056,"lon":-74.001222},{"lat":40.710189,"lon":-74.001114},{"lat":40.711002,"lon":-74.00052}],"start_location":null,"end_location":null,"speed_kmh":6.76,"length_meters":496,"delay_seconds":152,"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":"2024-09-18T13:12:59.004Z","update_datetime_utc":"2024-09-18T15:59:42.356Z","country":"US","city":"Manhattan, NY","street":"Pearl St"},{"jam_id":"1203863520","type":"NONE","level":2,"severity":5,"line_coordinates":[{"lat":40.716226,"lon"...
                                                                                                                                                                                                                    
                                                                                                    

Jams And Alerts - CODE SNIPPETS


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' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Urban Traffic Congestion API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

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.

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
1,301ms

Category:


Related APIs