{
  "openapi": "3.0.1",
  "info": {
    "title": "Kalshi Weather Markets Scraper",
    "description": "Collect Kalshi weather prediction markets for analysis: daily high and low temperature and daily rain for 29 US cities. One row per bracket with city, date, strikes, unit, probability, bid, ask, settlement station and link. No API key. Optional price history.",
    "version": "0.1",
    "x-build-id": "B9y9N9D7qhj9kwRMj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mrbridge~kalshi-weather-markets-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mrbridge-kalshi-weather-markets-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/mrbridge~kalshi-weather-markets-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mrbridge-kalshi-weather-markets-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/mrbridge~kalshi-weather-markets-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mrbridge-kalshi-weather-markets-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 collect, by slug. Leave empty for every city of the list.",
            "items": {
              "type": "string",
              "enum": [
                "atlanta",
                "austin",
                "boston",
                "chicago",
                "college-station",
                "dallas",
                "denver",
                "detroit",
                "houston",
                "indianapolis",
                "las-vegas",
                "los-angeles",
                "miami",
                "milwaukee",
                "minneapolis",
                "new-orleans",
                "new-york-city",
                "newark",
                "oklahoma-city",
                "philadelphia",
                "phoenix",
                "pittsburgh",
                "san-antonio",
                "san-diego",
                "san-francisco",
                "seattle",
                "tampa",
                "trenton",
                "washington-dc"
              ],
              "enumTitles": [
                "Atlanta",
                "Austin",
                "Boston",
                "Chicago",
                "College Station",
                "Dallas",
                "Denver",
                "Detroit",
                "Houston",
                "Indianapolis",
                "Las Vegas",
                "Los Angeles",
                "Miami",
                "Milwaukee",
                "Minneapolis",
                "New Orleans",
                "New York City",
                "Newark",
                "Oklahoma City",
                "Philadelphia",
                "Phoenix",
                "Pittsburgh",
                "San Antonio",
                "San Diego",
                "San Francisco",
                "Seattle",
                "Tampa",
                "Trenton",
                "Washington, DC"
              ]
            },
            "default": [
              "atlanta",
              "austin",
              "boston",
              "chicago",
              "college-station",
              "dallas",
              "denver",
              "detroit",
              "houston",
              "indianapolis",
              "las-vegas",
              "los-angeles",
              "miami",
              "milwaukee",
              "minneapolis",
              "new-orleans",
              "new-york-city",
              "newark",
              "oklahoma-city",
              "philadelphia",
              "phoenix",
              "pittsburgh",
              "san-antonio",
              "san-diego",
              "san-francisco",
              "seattle",
              "tampa",
              "trenton",
              "washington-dc"
            ]
          },
          "metrics": {
            "title": "Measures",
            "type": "array",
            "description": "Highest temperature of the day, lowest temperature of the day and daily rain. Leave empty for all three. Not every city has all three: a city with no market for a measure gives no row for it.",
            "items": {
              "type": "string",
              "enum": [
                "highTemp",
                "lowTemp",
                "rain"
              ],
              "enumTitles": [
                "Highest temperature",
                "Lowest temperature",
                "Daily rain"
              ]
            },
            "default": [
              "highTemp",
              "lowTemp",
              "rain"
            ]
          },
          "dateFrom": {
            "title": "First date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First local date kept, written YYYY-MM-DD, for example 2026-11-02. It is the day the market is about, in the time zone of the city. Leave empty, with the last date empty too, for today and tomorrow. With only one of the two dates, that single day is returned."
          },
          "dateTo": {
            "title": "Last date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last local date kept, written YYYY-MM-DD. It must not be before the first date and at most 366 days after it."
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "closed",
              "settled",
              "all"
            ],
            "type": "string",
            "description": "Status filter of the event listings. Open markets are the ones that can still be traded. With Closed, Settled or All and no date, the default window (today and tomorrow) returns almost no market: give the first and last date to read past markets.",
            "default": "open"
          },
          "maxItems": {
            "title": "Maximum markets",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on the market rows returned and billed, from 1 to 10000. The run stops once that many rows are delivered.",
            "default": 100
          },
          "includeHistory": {
            "title": "Include price history ($)",
            "type": "boolean",
            "description": "Fill the history column with the price of the market over time. A row whose history is not empty is billed one extra market-history event. A row with no price points (history is an empty list) is not billed. Without this option, or when the history cannot be read, history is null.",
            "default": false
          },
          "historyInterval": {
            "title": "History interval",
            "enum": [
              "1h",
              "1d"
            ],
            "type": "string",
            "description": "Size of one price point. Hourly points need about 7 times more requests than daily points over the same period (for 1 000 open markets over 30 days: 77 candlestick requests hourly, 10 daily). Used only when price history is on.",
            "default": "1d"
          },
          "historyDays": {
            "title": "History days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many days back the history goes, from 1 to 365. Used only when price history is on.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}