{
  "openapi": "3.0.1",
  "info": {
    "title": "Winter Storm Severity Index at Sites (from NOAA WPC data)",
    "description": "Winter Storm Severity Index (WSSI) at up to 5,000 U.S. sites from NOAA WPC: impact level Days 1-3, chance of each level Days 1-7, and snow and ice amount chances. Not for emergency, evacuation or life-safety decisions; follow NWS.",
    "version": "0.1",
    "x-build-id": "RSE0YbU8gYS1Ckncl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bigsky-data-tools~winter-storm-severity-sites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bigsky-data-tools-winter-storm-severity-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~winter-storm-severity-sites/runs": {
      "post": {
        "operationId": "runs-sync-bigsky-data-tools-winter-storm-severity-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~winter-storm-severity-sites/run-sync": {
      "post": {
        "operationId": "run-sync-bigsky-data-tools-winter-storm-severity-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",
            "type": "array",
            "description": "Your locations in the lower 48 states and DC. Each item is either a string \"latitude,longitude,name\" or an object {\"id\", \"name\", \"latitude\", \"longitude\"}. Up to 5,000 sites per run. Sites in Alaska, Hawaii, Puerto Rico, offshore or outside the U.S. are skipped and not charged (WSSI does not cover them). Identical entries (same id and same coordinates) are kept once, so they are not returned or charged twice."
          },
          "include": {
            "title": "Sections",
            "uniqueItems": true,
            "type": "array",
            "description": "Which parts to return. wssi = WSSI impact level (None to Extreme) for Day 1, Day 2, Day 3 and Days 1-3, overall and for snow amount, snow load, ice accumulation and blowing snow. probabilities = chance of each WSSI level for Days 1 to 7. snowIce = chance of 1 to 18 inches of snow and 0.01 to 0.50 inch of freezing rain, and snowfall percentiles, for Days 1 to 3. Empty = all three. The price per row is the same.",
            "items": {
              "type": "string",
              "enum": [
                "wssi",
                "probabilities",
                "snowIce"
              ],
              "enumTitles": [
                "WSSI impact levels (Days 1-3)",
                "WSSI chances (Days 1-7)",
                "Snow and ice amount chances (Days 1-3)"
              ]
            }
          },
          "probabilityComponents": {
            "title": "Extra chance breakdowns",
            "uniqueItems": true,
            "type": "array",
            "description": "The probabilities section always has the overall WSSI chances. Add components to also get the chances for snow amount, snow load, ice accumulation or blowing snow, each day.",
            "items": {
              "type": "string",
              "enum": [
                "snowAmount",
                "snowLoad",
                "iceAccumulation",
                "blowingSnow"
              ],
              "enumTitles": [
                "Snow amount",
                "Snow load",
                "Ice accumulation",
                "Blowing snow"
              ]
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Only check sites in these two-letter states (for example CO, MN, NY). Empty = every site in the list. Sites in other states are skipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "onlyAffected": {
            "title": "Only affected sites",
            "type": "boolean",
            "description": "Return (and charge) only sites that reach the minimum level below: a WSSI level at or above it in Days 1 to 3, a chance of that level or worse of at least the minimum chance in Days 1 to 7, or at least that chance of 4 inches of snow or 0.25 inch of freezing rain in Days 1 to 3. Off = every site gets a row, with affected true or false.",
            "default": false
          },
          "minImpactLevel": {
            "title": "Minimum impact level",
            "enum": [
              "winter-weather-area",
              "minor",
              "moderate",
              "major",
              "extreme"
            ],
            "type": "string",
            "description": "The WSSI level that makes a site affected (and, with Only affected sites on, the level a site needs to get a row).",
            "default": "winter-weather-area"
          },
          "minChancePct": {
            "title": "Minimum chance (%)",
            "minimum": 5,
            "maximum": 95,
            "type": "integer",
            "description": "The chance (percent) of the minimum level or worse, or of 4 inches of snow or 0.25 inch of freezing rain, that makes a site affected.",
            "default": 10
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Caps the rows saved (and the spend) per run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}