{
  "openapi": "3.0.1",
  "info": {
    "title": "Waze API",
    "description": "Get alerts such as accidents, hazards, police, traffic jams, and navigation / driving directions from Waze / Google in real-time.",
    "version": "1.0",
    "x-build-id": "Wi8LVcaH4WniTkOX9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openweb-ninja~waze/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openweb-ninja-waze",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/openweb-ninja~waze/runs": {
      "post": {
        "operationId": "runs-sync-openweb-ninja-waze",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/openweb-ninja~waze/run-sync": {
      "post": {
        "operationId": "run-sync-openweb-ninja-waze",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "endpoint"
        ],
        "properties": {
          "endpoint": {
            "title": "Endpoint",
            "enum": [
              "/alerts",
              "/jams",
              "/driving-directions",
              "/venues",
              "/autocomplete"
            ],
            "type": "string",
            "description": "Which endpoint of the API to call. Each endpoint uses the parameters listed in its section below; parameters of other endpoints are ignored.",
            "default": "/alerts"
          },
          "bottom_left": {
            "title": "Bottom left",
            "type": "string",
            "description": "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>",
            "default": "40.66615391742187,-74.13732147216798"
          },
          "top_right": {
            "title": "Top right",
            "type": "string",
            "description": "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>",
            "default": "40.772787404902594,-73.76818084716798"
          },
          "center": {
            "title": "Center",
            "type": "string",
            "description": "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": {
            "title": "Radius",
            "type": "string",
            "description": "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": {
            "title": "Radius units",
            "enum": [
              "KM",
              "MI"
            ],
            "type": "string",
            "description": "The unit of measurement for the radius parameter.<br><br><em>Used by: Alerts, Jams.</em>",
            "default": "KM"
          },
          "max_alerts": {
            "title": "Max alerts",
            "type": "integer",
            "description": "Maximum number of alerts to return (1-200).<br><br><em>Used by: Alerts.</em>"
          },
          "alert_types": {
            "title": "Alert types",
            "type": "string",
            "description": "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": {
            "title": "Alert subtypes",
            "type": "string",
            "description": "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": {
            "title": "Max jams",
            "type": "integer",
            "description": "Maximum number of traffic jams to return (1-800).<br><br><em>Used by: Jams.</em>"
          },
          "source_coordinates": {
            "title": "Source coordinates",
            "type": "string",
            "description": "Geographic coordinates (latitude, longitude pair) of the starting point<br><br><em>Used by: Driving Directions. Required for Driving Directions.</em>"
          },
          "destination_coordinates": {
            "title": "Destination coordinates",
            "type": "string",
            "description": "Geographic coordinates (latitude, longitude pair) of the destination<br><br><em>Used by: Driving Directions. Required for Driving Directions.</em>"
          },
          "return_route_coordinates": {
            "title": "Return route coordinates",
            "type": "boolean",
            "description": "Whether to return route coordinate pairs (route_coordinates field)<br><br><em>Used by: Driving Directions.</em>"
          },
          "toll_passes": {
            "title": "Toll passes",
            "type": "boolean",
            "description": "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>",
            "default": false
          },
          "arrival_timestamp": {
            "title": "Arrival timestamp",
            "type": "integer",
            "description": "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": {
            "title": "Categories",
            "type": "string",
            "description": "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": {
            "title": "Zoom level",
            "type": "string",
            "description": "Waze zoom level from 1-4 (4 is most zoomed in).<br><br><em>Used by: Venues.</em>"
          },
          "q": {
            "title": "Q",
            "type": "string",
            "description": "Free-text geographic query.<br><br><em>Used by: Autocomplete. Required for Autocomplete.</em>"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "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": {
            "title": "Coordinates",
            "type": "string",
            "description": "Geographic coordinates (latitude, longitude) bias. Highly recommended to use for getting accurate results.<br><br><em>Used by: Autocomplete. Required for Autocomplete.</em>"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}