{
  "openapi": "3.0.1",
  "info": {
    "title": "Hail Map & Storm Damage Reports: Roofing Leads (NWS)",
    "description": "Hail map data and storm damage reports from the National Weather Service: hail size, wind damage, tornado and flood reports by state, county or address. Roofing leads, hail history by address, hardest-hit counties. No API key. Pay per row.",
    "version": "0.1",
    "x-build-id": "YPtNACdNlQxPj9GCm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/daperk~storm-damage-hail-reports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-daperk-storm-damage-hail-reports",
        "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/daperk~storm-damage-hail-reports/runs": {
      "post": {
        "operationId": "runs-sync-daperk-storm-damage-hail-reports",
        "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/daperk~storm-damage-hail-reports/run-sync": {
      "post": {
        "operationId": "run-sync-daperk-storm-damage-hail-reports",
        "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": "What do you want?",
            "enum": [
              "reports",
              "areas",
              "locations"
            ],
            "type": "string",
            "description": "<b>Storm reports</b>: one row per report (hail, wind, tornado...). <b>Hardest-hit counties</b>: one row per county with counts, biggest hail and a severity score. <b>Address storm history</b>: one row per address with hail and wind found nearby.",
            "default": "reports"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Leave empty for the whole US (max 93 days). With states you can go back up to 10 years. Not used in address mode.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "PR",
                "VI",
                "GU",
                "AS",
                "MP"
              ]
            }
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Which kinds of storm reports to keep.",
            "items": {
              "type": "string",
              "enum": [
                "hail",
                "wind_damage",
                "wind_gust",
                "tornado",
                "flood",
                "tropical",
                "lightning",
                "winter",
                "wildfire",
                "other",
                "all"
              ],
              "enumTitles": [
                "Hail",
                "Wind damage (trees, roofs, power lines)",
                "Wind gusts",
                "Tornado and funnel cloud",
                "Flood and flash flood",
                "Hurricane and tropical",
                "Lightning",
                "Snow and ice",
                "Wildfire",
                "Everything else",
                "All types"
              ]
            },
            "default": [
              "hail",
              "wind_damage",
              "wind_gust",
              "tornado"
            ]
          },
          "minHailInches": {
            "title": "Minimum hail size (inches)",
            "minimum": 0,
            "maximum": 6,
            "type": "number",
            "description": "Skip smaller hail. 1.0 = quarter size, the size where roof damage usually starts. 1.75 = golf ball. 0 = keep all hail.",
            "default": 0
          },
          "minWindMph": {
            "title": "Minimum wind gust (mph)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Skip weaker wind gust reports. 58 mph is the NWS severe level. Wind damage reports are always kept.",
            "default": 0
          },
          "lookbackHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 87840,
            "type": "integer",
            "description": "For reports and counties: how far back from now. Default 720 = last 30 days. Use 24 or 48 for fresh overnight storms. Ignored if you set a start date.",
            "default": 720
          },
          "startDate": {
            "title": "Start date (optional)",
            "type": "string",
            "description": "Use a fixed period instead of look back. Format YYYY-MM-DD (UTC)."
          },
          "endDate": {
            "title": "End date (optional)",
            "type": "string",
            "description": "Last day to include (UTC). Empty = up to now."
          },
          "locations": {
            "title": "Addresses or coordinates",
            "type": "array",
            "description": "Address storm history mode only. One per line. A full US address (street, city, state, ZIP) or \"lat,lon\" like 32.78,-96.80. Up to 500 per run.",
            "items": {
              "type": "string"
            }
          },
          "radiusMiles": {
            "title": "Search radius (miles)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Count storm reports within this distance of each address. Reports are point reports, so 3 to 10 miles works well.",
            "default": 5
          },
          "historyDays": {
            "title": "History (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How many days back to search for each address. 365 = last year. Max 3650 (10 years). Ignored if you set a start date.",
            "default": 365
          },
          "maxNearbyReports": {
            "title": "Nearby reports to list per address",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the closest reports to include in each address row.",
            "default": 10
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many charged rows. Use it to control cost.",
            "default": 1000
          },
          "requestDelayMs": {
            "title": "Pause between requests (ms)",
            "minimum": 250,
            "maximum": 10000,
            "type": "integer",
            "description": "Polite pause between calls to the free public data service.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}