{
  "openapi": "3.0.1",
  "info": {
    "title": "Waze Traffic Scraper",
    "description": "Get live traffic alerts, road hazards, police reports, closures & jams directly from Waze without official API keys! 🚨 Search any location worldwide using a simple bounding box or radius. Ideal for route planning, fleet management, and real-time logistics mapping.",
    "version": "1.0",
    "x-build-id": "Xde2wtlVrMYYWJgbK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/burbn~waze-traffic-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-burbn-waze-traffic-scraper",
        "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/burbn~waze-traffic-scraper/runs": {
      "post": {
        "operationId": "runs-sync-burbn-waze-traffic-scraper",
        "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/burbn~waze-traffic-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-burbn-waze-traffic-scraper",
        "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": [
          "bottom_left",
          "top_right"
        ],
        "properties": {
          "bottom_left": {
            "title": "📍 Bottom-Left Corner (lat, lng)",
            "type": "string",
            "description": "Bottom-left corner of the geographic rectangular area. Specified as latitude, longitude pair (e.g., \"51.400,-0.300\"). Required if center and radius are not specified.",
            "default": "51.400,-0.300"
          },
          "top_right": {
            "title": "📍 Top-Right Corner (lat, lng)",
            "type": "string",
            "description": "Top-right corner of the geographic rectangular area. Specified as latitude, longitude pair (e.g., \"51.600,0.100\"). Required if center and radius are not specified.",
            "default": "51.600,0.100"
          },
          "center": {
            "title": "📍 Center Point (lat, lng)",
            "type": "string",
            "description": "Center point of the search area as latitude, longitude pair (e.g., \"51.5074,-0.1278\"). Use this with radius instead of bounding box. Required if bottom_left and top_right are not specified."
          },
          "radius": {
            "title": "📏 Radius",
            "type": "string",
            "description": "Radius of the search area from the center point. Required if center is specified."
          },
          "radius_units": {
            "title": "📏 Radius Units",
            "enum": [
              "KM",
              "MI"
            ],
            "type": "string",
            "description": "Unit of measurement for the radius.",
            "default": "KM"
          },
          "max_alerts": {
            "title": "🚨 Max Alerts",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of alerts to fetch. Set to 0 to skip fetching alerts entirely.",
            "default": 20
          },
          "max_jams": {
            "title": "🚧 Max Jams",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of traffic jams to fetch. Set to 0 to skip fetching jams entirely.",
            "default": 20
          },
          "alert_types": {
            "title": "🏷️ Alert Types Filter",
            "type": "array",
            "description": "Only return alerts of specific types. Select one or more alert types to filter results.",
            "items": {
              "type": "string",
              "enum": [
                "HAZARD",
                "ACCIDENT",
                "POLICE",
                "ROAD_CLOSED",
                "JAM",
                "WEATHERHAZARD",
                "MISC"
              ],
              "enumTitles": [
                "⚠️ Hazard",
                "🚗 Accident",
                "👮 Police",
                "🚧 Road Closed",
                "🚦 Jam",
                "🌧️ Weather Hazard",
                "📌 Miscellaneous"
              ]
            },
            "default": []
          },
          "alert_subtypes": {
            "title": "🏷️ Alert Subtypes Filter",
            "type": "array",
            "description": "Only return alerts of specific subtypes. Select one or more alert subtypes to filter results.",
            "items": {
              "type": "string",
              "enum": [
                "HAZARD_ON_ROAD_CONSTRUCTION",
                "HAZARD_ON_ROAD_OBSTACLE",
                "HAZARD_ON_ROAD_TURTLE",
                "HAZARD_ON_ROAD_ANIMAL",
                "HAZARD_ON_ROAD_CAR_STOPPED",
                "HAZARD_ON_ROAD_CAR_PART",
                "HAZARD_ON_ROAD_OTHER",
                "POLICE_HIDING",
                "POLICE_STOPPING_CAR",
                "ROAD_CLOSED_EVENT",
                "ROAD_CLOSED_CONSTRUCTION",
                "ROAD_CLOSED_OTHER"
              ],
              "enumTitles": [
                "Construction Obstruction",
                "General Obstruction",
                "Turtle",
                "Animal",
                "Car Stopped",
                "Car Part on Road",
                "Other Hazard",
                "Police Hiding",
                "Police Stopping Car",
                "Road Closed (Event)",
                "Road Closed (Construction)",
                "Other Road Closure"
              ]
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}