You need to show road hazards and traffic jams for a specific area, but first you need a request that returns the right geographic slice. By the end of this guide, you can call the Waze Data API for a rectangular area, read the returned alert fields, and use a separate endpoint to get driving directions with alerts along possible routes.
What the API returns
The Waze Data API provides real-time alerts and jam information within a rectangle defined by bottom-left and top-right latitude and longitude pairs. Supported alert types include accidents, road blocks, hazards, traffic jams, police, and more.
A dispatch dashboard can use area alerts to give an operator a view of reported conditions. A route-planning application can instead request driving directions and inspect alerts along the possible routes. These are different queries: one describes a geographic area, while the other describes a journey between two points.
The examples below use an area in Great Britain. The response includes alert coordinates, a type and subtype, a publication timestamp, and other information that can help an application display a report.
Getting started on Zyla API Hub
Open the Waze Data API listing on Zyla API Hub. Create a free account, then click Subscribe or Start Free Trial when available and obtain your API key. Check the API page for current access options and pricing; first-API access is described as a 7-day trial or 50 requests.
Zyla API Hub uses a subscription and quota model, not pay-per-call billing. Its catalog contains more than 10,000 public APIs, and the Hub uses one account and API key across its APIs.
For the requests in this guide, send the key in the Authorization header as Bearer YOUR_API_KEY. Replace YOUR_API_KEY with your key before running the examples, and keep the key out of client-side code and source control.
Available endpoints
Alerts and Jams
Use this endpoint to request alerts and jam information for a rectangular geographic area:
Method: GET
Request URL: https://zylalabs.com/api/4814/waze-data-api/6003/alerts-and-jams
The request takes two required coordinate-pair strings and two optional limits:
bottom_left: required bottom-left latitude and longitude pair. The example uses51.2800,-0.5100.top_right: required top-right latitude and longitude pair. The example uses51.5000,-0.0800.max_alerts: optional string. The example uses100.max_jams: optional string. The example uses0.
Keep each pair in latitude, longitude order. The sample URL encodes each comma as %2C. Its max_jams value is 0, so use the example to inspect alerts rather than as a demonstration of a returned jam record.
Run the following request after replacing the API key:
curl -s -X GET "https://zylalabs.com/api/4814/waze-data-api/6003/alerts-and-jams?bottom_left=51.2800%2C-0.5100&top_right=51.5000%2C-0.0800&max_alerts=100&max_jams=0" \
-H "Authorization: Bearer YOUR_API_KEY"
Driving Directions
Use Driving Directions when the question is about a trip rather than a rectangle. It returns routes or driving directions, including alerts along each possible route. The endpoint also supports setting a wanted arrival time; consult the API listing for how to configure it.
Method: GET
Request URL: https://zylalabs.com/api/4814/waze-data-api/6004/driving-directions
The documented required parameters are source_coordinates and destination_coordinates, both coordinate-pair strings. The provided examples are 32.0852999,34.78176759999999 and 32.7940463,34.989571, respectively.
The example route response includes route_name, length_meters, duration_seconds, and an alerts array. Route length is expressed in meters and duration in seconds. The alert objects shown for a route include type, subtype, latitude, and longitude.
Read the area-alert response
The following is the official response excerpt for the Alerts and Jams request above. It is truncated in the source, so it is illustrative rather than a complete JSON document to parse.
{
"status": "OK",
"request_id": "86b7f40f-b386-4aee-af95-274974d93184",
"parameters": {
"bottom_left": [
"51.2800",
"-0.5100"
],
"top_right": [
"51.5000",
"-0.0800"
],
"max_alerts": 100,
"max_jams": 0
},
"data": {
"alerts": [
{
"alert_id": "alert-1851823848/7b5e52cb-9549-4955-a117-ce19dd01fe9b",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
"reported_by": "Causeway one.network",
"description": ".",
"image": null,
"publish_datetime_utc": "2026-07-22T08:30:00.000Z",
"country": "GB",
"city": "Mole Valley",
"street": null,
"latitude": 51.281508,
"longitude": -0.369863,
"num_thumbs_up": 7,
"alert_reliability": 0,
"alert_confidence": 0,
"near_by": null,
"provider": "Elgin (Road works)",
"provider_id": "151505923",
"comments": [],
"num_comments": 0
},
{
"alert_id": "alert-1191763163/60f6957d-0668-49d6-b43f-710177584187",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
"reported_by": "Causeway one.network",
"description": ".",
"image": null,
"publish_datetime_utc": "2026-05-15T13:00:00.000Z",
"country": "GB",
"city": "Mole Valley",
"street": "Durleston Park Dr",
"latitude": 51.280691,
"longitude": -0.365612,
"num_thumbs_up": 39,
"alert_reliability": 0,
"alert_confidence": 0,
"near_by": null,
"provider": "Elgin (Road works)",
"provider_id": "149944301",
"comments": [],
"num_comments": 0
},
{
"alert_id": "alert-1618880859/60722796-8030-486e-913c-4e683837b754",
"type": "ROAD_CLOSED",
"subtype": null,
"reported_by": "ClosureMonitor",
"description": "Closed until Jul 31 for roadworks. Ref #151583431",
"image": null,
"publish_…
Use data.alerts to iterate through the alerts shown in this response. An alert_id identifies each report; type and subtype describe its category. The latitude and longitude let you place it on a map.
publish_datetime_utc is a UTC timestamp; the sample uses the Z suffix. Display it in the operator’s preferred timezone if needed, but retain the UTC value when comparing reports.
Several fields may be null in the example, including street and subtype. The description can also be as short as a period. Build the display around fields that are present rather than assuming every report has a useful street name or description.
The response also echoes request parameters and includes a request_id. Keep that identifier with your request logs when troubleshooting. The sample includes reliability and confidence fields, but the excerpt does not define how to interpret their values; avoid treating them as a documented scoring scale.
Call the area endpoint from Python
This sample uses Python’s standard library and the same URL and parameters as the curl request. It reads the live response rather than the truncated excerpt above, then prints the fields needed for a simple alert list.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = (
"https://zylalabs.com/api/4814/waze-data-api/6003/alerts-and-jams"
"?bottom_left=51.2800%2C-0.5100"
"&top_right=51.5000%2C-0.0800"
"&max_alerts=100"
"&max_jams=0"
)
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
try:
with urlopen(request) as response:
payload = json.load(response)
except HTTPError as exc:
raise SystemExit(f"HTTP request failed: {exc.code}") from exc
except URLError as exc:
raise SystemExit(f"Connection failed: {exc.reason}") from exc
print("Status:", payload.get("status"))
print("Request ID:", payload.get("request_id"))
for alert in payload.get("data", {}).get("alerts", []):
print(
alert.get("alert_id"),
alert.get("type"),
alert.get("subtype"),
alert.get("latitude"),
alert.get("longitude"),
alert.get("publish_datetime_utc"),
)
Replace the key before running the script. For an application, load the key from your deployment’s secret storage instead of embedding it in the file. The example handles HTTP and connection failures separately; it does not assume that every failure has the same response body.
The sample’s max_alerts and max_jams values are part of the request. When adapting it for an application that needs jam information, choose the appropriate optional limit and inspect the actual response before designing a jam display. The supplied response excerpt shows alerts, not the structure of a returned jam.
Put alerts to work
Area monitoring and route review
For an operations map, request the rectangle covering the area an operator is reviewing. Plot each alert using its coordinates, show the type and publication time, and make the street optional. If you refresh the view, consider both the need for current information and your subscription quota.
For a trip review, use Driving Directions with the source and destination. Examine alerts within each possible route alongside its length and duration. That keeps route-specific alerts separate from the broader set of reports in an area.
Do not interpret the absence of a useful description as a reason to discard an alert: the sample construction reports have a description of ., but still include a type, subtype, location, and provider. Likewise, a missing subtype should not prevent a road-closure report from appearing in a list.
Calling from an AI agent
For an MCP-compatible client, configure the Zyla endpoint as https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your key. It works with Claude Code, Cursor, Windsurf, and other MCP-compatible clients. See MCP for the endpoint.
An agent can use the area query to retrieve reports for a defined rectangle, then summarize their types and locations. Give it the coordinate bounds explicitly, and have it distinguish returned data from any interpretation of what the reports mean for a journey.
FAQ
How do I specify the area for alerts and jams?
Pass bottom_left and top_right as latitude, longitude strings. Together they define the rectangular area for the Alerts and Jams request.
Can I get alerts for a particular driving route?
Yes. The Driving Directions endpoint accepts source and destination coordinates and returns possible routes with alerts along each route.
What timezone does an alert’s publication time use?
The response field is publish_datetime_utc. The sample timestamps use UTC and end in Z.
Does the example request show jam records?
No. It sets max_jams to 0, and the supplied response excerpt shows alert records. Inspect a live response configured for your needs before relying on a particular jam response structure.
How is access billed?
Access uses a subscription and quota model rather than pay-per-call. Check the listing for current access options and pricing.
Ready to test the rectangle against live data? Create a free Zyla API Hub account, obtain your API key, and Start 7-day trial on Waze Data API when available.