---
title: "Waze API: driving routes as JSON | Perceptlayer"
description: "Waze API for driving routes with live ETA, traffic delay, distance, tolls and turn-by-turn steps between two points, as JSON. 2 credits per successful call."
url: https://perceptlayer.com/apis/waze
---

[APIs](https://perceptlayer.com/apis) / [Search engines](https://perceptlayer.com/verticals/search) / Waze

from 2 credits per call 1 endpoint 17 datapoints 

# Waze API

Waze API for driving routes with live ETA, traffic delay, distance, tolls and turn-by-turn steps between two points, as JSON. 2 credits per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Waze

GET /v1/waze/route?from\_lat=52.520006&from\_lon=13.404954&to\_lat=52.3906&to\_lon=13.0645&alternatives=2&include\[\]=steps 

```
{
  "success": true,
  "data": {
    "from": {
      "lat": 52.520006,
      "lon": 13.404954
    },
    "to": {
      "lat": 52.3906,
      "lon": 13.0645
    },
    "vehicle_type": "car",
    "avoid_tolls": false,
    "avoid_ferries": false,
    "passes": "all",
    "count": 2,
    "routes": [
      {
        "rank": 1,
        "distance_m": 34944,
        "eta_s": 3001,
        "free_flow_s": 2051,
        "delay_s": 950,
        "toll": false,
        "toll_meters": 0,
        "ferry": false,
        "ferry_meters": 0,
        "main_streets": [
          "A115 - E51",
          "L40 - Nuthestraße",
          "B2 - B5 - Straße des 17. Juni"
        ],
        "road_types": {
          "major_highway": 8579,
          "street": 176,
          "primary_street": 2992,
          "ramp": 2047,
          "freeway": 17515,
          "minor_highway": 3635
        },
        "restricted_areas": [
          "Umweltzone"
        ],
        "passes": [
          "germany-umweltplakette-grun"
        ],
        "passes_through_danger_area": false,
        "time_zone": "Europe/Berlin",
        "bbox": {
          "min_lat": 52.37223,
          "min_lon": 13.0645,
          "max_lat": 52.52005,
          "max_lon": 13.40464
        },
        "steps": [
          {
            "instruction": "depart",
            "street": "B2 - B5 - Karl-Liebknecht-Straße",
            "lat": 52.520047,
            "lon": 13.404642,
            "distance_m": 1376,
            "duration_s": 213
          },
          {
            "instruction": "turn_right",
            "street": "B2 - B5 - Unter den Linden",
            "lat": 52.516951,
            "lon": 13.385771,
            "distance_m": 224,
            "duration_s": 36
          },
          {
            "instruction": "turn_left",
            "street": "Schadowstraße",
            "lat": 52.517722,
            "lon": 13.383791,
            "distance_m": 300,
            "duration_s": 92
          }
        ]
      },
      {
        "rank": 2,
        "distance_m": 39514,
        "eta_s": 3313,
        "free_flow_s": 2273,
        "delay_s": 1040,
        "toll": false,
        "toll_meters": 0,
        "ferry": false,
        "ferry_meters": 0,
        "main_streets": [
          "A115 - E51",
          "A100",
          "L40 - Nuthestraße"
        ],
        "road_types": {
          "major_highway": 1104,
          "primary_street": 4610,
          "minor_highway": 8506,
          "freeway": 23596,
          "ramp": 1698
        },
        "restricted_areas": [
          "Umweltzone"
        ],
        "passes": [
          "germany-umweltplakette-grun"
        ],
        "passes_through_danger_area": false,
        "time_zone": "Europe/Berlin",
        "bbox": {
          "min_lat": 52.37223,
          "min_lon": 13.0645,
          "max_lat": 52.55057,
          "max_lon": 13.40464
        },
        "steps": [
          {
            "instruction": "depart",
            "street": "B2 - B5 - Karl-Liebknecht-Straße",
            "lat": 52.520047,
            "lon": 13.404642,
            "distance_m": 873,
            "duration_s": 100
          },
          {
            "instruction": "turn_right",
            "street": "B2 - B5 - Unter den Linden",
            "lat": 52.517369,
            "lon": 13.393135,
            "distance_m": 829,
            "duration_s": 122
          },
          {
            "instruction": "turn_left",
            "street": "Tucholskystraße",
            "lat": 52.524372,
            "lon": 13.392539,
            "distance_m": 405,
            "duration_s": 81
          }
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "route_planning",
    "request_id": "req_85eb34aefd584f85ad3a13bb4e250e48",
    "credits_charged": 2,
    "credits_remaining": 1788
  }
}
```

200 OK JSON X-Credits-Used: 2

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `route`: the fields and shapes you will get, shortened to 2 items.

| # | rank integer | distance\_m integer | eta\_s integer | free\_flow\_s integer | delay\_s integer | toll boolean | toll\_meters integer | ferry boolean | ferry\_meters integer | main\_streets string\[\] | road\_types object | restricted\_areas string\[\] | passes string\[\] | passes\_through\_danger\_area boolean | time\_zone string | bbox object | steps object\[\] |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 1 | 34944 | 3001 | 2051 | 950 | false | 0 | false | 0 | \[3 items\] | {6 fields} | \[1 item\] | \[1 item\] | false | Europe/Berlin | {4 fields} | \[3 items\] |
| 2 | 2 | 39514 | 3313 | 2273 | 1040 | false | 0 | false | 0 | \[3 items\] | {5 fields} | \[1 item\] | \[1 item\] | false | Europe/Berlin | {4 fields} | \[3 items\] |

Recorded from our API · 2 items shown · 17 datapoints per item GET /v1/waze/route?from\_lat=52.520006&from\_lon=13.404954&to\_lat=52.3906&to\_lon=13.0645&alternatives=2&include\[\]=steps

17 datapoints

### Identity

-   road\_types object

### Location

-   main\_streets string\[\]
-   restricted\_areas string\[\]
-   passes\_through\_danger\_area boolean

### Other

-   rank integer
-   distance\_m integer
-   eta\_s integer
-   free\_flow\_s integer
-   delay\_s integer
-   toll boolean
-   toll\_meters integer
-   ferry boolean
-   ferry\_meters integer
-   passes string\[\]
-   time\_zone string
-   bbox object
-   steps object\[\]

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/waze/route?from_lat=52.520006&from_lon=13.404954&to_lat=52.3906&to_lon=13.0645&alternatives=2&include[]=steps" \
  -H "X-API-Key: $API_KEY"
```

Waze · 1 endpoint

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/waze/route`](https://perceptlayer.com/apis/waze/route) | `from_lat` `from_lon` `to_lat` `to_lon` +6 optional | `from` `to` `vehicle_type` `avoid_tolls` `avoid_ferries` `passes` +1 more | 2 credits |

Overview

## About the Waze API

## What you can get

The Waze API returns Waze driving routes as JSON through 1 endpoint.

-   **Route:** `route` takes a `from_lat`, `from_lon`, `to_lat` and `to_lon`, with `alternatives`, `avoid_tolls`, `avoid_ferries`, `vehicle_type` (car, motorcycle or taxi), `passes[]` (AT, CH, CZ, HU, SI, SK, ALL or NONE) and `include[]` (geometry or steps).

The recorded `route` from 52.520006, 13.404954 to 52.3906, 13.0645 with `alternatives=2` and `include[]=steps` returns `count` and `routes`, each with `rank`, `distance_m`, `eta_s`, `free_flow_s`, `delay_s`, `toll`, `toll_meters`, `ferry`, `ferry_meters`, `main_streets`, `road_types`, `restricted_areas`, `passes`, `time_zone`, `bbox` and `steps`. Each step has an `instruction`, `street`, `lat`, `lon`, `distance_m` and `duration_s`.

## How a call works

Ask for a route: `GET /v1/waze/route?from_lat=52.520006&from_lon=13.404954&to_lat=52.3906&to_lon=13.0645&alternatives=2&include[]=steps` with your key in the `X-API-Key` header. Compare `eta_s` with `free_flow_s`, or read `delay_s`, to see how much traffic adds to each route. Every successful call costs 2 credits; failed calls cost nothing.

Search engines JSON REST MCP

### More search engines APIs

[Apple Maps](https://perceptlayer.com/apis/apple-maps) [Baidu](https://perceptlayer.com/apis/baidu) [Bing](https://perceptlayer.com/apis/bing) [Brave Search](https://perceptlayer.com/apis/brave) [DuckDuckGo](https://perceptlayer.com/apis/duckduckgo) [Google Events](https://perceptlayer.com/apis/google-events) [Google Finance](https://perceptlayer.com/apis/google-finance) [Google Forums](https://perceptlayer.com/apis/google-forums) [Google Images](https://perceptlayer.com/apis/google-images) [Google Lens](https://perceptlayer.com/apis/google-lens) [Google Local](https://perceptlayer.com/apis/google-local) [Google Local Services](https://perceptlayer.com/apis/google-local-services)

Use cases

### Estimate live drive times between two points

`Use the Waze API to estimate live drive times between two points` 

### Measure traffic delay on a route through the day

`Use the Waze API to measure traffic delay on a route through the day` 

### Compare alternative routes by distance, time and tolls

`Use the Waze API to compare alternative routes by distance, time and tolls` 

### Plan routes for motorcycles or taxis with \`vehicle\_type\`

`` Use the Waze API to plan routes for motorcycles or taxis with `vehicle_type` `` 

FAQ

## Questions

**How much does the Waze API cost?**

Each successful \`route\` call costs two credits, however many alternatives it returns. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I avoid tolls or ferries?**

Yes. Pass \`avoid\_tolls=true\` or \`avoid\_ferries=true\` to \`route\`. Each route also reports \`toll\`, \`toll\_meters\`, \`ferry\` and \`ferry\_meters\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Do I need a Waze account?**

No. You call this Waze API with your Perceptlayer key in the \`X-API-Key\` header, with no Waze login.

**Is this the official Waze API?**

No. Perceptlayer is an independent service and is not affiliated with Waze. It returns Waze data as JSON with a Perceptlayer key, so there is no Waze developer account, app review or partner approval to get first. It only reads data: if Waze has an official API and you need to act on your own Waze account, such as posting, managing orders or reading private data, use that one.

**Should I build a Waze scraper instead?**

You can, but a Waze scraper is code you maintain: page changes break it, requests get blocked, and Waze's terms govern how you collect data. The Waze API gives you 1 endpoint of named JSON fields for 2 credits per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Waze API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
