{
  "openapi": "3.0.1",
  "info": {
    "title": "FEMA Disaster and Flood Claims Scraper",
    "description": "Get FEMA disaster declarations with aid totals, county disaster history, flood insurance claims with payouts and damage, claim summaries by county or year, housing assistance by ZIP code and public assistance. Export to CSV or Excel.",
    "version": "1.0",
    "x-build-id": "mZc4cShNDsCAbUvkh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~fema-disaster-flood-claims-aid-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-fema-disaster-flood-claims-aid-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/parselab~fema-disaster-flood-claims-aid-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-fema-disaster-flood-claims-aid-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/parselab~fema-disaster-flood-claims-aid-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-fema-disaster-flood-claims-aid-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",
        "properties": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "disasters",
              "countyHistory",
              "floodClaims",
              "floodClaimsSummary",
              "housingAssistance",
              "publicAssistance"
            ],
            "type": "string",
            "description": "Disasters gives one row per federal disaster with the counties and the aid paid. County history counts the declarations of each county by type and adds flood insurance coverage. Flood claims gives one row per flood insurance claim. Flood claim summary groups the claims by county, ZIP code, year, event, community or state. Housing assistance gives aid to owners and renters by ZIP code. Public assistance gives money paid to cities, counties and agencies for repairs.",
            "default": "disasters"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two letter state or territory codes such as TX, FL or PR. Leave empty for the whole country.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "County FIPS codes",
            "type": "array",
            "description": "Five digit county codes such as 48201 for Harris County, Texas. Works in county history, flood claims and flood claim summary.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Five digit ZIP codes. Works in flood claims, flood claim summary and housing assistance.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "From year",
            "minimum": 1953,
            "maximum": 2100,
            "type": "integer",
            "description": "First year. For flood claims it is the year of the loss, for the other modes it is the year of the declaration."
          },
          "yearTo": {
            "title": "To year",
            "minimum": 1953,
            "maximum": 2100,
            "type": "integer",
            "description": "Last year."
          },
          "disasterNumbers": {
            "title": "Disaster numbers",
            "type": "array",
            "description": "Look up specific disasters, for example 4332 for Hurricane Harvey. Works in disasters, county history, housing assistance and public assistance.",
            "items": {
              "type": "string"
            }
          },
          "incidentTypes": {
            "title": "Incident types",
            "type": "array",
            "description": "Keep only incidents whose type contains one of these words, for example Flood, Hurricane, Fire, Tornado or Severe Storm.",
            "items": {
              "type": "string"
            }
          },
          "declarationTypes": {
            "title": "Declaration types",
            "type": "array",
            "description": "DR is a major disaster, EM an emergency, FM a fire management assistance and FS a fire suppression. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "DR",
                "EM",
                "FM",
                "FS"
              ],
              "enumTitles": [
                "Major disaster (DR)",
                "Emergency (EM)",
                "Fire management (FM)",
                "Fire suppression (FS)"
              ]
            }
          },
          "floodEvent": {
            "title": "Flood event name contains",
            "type": "string",
            "description": "Flood claims only. Part of the event name, for example Harvey or Katrina."
          },
          "communityContains": {
            "title": "Community or applicant contains",
            "type": "string",
            "description": "Flood claims: part of the community name such as HOUSTON. Public assistance: part of the applicant name."
          },
          "minPaidUsd": {
            "title": "Minimum payment (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Flood claims: minimum paid on the building. Public assistance: minimum federal money obligated."
          },
          "groupBy": {
            "title": "Group claims by",
            "enum": [
              "county",
              "zip",
              "year",
              "event",
              "community",
              "state"
            ],
            "type": "string",
            "description": "Flood claim summary only.",
            "default": "county"
          },
          "maxClaimsToRead": {
            "title": "Maximum claims to read",
            "minimum": 1000,
            "maximum": 3000000,
            "type": "integer",
            "description": "Flood claim summary only. The summary stops after reading this many claims, so a whole country run does not take hours. Use filters to stay below it. About 3,000 claims are read per second.",
            "default": 500000
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "largestAid"
            ],
            "type": "string",
            "description": "Disasters and public assistance mode.",
            "default": "newest"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}