AZ511 API

Transportation / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

AZ511 is the official Arizona Department of Transportation traffic data API providing real-time road conditions, incidents, and camera information for Arizona highways. It is useful for building local traffic apps or commute tools focused on the Arizona road network. An API key is required and can be requested through the AZ511 developer portal.

💡

Beginner Tip

Start by querying the /events endpoint to see active incidents and road closures as it is the most frequently updated resource. Filter by event_type to separate accidents, construction, and weather events.

Available Data

AZ511 data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

JSON Response
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

ID Unique identifier for the traffic event.
EventType Category of the event such as ACCIDENT, CONSTRUCTION, or WEATHER.
Severity Impact level of the event on traffic flow such as LOW, MEDIUM, or HIGH.
RoadwayName Name or number of the affected road or highway.
Latitude Geographic latitude of the event location.
Longitude Geographic longitude of the event location.

Implementation Example

const url = "https://www.az511.com/developers/doc";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden API key is missing or has not been approved yet.
Include key=YOUR_API_KEY in the query string and ensure your request has been approved by the AZ511 team.
No events returned There are no active incidents on Arizona highways at the time of the request.
This is a valid empty response; implement logic to display a no active events message to users.
Malformed JSON Occasional server-side formatting issues can occur.
Wrap your JSON parse call in a try-catch and retry the request if parsing fails.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Transportation
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →