{
  "openapi": "3.0.1",
  "info": {
    "title": "Fire & Water Damage Leads for Restoration Pros",
    "description": "New structure fires, broken water pipes, sprinkler discharges and smoke damage from official city 911 feeds (Seattle, Austin, San Francisco, Baton Rouge, Raleigh, Scottsdale, Edmonton). Exact addresses, priority scoring, and you never pay twice for the same lead.",
    "version": "0.2",
    "x-build-id": "5DuuXXtVbPkByna8J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/future_style_tooling~fire-water-damage-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-future_style_tooling-fire-water-damage-leads",
        "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/future_style_tooling~fire-water-damage-leads/runs": {
      "post": {
        "operationId": "runs-sync-future_style_tooling-fire-water-damage-leads",
        "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/future_style_tooling~fire-water-damage-leads/run-sync": {
      "post": {
        "operationId": "run-sync-future_style_tooling-fire-water-damage-leads",
        "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",
        "properties": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Which city fire-department feeds to check. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "seattle",
                "austin",
                "san_francisco",
                "baton_rouge",
                "raleigh",
                "scottsdale",
                "edmonton"
              ],
              "enumTitles": [
                "Seattle, WA (real-time, exact address)",
                "Austin, TX (real-time, exact address)",
                "San Francisco, CA (daily, intersection-level)",
                "Baton Rouge, LA (daily, exact address + reported $ loss)",
                "Raleigh, NC (daily, exact address + ZIP)",
                "Scottsdale, AZ + mutual aid in Tempe/Mesa (date only, exact address)",
                "Edmonton, AB, Canada (daily, nearest intersection)"
              ]
            },
            "default": [
              "seattle",
              "austin",
              "san_francisco",
              "baton_rouge",
              "raleigh",
              "scottsdale",
              "edmonton"
            ]
          },
          "categories": {
            "title": "Incident categories",
            "type": "array",
            "description": "Kinds of incidents to return. Smoke investigations and outdoor/vehicle fires are off by default because they rarely need restoration work.",
            "items": {
              "type": "string",
              "enum": [
                "structure_fire",
                "kitchen_fire",
                "smoke_damage",
                "water_damage",
                "electrical",
                "explosion_collapse",
                "smoke_investigation",
                "outdoor_vehicle_fire"
              ],
              "enumTitles": [
                "Structure fires",
                "Kitchen / cooking fires",
                "Smoke or heat damage",
                "Water damage (broken pipes, flooding, sprinkler discharge)",
                "Electrical fires and hazards",
                "Explosions and structural collapse",
                "Smoke investigations (unconfirmed)",
                "Outdoor and vehicle fires"
              ]
            },
            "default": [
              "structure_fire",
              "kitchen_fire",
              "smoke_damage",
              "water_damage",
              "electrical",
              "explosion_collapse"
            ]
          },
          "minPriority": {
            "title": "Minimum priority",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "High = confirmed building fires, major water jobs, sprinkler discharges, big reported losses. Medium = garage/chimney/kitchen fires, minor water jobs. Low = electrical problems, small or unconfirmed calls.",
            "default": "low"
          },
          "onlyNew": {
            "title": "Only new leads",
            "type": "boolean",
            "description": "Skip incidents already delivered to you in an earlier run, so you are never charged twice for the same lead. Turn off to get every incident in the look-back window again.",
            "default": true
          },
          "lookbackHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "How far back to search. With scheduling plus \"Only new leads\", 48 hours is plenty. Baton Rouge automatically looks back 3 extra days because incidents are classified late.",
            "default": 48
          },
          "centerPoint": {
            "title": "Service area center (optional)",
            "pattern": "^\\s*-?\\d+(\\.\\d+)?\\s*,\\s*-?\\d+(\\.\\d+)?\\s*$",
            "type": "string",
            "description": "Only return incidents within the radius of this point. Format: latitude, longitude (e.g. 30.2672, -97.7431). Leave empty for whole cities."
          },
          "radiusMiles": {
            "title": "Service area radius",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Used only when a center point is set.",
            "default": 25
          },
          "maxResults": {
            "title": "Max leads per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit on leads (and charges) per run. Highest-priority, newest leads come first.",
            "default": 200
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Free token from any Socrata open-data portal. Only needed if you run this very frequently and hit rate limits."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}