{
  "openapi": "3.0.1",
  "info": {
    "title": "FEMA Disaster Recovery Tracker: All 50 States",
    "description": "Track FEMA disaster recovery money in all 50 states, DC, and US territories: Public Assistance projects, obligations, and applicants, Hazard Mitigation grants, and Individual Assistance.  Filter by state, county, disaster, date, incident type, and amount, or monitor for new and changed records.",
    "version": "0.1",
    "x-build-id": "7KFliSEiahnhofaLx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maniginam~fema-disaster-recovery-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maniginam-fema-disaster-recovery-tracker",
        "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/maniginam~fema-disaster-recovery-tracker/runs": {
      "post": {
        "operationId": "runs-sync-maniginam-fema-disaster-recovery-tracker",
        "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/maniginam~fema-disaster-recovery-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-maniginam-fema-disaster-recovery-tracker",
        "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": {
          "dataset": {
            "title": "FEMA dataset",
            "enum": [
              "paFundedProjects",
              "paAwardActivities",
              "paApplicants",
              "hmaSubapplications",
              "ihpHouseholds",
              "housingOwners",
              "housingRenters"
            ],
            "type": "string",
            "description": "Which OpenFEMA dataset to search.  Public Assistance funded projects are the obligated rebuilding projects; award activities are each obligation as it happens; applicants are the governments and nonprofits that applied; Hazard Mitigation subapplications are mitigation grants; IHP registrations are individual households (no names); housing assistance is aggregated by ZIP code.",
            "default": "paFundedProjects"
          },
          "states": {
            "title": "States and territories",
            "maxItems": 59,
            "uniqueItems": true,
            "type": "array",
            "description": "Two-letter state or territory codes.  Leave empty for the whole country.",
            "items": {
              "type": "string",
              "enum": [
                "AK",
                "AL",
                "AR",
                "AS",
                "AZ",
                "CA",
                "CO",
                "CT",
                "DC",
                "DE",
                "FL",
                "FM",
                "GA",
                "GU",
                "HI",
                "IA",
                "ID",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MA",
                "MD",
                "ME",
                "MH",
                "MI",
                "MN",
                "MO",
                "MP",
                "MS",
                "MT",
                "NC",
                "ND",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NV",
                "NY",
                "OH",
                "OK",
                "OR",
                "PA",
                "PR",
                "PW",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VA",
                "VI",
                "VT",
                "WA",
                "WI",
                "WV",
                "WY"
              ],
              "enumTitles": [
                "AK - Alaska",
                "AL - Alabama",
                "AR - Arkansas",
                "AS - American Samoa",
                "AZ - Arizona",
                "CA - California",
                "CO - Colorado",
                "CT - Connecticut",
                "DC - District Of Columbia",
                "DE - Delaware",
                "FL - Florida",
                "FM - Federated States of Micronesia",
                "GA - Georgia",
                "GU - Guam",
                "HI - Hawaii",
                "IA - Iowa",
                "ID - Idaho",
                "IL - Illinois",
                "IN - Indiana",
                "KS - Kansas",
                "KY - Kentucky",
                "LA - Louisiana",
                "MA - Massachusetts",
                "MD - Maryland",
                "ME - Maine",
                "MH - Marshall Islands",
                "MI - Michigan",
                "MN - Minnesota",
                "MO - Missouri",
                "MP - Northern Mariana Islands",
                "MS - Mississippi",
                "MT - Montana",
                "NC - North Carolina",
                "ND - North Dakota",
                "NE - Nebraska",
                "NH - New Hampshire",
                "NJ - New Jersey",
                "NM - New Mexico",
                "NV - Nevada",
                "NY - New York",
                "OH - Ohio",
                "OK - Oklahoma",
                "OR - Oregon",
                "PA - Pennsylvania",
                "PR - Puerto Rico",
                "PW - Palau",
                "RI - Rhode Island",
                "SC - South Carolina",
                "SD - South Dakota",
                "TN - Tennessee",
                "TX - Texas",
                "UT - Utah",
                "VA - Virginia",
                "VI - Virgin Islands",
                "VT - Vermont",
                "WA - Washington",
                "WI - Wisconsin",
                "WV - West Virginia",
                "WY - Wyoming"
              ]
            }
          },
          "counties": {
            "title": "Counties or parishes",
            "maxItems": 100,
            "type": "array",
            "description": "County, parish, or borough names, such as Jefferson Parish or Harris.  The word County, Parish, or Borough is optional and St. matches Saint.  Records with no county, or marked Statewide, are left out when this is set.  Not available for Public Assistance applicants.  Up to 100.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9 .'()-]{1,60}$"
            }
          },
          "disasterNumbers": {
            "title": "Disaster numbers",
            "maxItems": 200,
            "type": "array",
            "description": "FEMA disaster numbers, such as 4673 for Hurricane Ian in Florida.  Leave empty for every disaster.  Up to 200.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{1,5}$"
            }
          },
          "declaredSince": {
            "title": "Declared on or after",
            "type": "string",
            "description": "Earliest disaster declaration date (YYYY-MM-DD).  Leave empty for no lower bound."
          },
          "declaredUntil": {
            "title": "Declared on or before",
            "type": "string",
            "description": "Latest disaster declaration date (YYYY-MM-DD), inclusive.  Leave empty for no upper bound."
          },
          "incidentTypes": {
            "title": "Incident types",
            "maxItems": 27,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only disasters FEMA declared for these incident types, such as Hurricane or Flood.  Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Biological",
                "Chemical",
                "Coastal Storm",
                "Dam/Levee Break",
                "Drought",
                "Earthquake",
                "Fire",
                "Fishing Losses",
                "Flood",
                "Freezing",
                "Human Cause",
                "Hurricane",
                "Mud/Landslide",
                "Other",
                "Severe Ice Storm",
                "Severe Storm",
                "Snowstorm",
                "Straight-Line Winds",
                "Terrorist",
                "Tornado",
                "Toxic Substances",
                "Tropical Depression",
                "Tropical Storm",
                "Tsunami",
                "Typhoon",
                "Volcanic Eruption",
                "Winter Storm"
              ]
            }
          },
          "minAmount": {
            "title": "Minimum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only records with at least this many dollars: obligated for Public Assistance and Hazard Mitigation, approved for household and housing assistance.  Not available for Public Assistance applicants.  Leave at 0 for every amount."
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Stop after delivering this many records.  Each delivered record is one charged event.",
            "default": 1000
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed records (monitor mode)",
            "type": "boolean",
            "description": "Remember what this search delivered and, on later runs with the same filters, deliver only records that are new or whose FEMA data changed.  Schedule the Actor to get a feed of fresh obligations.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}