{
  "openapi": "3.0.1",
  "info": {
    "title": "Tornado, Hail and Wind History at Sites (SPC data)",
    "description": "Past tornadoes (1950 on, with paths), hail and damaging wind (1955 on) within a radius of up to 5,000 sites, from SPC's final Severe Weather Database: rating, hail size, gust, SPC loss estimates, distance to SPC's path line. Or one summary row per site.",
    "version": "0.1",
    "x-build-id": "Na7uVp5p5Oxb2nXO2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bigsky-data-tools~tornado-hail-wind-history-sites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bigsky-data-tools-tornado-hail-wind-history-sites",
        "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/bigsky-data-tools~tornado-hail-wind-history-sites/runs": {
      "post": {
        "operationId": "runs-sync-bigsky-data-tools-tornado-hail-wind-history-sites",
        "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/bigsky-data-tools~tornado-hail-wind-history-sites/run-sync": {
      "post": {
        "operationId": "run-sync-bigsky-data-tools-tornado-hail-wind-history-sites",
        "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",
        "required": [
          "sites"
        ],
        "properties": {
          "sites": {
            "title": "Sites",
            "maxItems": 5000,
            "type": "array",
            "description": "Your locations. Each item is either a string \"latitude,longitude,name\" or an object {\"id\", \"name\", \"latitude\", \"longitude\"}. Up to 5,000 sites per run. SPC's database covers the 50 states, DC, Puerto Rico and a few other U.S. territories. The tool keeps identical entries (same id and same coordinates) once."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 200,
            "type": "number",
            "description": "Events within this many km of a site count (0.1 to 200; 10 km is about 6.2 miles). Hail and wind are points; a tornado counts when any part of its SPC path line (start to end point) comes within the radius.",
            "default": 10
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Any of tornado, hail and wind. Leave empty for all three. Tornado records start in 1950, hail and wind in 1955.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First day, YYYY-MM-DD, as SPC dates events (Central Standard Time days). Leave empty for the start of the record (1950 for tornadoes, 1955 for hail and wind)."
          },
          "endDate": {
            "title": "End date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last day, YYYY-MM-DD. Leave empty for the last event date in SPC's final files (SPC adds each year in the spring of the next year). The tool clips a later date to that date, with a warning in the run log and in dataNotes."
          },
          "output": {
            "title": "Output",
            "enum": [
              "events",
              "summary"
            ],
            "type": "string",
            "description": "Events = one row for each tornado, hail or wind event within the radius of a site, newest first (sites with no event get no row). Summary = exactly one row per site with counts, significant events, the strongest tornado, the largest hail, the strongest gust and the nearest tornado, including sites with 0 events.",
            "default": "events"
          },
          "minTornadoRating": {
            "title": "Minimum tornado rating (F or EF)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep tornadoes rated at least this on the F scale (before February 2007) or the EF scale (0 to 5). 0 keeps all tornadoes, also those with an unknown rating; 1 or more leaves out unknown ratings.",
            "default": 0
          },
          "minHailInches": {
            "title": "Minimum hail size (inches)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep hail reports at least this size, for example 1 (quarter) or 1.75 (golf ball). 0 keeps all.",
            "default": 0
          },
          "minWindKnots": {
            "title": "Minimum wind speed (knots)",
            "minimum": 0,
            "maximum": 200,
            "type": "number",
            "description": "Keep wind reports at least this speed in knots (1 knot = 1.15 mph), for example 65 for SPC's significant wind. 0 keeps all, also reports with no speed; above 0 leaves out reports with no speed.",
            "default": 0
          },
          "timeZone": {
            "title": "Time zone",
            "type": "string",
            "description": "Time zone for eventTime and endTime, as an IANA name such as \"America/Chicago\". Leave empty for UTC. spcDate and spcTime always show SPC's own values (Central Standard Time)."
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many rows, with a warning in the status message. It caps your cost too (each row is one result).",
            "default": 10000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}