{
  "openapi": "3.0.1",
  "info": {
    "title": "Kalshi Weather Markets with NWS Forecast & Settlement",
    "description": "Every Kalshi temperature and rain bracket with its price, the National Weather Service forecast for that city and day, whether the forecast lands in the bracket, and the reading that settled it.",
    "version": "0.0",
    "x-build-id": "TRwZASGCLjLO5StnY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~kalshi-weather-markets-nws-forecast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-kalshi-weather-markets-nws-forecast-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/scrapebench~kalshi-weather-markets-nws-forecast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-kalshi-weather-markets-nws-forecast-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/scrapebench~kalshi-weather-markets-nws-forecast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-kalshi-weather-markets-nws-forecast-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities to read, as Kalshi names them: 'NYC', 'Chicago', 'Los Angeles', 'Miami', 'Denver', 'Austin'. Leave empty for every city. US cities get an NWS forecast; London, Tokyo, Paris and the rest are returned without one.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "One city. Kept alongside 'Cities' for saved tasks and API callers."
          },
          "metrics": {
            "title": "Markets to read",
            "type": "array",
            "description": "high = daily high temperature, low = daily low temperature, rain = daily rain. Default: high and low.",
            "default": [
              "high",
              "low"
            ],
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Open or settled",
            "enum": [
              "open",
              "settled"
            ],
            "type": "string",
            "description": "open = markets still trading, with prices and forecast. settled = finished markets with the temperature that settled them.",
            "default": "open"
          },
          "seriesTickers": {
            "title": "Kalshi series tickers",
            "type": "array",
            "description": "Skip the city filter and name series directly: KXHIGHNY, KXLOWTEGLL (London low), KXRAINDNYC. Overrides 'Cities' and 'Markets to read'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "days": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Only markets for today and the next N-1 days. 0 = every open day.",
            "default": 0
          },
          "minVolume": {
            "title": "Minimum volume",
            "minimum": 0,
            "type": "integer",
            "description": "Drop brackets with fewer contracts traded than this. Far-out brackets often sit at a cent with no trades.",
            "default": 0
          },
          "dates": {
            "title": "Dates",
            "type": "array",
            "description": "Only markets for these days (YYYY-MM-DD). Empty = every open day, or the last few days when settled.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Days back (settled)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "For 'settled': how many days back to read.",
            "default": 3
          },
          "includeForecast": {
            "title": "Include the NWS forecast",
            "type": "boolean",
            "description": "Adds the National Weather Service forecast for each bracket's city and day, whether it falls inside the bracket and how far outside. US cities, about a week ahead.",
            "default": true
          },
          "includeOrderbook": {
            "title": "Include the order book",
            "type": "boolean",
            "description": "One extra row per market with every resting yes and no price level and the depth. Billed per row.",
            "default": false
          },
          "includeTrades": {
            "title": "Include trade history",
            "type": "boolean",
            "description": "One extra row per market with its most recent trades (time, price, size, taker side). Billed per row.",
            "default": false
          },
          "maxTrades": {
            "title": "Trades per market",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many recent trades to list per market when trade history is on.",
            "default": 50
          },
          "maxResults": {
            "title": "Maximum markets",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on market rows for the whole run: your spend control. Nearest day first, busiest brackets first. Order book and trade rows follow the markets returned.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional and off by default: Kalshi and the National Weather Service are public, keyless APIs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}