{
  "openapi": "3.0.1",
  "info": {
    "title": "Kalshi Weather Markets — Odds, Brackets & Forecast",
    "description": "Every Kalshi daily temperature market — 24 US cities, highs and lows — with per-bracket prices, fair probabilities with the exchange's overround stripped out, and the weather forecast for the exact station a market settles on next to the market's own expected temperature. No API key, no login.",
    "version": "0.1",
    "x-build-id": "35KprUHepKODWuPhb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~kalshi-weather-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-kalshi-weather-scraper",
        "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/lergassy~kalshi-weather-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-kalshi-weather-scraper",
        "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/lergassy~kalshi-weather-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-kalshi-weather-scraper",
        "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": "📋 What to get",
            "enum": [
              "markets",
              "events",
              "forecast",
              "series"
            ],
            "type": "string",
            "description": "<b>Brackets</b> is the raw table: every temperature band with its price. <b>Days</b> collapses them into one row per city and day with the whole distribution. <b>Forecast vs market</b> keeps only days where a weather forecast exists and shows the gap between it and the market's own expected temperature.",
            "default": "markets"
          },
          "metrics": {
            "title": "🌡️ What kind of weather",
            "type": "array",
            "description": "Kalshi files all of these under Climate and Weather. Daily high and low are the ones traded every day; rain, snow and hurricane series are listed but often have no open event.",
            "items": {
              "type": "string",
              "enum": [
                "high",
                "low",
                "average",
                "rain",
                "snow",
                "temperature",
                "hurricane",
                "disaster",
                "other"
              ],
              "enumTitles": [
                "Daily high",
                "Daily low",
                "Weekly average",
                "Rain",
                "Snow",
                "Hourly temperature",
                "Hurricanes",
                "Natural disasters",
                "Everything else"
              ]
            },
            "default": [
              "high",
              "low"
            ]
          },
          "cities": {
            "title": "🏙️ Cities",
            "type": "array",
            "description": "Leave empty for every city Kalshi lists. Partial names work: <code>New York</code>, <code>Chicago</code>, <code>Phoenix</code>. 24 US settlement stations are mapped to coordinates, so the forecast compares against the exact station a market settles on.",
            "items": {
              "type": "string"
            }
          },
          "days": {
            "title": "📅 Days ahead",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How far ahead to look. Kalshi opens a fresh event per city per day; the forecast covers up to 16 days.",
            "default": 3
          },
          "withForecast": {
            "title": "🔭 Add the weather forecast",
            "type": "boolean",
            "description": "Fetches the Open-Meteo forecast for each city and puts it next to the market price. Turn it off for a pure market snapshot; it costs nothing either way.",
            "default": true
          },
          "minVolume": {
            "title": "💧 Minimum volume",
            "minimum": 0,
            "type": "integer",
            "description": "Drop brackets that have barely traded. Far-out temperature bands often sit at a fraction of a cent with no volume at all.",
            "default": 0
          },
          "includeSettled": {
            "title": "Include settled days",
            "type": "boolean",
            "description": "Off by default: only days you can still trade. Turn on to see how past days resolved.",
            "default": false
          },
          "seriesTickers": {
            "title": "Series tickers",
            "type": "array",
            "description": "Skip the filters and name the series directly: <code>KXHIGHNY</code>, <code>KXLOWTEGLL</code>, <code>KXRAINDNYC</code>. Run the series mode once to see them all.",
            "items": {
              "type": "string"
            }
          },
          "maxRows": {
            "title": "💯 Maximum rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on rows per run.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}