{
  "openapi": "3.0.1",
  "info": {
    "title": "Flood Zone Property Owner Leads & FEMA Flood Map Lookup",
    "description": "Every property in a FEMA flood zone, or about to enter one on a new FEMA map, with the owner's name and mailing address, in 20 states. Or the flood zone, panel and LOMA of any US address.",
    "version": "0.0",
    "x-build-id": "zmxrdYqfpOY9sgwrC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~flood-zone-property-owner-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-flood-zone-property-owner-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/scrapebench~flood-zone-property-owner-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-flood-zone-property-owner-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/scrapebench~flood-zone-property-owner-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-flood-zone-property-owner-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "export",
              "lookup"
            ],
            "type": "string",
            "description": "Export: every property in a FEMA flood zone (or about to enter or leave one) in the areas you list, with the owner's name and mailing address. Lookup: the FEMA flood zone, panel, pending map change and LOMA of each US address you list, plus the owner where the county is covered.",
            "default": "export"
          },
          "areas": {
            "title": "Areas (export)",
            "type": "array",
            "description": "One per line: a state ('FL'), a county ('Pinellas, FL' or 'FL/Pinellas'), a city ('Kure Beach, NC') or a 5-digit ZIP ('33139'). Run with no areas to get the coverage list for free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "area": {
            "title": "Area (single)",
            "type": "string",
            "description": "One area, for saved tasks and API calls that send a single value. Use Areas above for several."
          },
          "addresses": {
            "title": "Addresses (lookup)",
            "type": "array",
            "description": "One US street address per line, with city and state (a ZIP helps): '1001 Ocean Dr, Miami Beach, FL 33139'. Works anywhere FEMA has a digital flood map; the owner columns are filled where the county's roll is covered.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "address": {
            "title": "Address (single)",
            "type": "string",
            "description": "One address, for saved tasks and API calls that send a single value."
          },
          "sfhaOnly": {
            "title": "Only properties in the flood zone (SFHA)",
            "type": "boolean",
            "description": "On: only properties inside FEMA's Special Flood Hazard Area (the 1%-annual-chance zones A and V, where a federally backed mortgage requires flood insurance). Off: every property in the area with its zone, including X. Ignored when 'Map change' is set.",
            "default": true
          },
          "zones": {
            "title": "Flood zones",
            "type": "array",
            "description": "Only these zones on the effective map. One per line: A, AE, AH, AO, AR, A99, V, VE (coastal), X_SHADED (0.2% annual chance), X_LEVEE (reduced risk behind a levee), X (minimal hazard), D (undetermined). Empty: any. X, X_SHADED and X_LEVEE need 'Only properties in the flood zone' off.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mapChange": {
            "title": "Map change",
            "enum": [
              "all",
              "entering",
              "leaving",
              "any_change",
              "pending_in",
              "pending_out",
              "preliminary_in",
              "preliminary_out"
            ],
            "type": "string",
            "description": "Properties whose zone changes on a new FEMA map. 'Entering' = outside the SFHA today and inside it on a pending (adopted, with an effective date) or preliminary map; once the pending map takes effect, a federally backed mortgage will require flood insurance. 'Leaving' = the reverse. Pending maps cover about 100 map areas and preliminary maps about 400 in 2026, so many counties have none.",
            "default": "all"
          },
          "excludeLoma": {
            "title": "Drop properties FEMA removed by letter (LOMA)",
            "type": "boolean",
            "description": "On: a property with a completed LOMA that removed its structure from the flood zone is left out (its owner does not need flood insurance under the mortgage rule). Off: kept, with the case number.",
            "default": true
          },
          "preFirmOnly": {
            "title": "Pre-FIRM buildings only",
            "type": "boolean",
            "description": "Only buildings built before the community's first flood map (or before 1975). Needs a roll that publishes year built.",
            "default": false
          },
          "ownerTypes": {
            "title": "Owner types",
            "type": "array",
            "description": "One per line: individual, company, trust, government. Empty: individual, company and trust (government land is left out of a lead list unless you ask for it).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "absentee": {
            "title": "Absentee owners",
            "type": "array",
            "description": "Only these owner-occupancy tiers, from the mailing address on the roll. One per line: out_of_state, out_of_city, same_city_diff_address, owner_occupied, unknown. Empty: any.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyUse": {
            "title": "Property use",
            "type": "array",
            "description": "Words matched against the roll's land-use description or code, one per line: 'single family', 'condominium', 'commercial', 'vacant'. Each county words it differently. Empty: any.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Only properties in these 5-digit ZIP codes (where the roll publishes the property ZIP).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Market (or assessed) value on the roll."
          },
          "maxValue": {
            "title": "Maximum value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Market (or assessed) value on the roll."
          },
          "builtAfter": {
            "title": "Built in or after (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "Year built on the roll; properties with no year are left out when set."
          },
          "builtBefore": {
            "title": "Built in or before (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "Year built on the roll; properties with no year are left out when set."
          },
          "maxResults": {
            "title": "Maximum rows per area",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on owner rows per area line (not per run). 0 = no cap. A whole coastal state can hold hundreds of thousands of flood-zone parcels; start with a county.",
            "default": 1000
          },
          "listCoverage": {
            "title": "List coverage (free)",
            "type": "boolean",
            "description": "Return the states and counties the export covers, and nothing else.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default: FEMA, the Census geocoder and the county rolls are public services. Turn it on only if a run reports a source as blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}