{
  "openapi": "3.0.1",
  "info": {
    "title": "Tropical Storm Wind Arrival at Sites (from NOAA NHC data)",
    "description": "When tropical-storm-force (34 kt) and 50 kt winds could arrive and leave at up to 5,000 sites: NHC earliest reasonable and most likely arrival, most likely and latest reasonable departure, per advisory. Latest storms or history from 2018.",
    "version": "0.1",
    "x-build-id": "gl2JdHhdhR4eT7id4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bigsky-data-tools~tropical-storm-wind-arrival-sites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bigsky-data-tools-tropical-storm-wind-arrival-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~tropical-storm-wind-arrival-sites/runs": {
      "post": {
        "operationId": "runs-sync-bigsky-data-tools-tropical-storm-wind-arrival-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~tropical-storm-wind-arrival-sites/run-sync": {
      "post": {
        "operationId": "run-sync-bigsky-data-tools-tropical-storm-wind-arrival-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. Each item is either a string \"latitude,longitude,name\" or an object {\"id\", \"name\", \"latitude\", \"longitude\"}. Up to 5,000 sites per run, anywhere north of the equator that NHC forecasts for (Atlantic, Gulf, Caribbean, Eastern and Central Pacific, including Hawaii and Mexico). The Actor keeps identical entries (same id and same coordinates) once, so it does not return or charge them twice, and the run log warns about them."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "latest",
              "history"
            ],
            "type": "string",
            "description": "Latest = the newest NHC advisory with wind timing for every active storm right now (use this for schedules; it is the default when you call the API without a mode). History = past NHC advisories for the storms or dates you choose, back to 2018. The form opens on History with Milton 2024 as a ready example.",
            "default": "latest"
          },
          "storms": {
            "title": "Storms (history)",
            "type": "array",
            "description": "History mode only. Up to 50 NHC storm IDs such as \"AL142024\" or names and years such as \"Milton 2024\". Leave empty to use the dates instead. With both, the run uses only advisories whose forecast starts between the dates.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date (history)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "History mode only. First UTC day of forecast starts to include, YYYY-MM-DD, from 2018. Example: 2024-10-05. Up to 366 days and 3,000 NHC advisories per run."
          },
          "endDate": {
            "title": "End date (history)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "History mode only. Last UTC day to include, YYYY-MM-DD. Leave empty for 366 days from the start date or up to today, whichever comes first."
          },
          "output": {
            "title": "Output (history)",
            "enum": [
              "storms",
              "advisories"
            ],
            "type": "string",
            "description": "History mode only. Storms = one summary row per site per storm (first and last advisory with timing, lead time, earliest arrival any advisory gave). Advisories = one row per site per advisory, the full time series.",
            "default": "storms"
          },
          "basins": {
            "title": "Basins",
            "type": "array",
            "description": "Limit to NHC basins: AL (Atlantic), EP (Eastern Pacific), CP (Central Pacific). Leave empty for all three.",
            "items": {
              "type": "string"
            }
          },
          "timeZone": {
            "title": "Time zone",
            "type": "string",
            "description": "Time zone for the output times, as an IANA name such as \"America/New_York\", \"America/Chicago\" or \"Pacific/Honolulu\". Leave empty for UTC. Times carry their UTC offset either way."
          },
          "includeAllSites": {
            "title": "Include every site",
            "type": "boolean",
            "description": "Also return rows for sites outside NHC's timing area (empty timing fields with a note), for example to confirm the run checked each site. You pay for every row that carries a storm's data; status rows without NHC timing (no-active-storms when no storm is active, data-unavailable when NHC's file for a storm could not be read) are free. Large selections (5,000 sites over a whole season) fit in the default 1,024 MB memory.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}