{
  "openapi": "3.0.1",
  "info": {
    "title": "FEMA Flood Zone & Property Risk API - Zillow/Redfin Enricher",
    "description": "FEMA flood zone and property risk for US addresses or a whole Zillow/Redfin dataset: flood zone + SFHA, FEMA National Risk Index (18 hazards), census income, home value and rent, elevation, and a low-to-high risk verdict per property. Keyless, bulk.",
    "version": "0.1",
    "x-build-id": "FLeIbAR1sBI9lw9l3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/centorprat~fema-flood-zone-property-risk/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-centorprat-fema-flood-zone-property-risk",
        "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/centorprat~fema-flood-zone-property-risk/runs": {
      "post": {
        "operationId": "runs-sync-centorprat-fema-flood-zone-property-risk",
        "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/centorprat~fema-flood-zone-property-risk/run-sync": {
      "post": {
        "operationId": "run-sync-centorprat-fema-flood-zone-property-risk",
        "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": {
          "addresses": {
            "title": "🏠 US addresses or \"lat,lon\" points",
            "type": "array",
            "description": "One property per line. Full street addresses work best (\"2100 Collins Ave, Miami Beach, FL 33139\"). You can also give coordinates as \"29.9511,-90.0715\". Billed per matched property; unmatched addresses are free.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "🔗 Enrich another actor's dataset (optional)",
            "type": "string",
            "description": "Pick (or paste the ID of) the dataset of any real-estate actor run you did: Zillow Search Scraper, Zillow Detail, Redfin, Realtor, Crexi... Each row's address and coordinates are auto-detected, and the listing ID, URL and price are carried into the output as sourceRecord. Read-only access."
          },
          "addressField": {
            "title": "Address field override (optional)",
            "type": "string",
            "description": "Only if auto-detection misses: the dotted path of the address field in that dataset, e.g. \"listingAddress.full\" or \"address\"."
          },
          "maxItems": {
            "title": "💯 Max properties per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on how many properties are enriched (addresses + dataset rows).",
            "default": 500
          },
          "includeFloodZone": {
            "title": "🌊 FEMA flood zone",
            "type": "boolean",
            "description": "FEMA National Flood Hazard Layer: zone (A, AE, VE, X...), Special Flood Hazard Area yes/no, base flood elevation, FIRM panel and effective date.",
            "default": true
          },
          "includeHazardIndex": {
            "title": "🌪️ FEMA hazard profile ($)",
            "type": "boolean",
            "description": "FEMA National Risk Index for the property's census tract: 18 natural hazards (hurricane, wildfire, earthquake, tornado, flooding...) with loss-rate percentiles, expected annual loss per $100k of building value, social vulnerability and community resilience. Billed as the premium 'hazard-profile' event.",
            "default": true
          },
          "includeDemographics": {
            "title": "🏘️ Neighborhood demographics",
            "type": "boolean",
            "description": "Census tract snapshot from the American Community Survey (5-year): median household income, median home value, median rent, gross rent yield, owner-occupied %, vacancy %, median year built, population, median age.",
            "default": true
          },
          "includeElevation": {
            "title": "⛰️ Ground elevation",
            "type": "boolean",
            "description": "USGS 3DEP ground elevation in feet at the property point.",
            "default": true
          },
          "onlyFlagged": {
            "title": "🚩 Only return flagged properties",
            "type": "boolean",
            "description": "Output (and bill) only properties whose verdict is elevated or high. Useful to screen a big list for risk.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "If set, flagged (elevated/high) properties are POSTed here as JSON (Zapier / Make / n8n / custom)."
          },
          "concurrency": {
            "title": "Parallel lookups",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many properties are looked up at once (max 8). The default of 6 is the fastest setting that stays within the public FEMA service's limits.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}