{
  "openapi": "3.0.1",
  "info": {
    "title": "Kalshi Settlement Data - The Weather Company Daily Values",
    "description": "The daily high, low, precipitation and snowfall The Weather Company publishes for Kalshi settlement, one row per station and day, with official, preliminary, revised or pending status, the climate code and the Kalshi series, event and settled result next to it. US and international.",
    "version": "0.1",
    "x-build-id": "ftL3VjwctuCgHRzle"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~kalshi-settlement-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-kalshi-settlement-data",
        "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/neverempty~kalshi-settlement-data/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-kalshi-settlement-data",
        "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/neverempty~kalshi-settlement-data/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-kalshi-settlement-data",
        "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": {
          "lastDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "How many days to read, counted back from yesterday (UTC), or back from endDate when you set one. 3 = the last three days, the usual window in which US values move from preliminary to official. Ignored when both startDate and endDate are set. Up to 366.",
            "default": 3
          },
          "startDate": {
            "title": "Start date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First day to read, written as YYYY-MM-DD, for example 2026-07-01. With startDate alone the run reads from that day to yesterday. The Weather Company's Kalshi values start on 2026-06-01; earlier dates are not requested and a free row says so. Leave empty to use lastDays."
          },
          "endDate": {
            "title": "End date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last day to read, written as YYYY-MM-DD. Today (UTC) is the latest allowed day; values of today are usually still empty or preliminary. Leave empty for yesterday. The range can be up to 366 days."
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "us = the 48 US climate stations of Kalshi's US markets (degrees Fahrenheit, inches). international = the 21 stations outside the US such as London EGLL, Tokyo RJTT or Paris LFPG (degrees Celsius, millimeters). Empty = both. Each region is one weather.com request per day.",
            "items": {
              "type": "string",
              "enum": [
                "us",
                "international"
              ],
              "enumTitles": [
                "US stations (F, inches)",
                "International stations (C, mm)"
              ]
            }
          },
          "stations": {
            "title": "Stations (optional)",
            "type": "array",
            "description": "Only these stations, one per line. US stations by the three-letter climate code Kalshi's rules use (NYC, MDW, LAX, AUS; CLINYC also works) or the ICAO code (KNYC); international stations by ICAO code (EGLL, RJTT). Lowercase is accepted. Empty = every station of the chosen regions. A code that matches no station comes back in one free 'unknown-station' row that lists the codes seen.",
            "items": {
              "type": "string"
            }
          },
          "includeKalshi": {
            "title": "Add the Kalshi market of each station and day",
            "type": "boolean",
            "description": "On = every row also gets the Kalshi daily high, low and rain market settled on The Weather Company for that station and day: series, event, status, settled value, the markets that resolved Yes, the markets the TWC value falls in, and whether Kalshi's settled value equals the TWC value. Free of extra charge. Off = only The Weather Company values.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum station-day rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "With monitoring off, the run stops once this many station-day rows have been returned, and a free row says what was not returned. Free rows do not count. In monitoring mode it does not limit the changed rows returned.",
            "default": 1000
          },
          "monitoringMode": {
            "title": "Monitoring mode: return only station-days that changed since the last run",
            "type": "boolean",
            "description": "Off = every station-day with a value comes back, charged per row. On = the Actor remembers each station-day's report status, high, low, precipitation, snowfall and Kalshi settlement, and later runs return only station-days where one of these changed (for example preliminary to official, or a revised value). The first run returns every station-day once as a baseline. In monitoring mode every station-day with a value costs $0.30 per 1,000 checks, changed or not, plus the row price for the rows returned. Example: the last 3 days of the US every hour = about 104,000 checks a month = $31, plus the rows that changed. Do not put the same dates in two schedules that can run at the same time.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Forget what was remembered and start over",
            "type": "boolean",
            "description": "Clears every remembered station-day for this Actor, so the next monitoring run returns every station-day again as a first check. This affects all your monitoring runs. Turn it off again after one run: left on in a schedule, every run returns every row again and charges for it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}