{
  "openapi": "3.0.1",
  "info": {
    "title": "NWS Daily Climate Report Scraper: Official High, Low, Rain",
    "description": "Daily high, low, precipitation, snow, records and normals parsed from the official NWS Daily Climate Report (CLI) text for MIA, NYC, ORD and 18 more locations. Latest, date-range with NCEI history, or live running max/min from METARs.",
    "version": "0.1",
    "x-build-id": "JekAvahjHUvEWPRu3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fecklesspleb~daily-climate-reports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fecklesspleb-daily-climate-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/fecklesspleb~daily-climate-reports/runs": {
      "post": {
        "operationId": "runs-sync-fecklesspleb-daily-climate-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/fecklesspleb~daily-climate-reports/run-sync": {
      "post": {
        "operationId": "run-sync-fecklesspleb-daily-climate-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": {
          "contactEmail": {
            "title": "Your contact e-mail (needed for live data)",
            "type": "string",
            "description": "Needed for live data. Sent in the User-Agent header ('DailyClimateReports/0.1 (Apify Actor; <this e-mail>)') so the data provider can reach you about your traffic if needed. Not written to the output. Placeholder domains such as example.com are refused. Leave it empty to try the Actor: the run then makes no requests and returns a few free sample reports marked isSample = true."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "latest",
              "date_range",
              "live_intraday"
            ],
            "type": "string",
            "description": "latest: the newest full-day report, plus today's in-progress report if one is out. date_range: every report for the dates you pick; dates older than the ~25-day CLI archive come from NCEI daily summaries. live_intraday: running max/min since local-standard-time midnight from METAR observations (preliminary, not official).",
            "default": "latest"
          },
          "cliLocations": {
            "title": "Locations (CLI codes)",
            "type": "array",
            "description": "Three-character Daily Climate Report location codes (the CLIxxx suffix), e.g. MIA = Miami Intl, NYC = Central Park, MDW = Chicago Midway. Built-in station details for: ANC, ATL, AUS, BOS, DCA, DEN, DFW, HNL, HOU, IAH, LAS, LAX, MDW, MIA, MSP, NYC, ORD, PHL, PHX, SEA, SFO. Other codes work for CLI reports; add them to Station map for history and live modes.",
            "default": [
              "MIA"
            ],
            "items": {
              "type": "string"
            }
          },
          "reportKinds": {
            "title": "Report kinds",
            "type": "array",
            "description": "Which CLI reports to keep. Offices typically issue a partial report in the late afternoon and the full-day report early the next morning.",
            "items": {
              "type": "string",
              "enum": [
                "full_day",
                "partial_day"
              ],
              "enumTitles": [
                "Full day (final for the climate day)",
                "Partial day (in progress, 'valid as of' a time)"
              ]
            },
            "default": [
              "full_day",
              "partial_day"
            ]
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "date_range only. Climate date (YYYY-MM-DD), inclusive."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "date_range only. Inclusive; defaults to today (U.S. Eastern)."
          },
          "includeNceiHistory": {
            "title": "Fill older dates from NCEI",
            "type": "boolean",
            "description": "date_range only. Dates with no full-day CLI report in the archive are filled with NCEI GHCN-Daily summaries (high, low, precipitation, snow), usually available after 2 to 5 days.",
            "default": true
          },
          "maxReportVersions": {
            "title": "CLI versions to scan",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "date_range only. The site keeps the last 50 issuances per location (about 25 days). Lower this to scan fewer.",
            "default": 50
          },
          "useSixHourExtremes": {
            "title": "Use 6-hour max/min groups",
            "type": "boolean",
            "description": "live_intraday only. Also use the 6-hour max/min remark groups in synoptic METARs when their window lies inside the climate day; these catch peaks between hourly reports.",
            "default": true
          },
          "stationMap": {
            "title": "Station map (optional)",
            "type": "object",
            "description": "Add or override station details per location code: {\"ABQ\": {\"icao\": \"KABQ\", \"ghcnd\": \"USW00023050\", \"timeZone\": \"America/Denver\"}}. icao is used in live mode, ghcnd for NCEI history, timeZone (IANA) for the local-standard-time day."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new reports since last run",
            "enum": [
              "auto",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Skip reports already delivered by an earlier run with the same state key. A corrected or re-issued report has a new issuance time and is delivered again.",
            "default": "auto"
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate 'only new' memory per schedule, e.g. one key per task.",
            "default": "default"
          },
          "includeRawText": {
            "title": "Include raw report text",
            "type": "boolean",
            "description": "Add the full CLI text to each record. Always included when a report could not be parsed.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many records are saved.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}