# Waze API (`openweb-ninja/waze`) Actor

Get alerts such as accidents, hazards, police, traffic jams, and navigation / driving directions from Waze / Google in real-time.

- **URL**: https://apify.com/openweb-ninja/waze.md
- **Developed by:** [OpenWeb Ninja](https://apify.com/openweb-ninja) (community)
- **Categories:** Travel, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 api requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Waze API

Waze API is a fast and reliable API for real-time traffic alerts and driving directions from Waze (Google). It returns alerts, routes, and venues as structured JSON via REST.

What it returns: real-time alerts and traffic jams (accidents, hazards, police, and more), driving directions, venue search, and autocomplete.

This actor runs the same Waze API that developers use on RapidAPI and OpenWeb Ninja, with the same endpoints, parameters and output.

### What you can do with it

- Monitor live traffic alerts (accidents, hazards, police, road closures) and jams in any area
- Get real-time driving directions and travel times for logistics and dispatch
- Search venues and places with autocomplete for location features
- Feed traffic dashboards, fleet tools and navigation apps
- Analyse road incidents and congestion over time for research

### Endpoints

Pick the endpoint in the **Endpoint** field. Each run makes one call to that endpoint and writes its results to the dataset.

#### Alerts

`GET /alerts`

Get real-time alerts from Waze in a geographic rectangular area by bottom-left and top-right latitude, longitude pairs, or by center and radius. Supports all Waze alert types including: accidents, road blocks, hazards, police, and more.

| Parameter | Required | Description |
|---|---|---|
| `bottom_left` | Yes | Bottom-left corner of the geographic rectangular area for which to get alerts. Specified as latitude, longitude pair. Required if center and radius are not specified. |
| `top_right` | Yes | Top-right corner of the geographic rectangular area for which to get alerts. Specified as latitude, longitude pair. Required if center and radius are not specified. |
| `center` | No | The center point of the area for which to return alerts - specified as latitude, longitude pair. Required if bottom_left and top_right are not specified. |
| `radius` | No | The radius of the area for which to return alerts. Required if bottom_left and top_right are not specified. |
| `radius_units` | No | The unit of measurement for the radius parameter. Values: `KM`, `MI`. Default: `KM`. |
| `max_alerts` | No | Maximum number of alerts to return (1-200). Default: `20`. |
| `alert_types` | No | Only return alerts of specific types. Multiple alert types can be specified as a comma (,) separated list. |
| `alert_subtypes` | No | Only return alerts of specific subtypes types. Multiple alert subtypes can be specified as a comma (,) separated list. |

#### Jams

`GET /jams`

Get real-time traffic jams from Waze in a geographic rectangular area by bottom-left and top-right latitude, longitude pairs, or by center and radius.

| Parameter | Required | Description |
|---|---|---|
| `bottom_left` | Yes | Bottom-left corner of the geographic rectangular area for which to get traffic jams. Specified as latitude, longitude pair. Required if center and radius are not specified. |
| `top_right` | Yes | Top-right corner of the geographic rectangular area for which to get traffic jams. Specified as latitude, longitude pair. Required if center and radius are not specified. |
| `center` | No | The center point of the area for which to return traffic jams - specified as latitude, longitude pair. Required if bottom_left and top_right are not specified. |
| `radius` | No | The radius of the area for which to return traffic jams. Required if bottom_left and top_right are not specified. |
| `radius_units` | No | The unit of measurement for the radius parameter. Values: `KM`, `MI`. Default: `KM`. |
| `max_jams` | No | Maximum number of traffic jams to return (1-800). Default: `20`. |

#### Driving Directions

`GET /driving-directions`

Get routes / driving directions from Waze, including alerts along each possible route. Supports setting the wanted arrival time and routing with toll passes / vignettes.

| Parameter | Required | Description |
|---|---|---|
| `source_coordinates` | Yes | Geographic coordinates (latitude, longitude pair) of the starting point |
| `destination_coordinates` | Yes | Geographic coordinates (latitude, longitude pair) of the destination |
| `return_route_coordinates` | No | Whether to return route coordinate pairs (route_coordinates field) |
| `toll_passes` | No | Route as if the driver holds all toll passes and vignettes, like the Toll passes setting in the Waze app. By default, Waze avoids roads that require a pass or vignette (e.g. Default: `false`. |
| `arrival_timestamp` | No | Unix-timestamp (seconds since epoch) of the arrival time (in case not specified directions will be returned for current time) |

#### Venues

`GET /venues`

Get venues in geographic rectangular area by bottom-left and top-right latitude, longitude pairs.

| Parameter | Required | Description |
|---|---|---|
| `bottom_left` | Yes | Bottom-left corner of the geographic rectangular area for which to get venues. Specified as latitude, longitude pair. |
| `top_right` | Yes | Top-right corner of the geographic rectangular area for which to get venues. Specified as latitude, longitude pair. |
| `categories` | No | Only return venues in specific categories. Multiple alert types can be specified as a comma (,) separated list. |
| `zoom_level` | No | Waze zoom level from 1-4 (4 is most zoomed in). |

#### Autocomplete

`GET /autocomplete`

Waze autocomplete/type-ahead functionality for places/POI, locations and addresses.  Accepts a query, an optional location bias coordinates, and a language parameter and returns place name,  address and location (latitude, longitude pair).

| Parameter | Required | Description |
|---|---|---|
| `q` | Yes | Free-text geographic query. |
| `language` | No | The language of the results. See https://wazeopedia.waze.com/wiki/USA/Countries_and_Languages for a list of supported languages. |
| `coordinates` | Yes | Geographic coordinates (latitude, longitude) bias. Highly recommended to use for getting accurate results. |

### Example input

```json
{
  "endpoint": "/alerts",
  "bottom_left": "40.66615391742187,-74.13732147216798",
  "top_right": "40.772787404902594,-73.76818084716798"
}
```

### Example output

One dataset item per result. A Alerts item looks like this (trimmed):

```json
{
  "alert_id": "alert-45095957/20160b54-8e2e-4a71-8e72-792f0de183fe",
  "type": "HAZARD",
  "subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
  "reported_by": "NYC Open Data",
  "description": "OCCUPANCY OF ROADWAY AS STIPULATED",
  "image": null,
  "publish_datetime_utc": "2026-08-26T04:00:00.000Z",
  "country": "US",
  "city": "Brooklyn",
  "street": "Linden Blvd",
  "latitude": 40.669322,
  "longitude": -73.863347,
  "num_thumbs_up": 115,
  "alert_reliability": 0,
  "alert_confidence": 0,
  "report_mood": null,
  "near_by": null,
  "comments": [],
  "num_comments": 0
}
```

The run's key-value store `OUTPUT` record holds the request parameters, the request id and any non-list fields of the response (for example a pagination cursor).

### Pricing

Pay per event: you pay per API request, at the same rates as our API plans. Most runs are one request; some parameters (such as fetching several pages at once) count as several, exactly as they do on the API.

| Apify plan | Price per 1,000 requests |
|---|---|
| Free | $5.00 |
| Starter (Bronze) | $2.50 |
| Scale (Silver) | $1.50 |
| Business (Gold) and above | $0.75 |

A request that fails is not charged.

### Using it from code

Run it through the [Apify API](https://docs.apify.com/api/v2) or a client library, with the input above as the JSON body:

```bash
curl -X POST "https://api.apify.com/v2/acts/openweb-ninja~waze/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/alerts","bottom_left":"40.66615391742187,-74.13732147216798","top_right":"40.772787404902594,-73.76818084716798"}'
```

Need higher volume or a direct REST API? Waze API is also available as an API on [OpenWeb Ninja](https://www.openwebninja.com/api/waze) and [RapidAPI](https://rapidapi.com/letscrape-6bRBa3QguO5/api/waze).

### Support

For custom plans, high volumes or anything else:

- Email: support@openwebninja.com
- Discord: https://discord.gg/wxJxGsZgha

# Actor input Schema

## `endpoint` (type: `string`):

Which endpoint of the API to call. Each endpoint uses the parameters listed in its section below; parameters of other endpoints are ignored.

## `bottom_left` (type: `string`):

Bottom-left corner of the geographic rectangular area for which to get alerts.<br>  Specified as latitude, longitude pair. Required if center and radius are not specified.<br><br><em>Used by: Alerts, Jams, Venues. Required for Alerts, Jams, Venues.</em>

## `top_right` (type: `string`):

Top-right corner of the geographic rectangular area for which to get alerts.<br>  Specified as latitude, longitude pair. Required if center and radius are not specified.<br><br><em>Used by: Alerts, Jams, Venues. Required for Alerts, Jams, Venues.</em>

## `center` (type: `string`):

The center point of the area for which to return alerts - specified as latitude, longitude pair. Required if bottom_left and top_right are not specified.<br><br><em>Used by: Alerts, Jams.</em>

## `radius` (type: `string`):

The radius of the area for which to return alerts. Required if bottom_left and top_right are not specified.<br><br><em>Used by: Alerts, Jams.</em>

## `radius_units` (type: `string`):

The unit of measurement for the radius parameter.<br><br><em>Used by: Alerts, Jams.</em>

## `max_alerts` (type: `integer`):

Maximum number of alerts to return (1-200).<br><br><em>Used by: Alerts.</em>

## `alert_types` (type: `string`):

Only return alerts of specific types. Multiple alert types can be specified as a comma (,) separated list.<br><br><em>Used by: Alerts.</em>

## `alert_subtypes` (type: `string`):

Only return alerts of specific subtypes types. Multiple alert subtypes can be specified as a comma (,) separated list.<br><br><em>Used by: Alerts.</em>

## `max_jams` (type: `integer`):

Maximum number of traffic jams to return (1-800).<br><br><em>Used by: Jams.</em>

## `source_coordinates` (type: `string`):

Geographic coordinates (latitude, longitude pair) of the starting point<br><br><em>Used by: Driving Directions. Required for Driving Directions.</em>

## `destination_coordinates` (type: `string`):

Geographic coordinates (latitude, longitude pair) of the destination<br><br><em>Used by: Driving Directions. Required for Driving Directions.</em>

## `return_route_coordinates` (type: `boolean`):

Whether to return route coordinate pairs (route_coordinates field)<br><br><em>Used by: Driving Directions.</em>

## `toll_passes` (type: `boolean`):

Route as if the driver holds all toll passes and vignettes, like the Toll passes setting in the Waze app. By default, Waze avoids roads that require a pass or vignette (e.g. motorways in Czech Republic, Austria, Switzerland), which can produce slower routes.<br><br><em>Used by: Driving Directions.</em>

## `arrival_timestamp` (type: `integer`):

Unix-timestamp (seconds since epoch) of the arrival time (in case not specified directions will be returned for current time)<br><br><em>Used by: Driving Directions.</em>

## `categories` (type: `string`):

Only return venues in specific categories. Multiple alert types can be specified as a comma (,) separated list.<br><br><em>Used by: Venues.</em>

## `zoom_level` (type: `string`):

Waze zoom level from 1-4 (4 is most zoomed in).<br><br><em>Used by: Venues.</em>

## `q` (type: `string`):

Free-text geographic query.<br><br><em>Used by: Autocomplete. Required for Autocomplete.</em>

## `language` (type: `string`):

The language of the results. See https://wazeopedia.waze.com/wiki/USA/Countries_and_Languages for a list of supported languages.<br><br><em>Used by: Autocomplete.</em>

## `coordinates` (type: `string`):

Geographic coordinates (latitude, longitude) bias. Highly recommended to use for getting accurate results.<br><br><em>Used by: Autocomplete. Required for Autocomplete.</em>

## Actor input object example

```json
{
  "endpoint": "/alerts",
  "bottom_left": "40.66615391742187,-74.13732147216798",
  "top_right": "40.772787404902594,-73.76818084716798",
  "radius_units": "KM",
  "max_alerts": 20,
  "max_jams": 20,
  "source_coordinates": "32.0852999,34.78176759999999",
  "destination_coordinates": "32.7940463,34.989571",
  "toll_passes": false,
  "q": "sunn",
  "coordinates": "37.376754,-122.023350"
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per result of the API call.

## `summary` (type: `string`):

Endpoint, parameters, request id, billed requests and any non-list response fields (such as a pagination cursor).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "bottom_left": "40.66615391742187,-74.13732147216798",
    "top_right": "40.772787404902594,-73.76818084716798",
    "max_alerts": 20,
    "max_jams": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("openweb-ninja/waze").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "bottom_left": "40.66615391742187,-74.13732147216798",
    "top_right": "40.772787404902594,-73.76818084716798",
    "max_alerts": 20,
    "max_jams": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("openweb-ninja/waze").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "bottom_left": "40.66615391742187,-74.13732147216798",
  "top_right": "40.772787404902594,-73.76818084716798",
  "max_alerts": 20,
  "max_jams": 20
}' |
apify call openweb-ninja/waze --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,openweb-ninja/waze"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wgJk5D9PKyIJSpWXQ/builds/Wi8LVcaH4WniTkOX9/openapi.json
