{
  "openapi": "3.0.1",
  "info": {
    "title": "Temperature & Rain Outlook at Sites (CPC 6-10 Day to Seasonal)",
    "description": "Returns NOAA CPC outlooks at your sites: above/below-normal category and probability for temperature and rain, 6-10 day, 8-14 day, Week 3-4, monthly and seasonal, up to 5,000 sites. State summaries and back-tests. Not for life-safety or emergency decisions; follow NWS forecasts and warnings.",
    "version": "0.1",
    "x-build-id": "k3hOxkrYC81AybU4o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bigsky-data-tools~temperature-precipitation-outlook-cpc/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bigsky-data-tools-temperature-precipitation-outlook-cpc",
        "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~temperature-precipitation-outlook-cpc/runs": {
      "post": {
        "operationId": "runs-sync-bigsky-data-tools-temperature-precipitation-outlook-cpc",
        "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~temperature-precipitation-outlook-cpc/run-sync": {
      "post": {
        "operationId": "run-sync-bigsky-data-tools-temperature-precipitation-outlook-cpc",
        "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": "Mode",
            "enum": [
              "sites",
              "states"
            ],
            "type": "string",
            "description": "sites = one row per site per outlook (the outlook at each of your locations). states = one summary row per state per outlook (share of the state favoring above, below or near normal, and the strongest probabilities).",
            "default": "sites"
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Used in 'sites' mode. Each item is either a string \"latitude,longitude,name\" or an object {\"id\", \"name\", \"latitude\", \"longitude\"}. Up to 5,000 sites in the 50 US states."
          },
          "outlooks": {
            "title": "Outlooks",
            "type": "array",
            "description": "Which CPC outlooks to check. 6-10 day and 8-14 day are issued every day; Week 3-4 every Friday; the monthly outlook on the third Thursday (next month) and updated on the last day of the month (current month); seasonal (3-month) outlooks on the third Thursday.",
            "items": {
              "type": "string",
              "enum": [
                "6-10day",
                "8-14day",
                "week3-4",
                "monthly",
                "seasonal"
              ],
              "enumTitles": [
                "6-10 day",
                "8-14 day",
                "Week 3-4",
                "Monthly",
                "Seasonal (3-month)"
              ]
            },
            "default": [
              "6-10day",
              "8-14day"
            ]
          },
          "seasonalLeads": {
            "title": "Seasonal: number of seasons",
            "minimum": 1,
            "maximum": 13,
            "type": "integer",
            "description": "Seasonal outlook only: how many overlapping 3-month seasons to return, starting with the next one (1 = next season only, 13 = all leads out to about a year ahead).",
            "default": 1
          },
          "startDate": {
            "title": "Past outlooks: issued from (optional)",
            "type": "string",
            "description": "Leave empty for the latest outlooks. To look back, enter the first issue date (YYYY-MM-DD). Archives: 6-10 and 8-14 day from 2012-09-11, Week 3-4 (Fridays) from 2022-01-07. Up to 31 issue dates per run. Monthly and seasonal outlooks: latest only."
          },
          "endDate": {
            "title": "Past outlooks: issued to (optional)",
            "type": "string",
            "description": "Last issue date of the look-back range (YYYY-MM-DD). Default: same as the start date."
          },
          "onlyFavored": {
            "title": "Only rows with a forecast lean",
            "type": "boolean",
            "description": "Skip rows where both temperature and precipitation are 'Equal chances' (no lean either way). Useful for alerting so you only pay for rows that matter.",
            "default": false
          },
          "states": {
            "title": "States (optional)",
            "type": "array",
            "description": "Two-letter state codes, e.g. CO, KS, NE. Sites mode: only sites in these states. States mode: only these states. Empty = all 50 states + DC.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rows to save.",
            "default": 100000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}