# Kalshi Weather Markets Scraper (`mrbridge/kalshi-weather-markets-scraper`) Actor

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.

- **URL**: https://apify.com/mrbridge/kalshi-weather-markets-scraper.md
- **Developed by:** [MrBridge](https://apify.com/mrbridge) (community)
- **Categories:** Business, News
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 markets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Kalshi Weather Markets Scraper

Read Kalshi weather prediction markets as data for analysis, with one row per bracket. Cover daily highest temperature, lowest temperature and rain through `highTemp`, `lowTemp` and `rain` across 29 US cities. Export the results as JSON, CSV or Excel. The Actor reads the public Kalshi API without an account or API key. Price history is optional.

The Console prefill selects `new-york-city`, all three measures and `maxItems` 20. The offline example added the capture date 2026-11-02. Its sample bracket asked "Will the maximum temperature be <65° on Nov 2, 2026?", with probability 0.255 and settlement station `CLINYC`. Without dates, each city returns today and tomorrow in its own time zone. One date selects that day alone. For a longer range, `dateTo` can be at most 366 days after `dateFrom`.

### What is Kalshi Weather Markets Scraper?

A weather market asks whether a value for a city on a day falls within a range. Each range is a bracket. Each bracket is a yes or no market priced in dollars per contract from 0 to 1, which you can read as a probability.

You select brackets by cities and measures, then refine them with status and date filters. Duplicate markets are removed. City, measure, date and strikes are typed columns, so you do not need to parse titles. The first columns follow the same fixed prediction-market layout as the other Actors of this family.

#### What data can I extract with it?

Weather columns identify the city, measure, local date, bracket strikes, unit, settlement station and settlement agency. They include `metric`, `targetDate`, `bracketLow`, `bracketHigh`, `strikeType`, `unit`, `station` and `settlementAgency`.

Market columns provide probability, best bid and ask, last price, volumes, open interest, close time, status, resolution and the event page. The Kalshi market and event identifiers, titles, outcomes, tags and timestamps are also included.

#### How can I use the results?

- Examine the probability given to a heat record, a cold night or a rainy day.
- Compare the market with a weather model or a forecast feed, bracket by bracket.
- Read closed and settled brackets with `status` and a date range to study how prices matched the observed weather.
- Load the typed rows into a dashboard or research notebook.

The Actor returns market prices, not a weather forecast.

### How to use it

1. Choose your cities and measures. Leave `cities` empty for every city, or `metrics` empty for all three measures.
2. Set the status, local date range and `maxItems`. Add `includeHistory` if you need price history.
3. Run the Actor and export the default dataset as JSON, CSV or Excel. Check the `errors` dataset and `OUTPUT` record for run details.

### Input

| Field | Meaning | Default |
|---|---|---|
| `cities` | Cities to collect, by slug, from `atlanta` to `washington-dc` (29 choices) | empty (every city) |
| `metrics` | `highTemp`, `lowTemp` or `rain`. A city with no market for a measure gives no row for it | empty (all three) |
| `dateFrom` | First local date kept, `YYYY-MM-DD` | empty |
| `dateTo` | Last local date kept, `YYYY-MM-DD`, at most 366 days after `dateFrom` | empty |
| `status` | `open`, `closed`, `settled` or `all`. Filters the listings | `open` |
| `maxItems` | Hard cap on bracket rows returned and billed, 1 to 10000 | 100 |
| `includeHistory` | Add the price history of each bracket | `false` |
| `historyInterval` | Size of one price point, `1h` or `1d` | `1d` |
| `historyDays` | Days of history, 1 to 365 | 30 |

The Console prefill uses New York City and all three measures. This offline example adds 2026-11-02 as both dates:

```json
{
  "cities": [
    "new-york-city"
  ],
  "metrics": [
    "highTemp",
    "lowTemp",
    "rain"
  ],
  "dateFrom": "2026-11-02",
  "dateTo": "2026-11-02",
  "status": "open",
  "maxItems": 20
}
```

`targetDate` is the local date in the city's time zone. Brackets for two cities on the same date can therefore cover different hours. The date filter is also local, and dropped brackets are counted in `filteredOut`.

With no date, the Actor reads today and tomorrow for each city. Supplying one date alone selects only that day.

Invalid input ends the run successfully with one `BAD_INPUT` row in the `errors` dataset. That row lists every problem, and no market row is returned. This is different from `stoppedBy` set to `badInput`, which means Kalshi refused the first request.

### Output

| Field | Type | Meaning |
|---|---|---|
| `venue` | string | Always `kalshi` |
| `marketId` | string | Kalshi market ticker, the key of the row |
| `eventId` | string or null | Ticker of the event the market belongs to |
| `eventTitle` | string or null | Title of that event |
| `question` | string or null | The market's own question |
| `outcome` | string or null | The side that `probability` prices, `Yes` on Kalshi |
| `outcomes` | array | `Yes` at p and `No` at 1 - p, objects `{ label, price }`. `[]` when absent |
| `probability` | number or null | 0 to 1. Midpoint of bid and ask when both exist and the spread is at most 0.10, else the last trade, else the midpoint however wide. Null when the book has one side only and the market never traded |
| `bestBid`, `bestAsk`, `lastPrice` | number or null | Dollars per contract, 0 to 1 |
| `volume`, `volume24h` | number or null | In contracts, see `volumeUnit` |
| `volumeUnit` | string | Always `contracts` |
| `liquidity` | null | Always null, Kalshi does not serve it |
| `openInterest` | number or null | In contracts |
| `status` | string or null | `open`, `closed` or `resolved` |
| `statusRaw` | string or null | The status as Kalshi writes it |
| `resolution` | string or null | `Yes` or `No` once resolved |
| `openTime`, `closeTime`, `resolvedAt` | string or null | ISO 8601 in UTC |
| `category` | string or null | Kalshi category, `Climate and Weather` |
| `tags` | array | Kalshi tag names. `[]` when absent |
| `moneyType` | string | Always `real` |
| `url` | string or null | Kalshi event page that lists this bracket |
| `history` | array or null | Price history, see below |
| `scrapedAt` | string | Time the row was built, ISO 8601 in UTC |
| `seriesTicker` | string or null | Ticker of the series |
| `settlementSources` | array | Sources the market settles on, objects `{ name, url }` |
| `strikeDate` | string or null | Strike date of the event, ISO 8601 in UTC |
| `marketSubtitle` | string or null | The yes side in short |
| `city` | string or null | City of the market, as Kalshi writes it, else the name in the Actor table |
| `metric` | string | `highTemp`, `lowTemp` or `rain` |
| `targetDate` | string | Local date the market is about, `YYYY-MM-DD` |
| `bracketLow` | number or null | Lower strike as Kalshi writes it, null for a `below` bracket |
| `bracketHigh` | number or null | Upper strike as Kalshi writes it, null for an `above` bracket |
| `strikeType` | string or null | `above`, `below` or `between` |
| `unit` | string or null | `F`, `C` or `in`, read from the rules. Null when the rules name none |
| `station` | string or null | Weather station code in the rules, for example `CLINYC`. Null when the rules give none |
| `settlementAgency` | string or null | Who publishes the settlement value, for example `The Weather Company`. Null when the rules give none |

Bracket rows go to the default dataset. Problems go to the separate `errors` dataset and are never billed. The `OUTPUT` record summarizes the run. The `weather` and `history` views provide convenient access to the results.

Every field is always present. A value is `null` when Kalshi gives no value, while `outcomes` and `tags` use `[]` when absent.

Here is one sample row from a fixture captured on 2026-11-02:

```json
{
  "venue": "kalshi",
  "marketId": "KXHIGHNY-26NOV02-T65",
  "eventId": "KXHIGHNY-26NOV02",
  "eventTitle": "Highest temperature in New York City on Nov 2, 2026?",
  "question": "Will the maximum temperature be <65° on Nov 2, 2026?",
  "outcome": "Yes",
  "outcomes": [
    {
      "label": "Yes",
      "price": 0.255
    },
    {
      "label": "No",
      "price": 0.745
    }
  ],
  "probability": 0.255,
  "bestBid": 0.25,
  "bestAsk": 0.26,
  "lastPrice": 0.26,
  "volume": 10087.23,
  "volume24h": 10087.23,
  "volumeUnit": "contracts",
  "liquidity": null,
  "openInterest": 5446.48,
  "status": "open",
  "statusRaw": "active",
  "resolution": null,
  "openTime": "2026-11-01T15:00:00.000Z",
  "closeTime": "2026-11-03T06:00:00.000Z",
  "resolvedAt": null,
  "category": "Climate and Weather",
  "tags": [
    "Daily temperature"
  ],
  "moneyType": "real",
  "url": "https://kalshi.com/markets/kxhighny/highest-temperature-in-nyc/kxhighny-26nov02",
  "history": null,
  "scrapedAt": "2026-11-02T13:00:00.000Z",
  "seriesTicker": "KXHIGHNY",
  "settlementSources": [
    {
      "name": "The Weather Company",
      "url": "https://weather.com/kalshi"
    }
  ],
  "strikeDate": "2026-11-03T06:00:00.000Z",
  "marketSubtitle": "64° or below",
  "city": "New York City",
  "metric": "highTemp",
  "targetDate": "2026-11-02",
  "bracketLow": null,
  "bracketHigh": 65,
  "strikeType": "below",
  "unit": "F",
  "station": "CLINYC",
  "settlementAgency": "The Weather Company"
}
```

### Price history

Set `includeHistory` to add the `history` column. Each entry is an object `{ t, price }`, sorted by `t`. Choose `historyInterval` `1h` or `1d`, and request from 1 to 365 days with `historyDays`.

A row with a non-empty history is billed one extra `market-history` event. An empty history list is not billed.

Open brackets are read in batches of up to 100 tickers, so 1 000 open brackets cost about 10 requests. Old settled brackets require one request each.

`history` is `null` in two cases. First, history was not requested. Second, the history of that bracket could not be read.

If a candlestick answer cannot be parsed, `history` is `null` and a `SCHEMA_CHANGED` row appears in the `errors` dataset. Its `itemId` names the ticker, or the tickers of the batch. The market row is still delivered and billed as a `market` only.

### Run it from code

You can start a run through the Apify API with a POST to the Actor's runs endpoint. After the run, read its rows as JSON from the dataset items endpoint.

You can also use the [Apify Python client](https://docs.apify.com/api/client/python/docs), the official library for the Apify REST API. Install it with `pip install apify-client`. It can start an Actor, wait for completion and list default dataset items. Sync and async interfaces are available.

### Limits

- Bracket bounds follow Kalshi's wording. For `strikeType` `above`, the value is greater than `bracketLow`. For `below`, it is lower than `bracketHigh`. For `between`, both bounds are included. The sample has `bracketHigh` 65 and the subtitle "64° or below".
- Temperature markets settle on a value published by The Weather Company at the station named in the rules. These values are read into `station` and `settlementAgency`. Both are null when the rules give none.
- `probability` is null when the book has one side only and the market never traded.
- With `status` set to `closed`, `settled` or `all` and no date, the default window stays today and tomorrow, so almost no closed market comes out. Give `dateFrom` and `dateTo` to read past markets.
- The table of cities, time zones and series is kept by hand. It covers 29 US cities. A new city or series is not read until the table is updated. Hourly temperature, snow and monthly rain are not covered.
- After a reboot, `marketsCharged` can count one row too many. The billed events are the reference.
- `liquidity` is always null. Volumes and open interest are expressed in contracts.
- `url` is the event page that lists the bracket. Its middle part can differ from the address bar.
- Kalshi does not document its rate limit. The Actor waits at least 500 ms between requests. A 429 response is retried after 5, 15 and 30 s. A run makes at most 1 500 requests.
- Each run is a snapshot of the market data available at that time.

### Billing

Each delivered bracket row produces one `market` event. A non-empty price history adds one `market-history` event for that row.

Errors, duplicates, filtered-out listings and empty histories are never billed. Current prices are listed on the Pricing tab.

A moved or restarted run resumes its work. A market already returned is neither returned nor billed again.

### Run summary and early stops

The `OUTPUT` record summarizes the run, including counters such as `marketsCharged` and `filteredOut`. A market listed by two series is returned only once.

`stoppedBy` keeps the first stop reason only. It has 8 possible values:

- `null`: all the requested work was done.
- `maxItems`: the cap was reached.
- `chargeLimit`: the maximum charge set for the run was reached.
- `deadline`: the run reached its internal time limit.
- `circuitOpen`: too many blocked responses occurred in a row.
- `pageBudget`: the request budget of the run was spent.
- `badInput`: Kalshi refused the first request as invalid. This is not the Actor's input validation.
- `fetchFailed`: the last walk ended on a page that could not be fetched. `failedWalks` lists the first 20 failed walks.

The `errors` dataset uses 8 error kinds. A ticker with no readable date gives a `LISTING_INVALID` row.

### Frequently asked questions

#### Why did I get fewer rows than `maxItems`?

`maxItems` is a hard cap, not a target. Date and status filters can remove listings, and duplicates are returned once. A city without the selected measure gives no row for it. An early stop can also end the run before the cap.

#### Why is there no row for a city and a measure?

Not every city has all three measures. A missing measure gives no row and no error. Leave `metrics` empty to request every measure available for each selected city.

#### Why is `probability` empty?

`probability` is null when the book has one side only and the market never traded. The field remains present so that every row keeps the same structure.

#### Can I use this Actor through MCP?

Yes. Any Apify Actor can be called from an MCP client through the Apify MCP server. See the [Apify MCP documentation](https://docs.apify.com/platform/integrations/mcp) for the setup.

#### Need real-time interactive access?

For live questions from an AI assistant, such as the latest news and prediction market signals, use the [Latest News MCP Server](https://apify.com/mrbridge/latest-news-mcp-server). This Actor is built for batch runs and datasets.

#### Your feedback

We're always working on improving the performance of our Actors. So if you've got any technical feedback for Kalshi Weather Markets Scraper or simply found a bug, please create an issue on the Actor's [Issues tab](https://apify.com/mrbridge/kalshi-weather-markets-scraper/issues).

An honest review helps the next users decide. You can also bookmark this Actor, and use the Issues tab for bugs or other problems.

More free tools, scrapers, MCP servers and data studies from the same team: [mr-bridge.com](https://mr-bridge.com).

### Related Actors

- [kalshi-markets-scraper](https://apify.com/mrbridge/kalshi-markets-scraper) is a separate MrBridge Actor with Kalshi as its source.
- [polymarket-markets-scraper](https://apify.com/mrbridge/polymarket-markets-scraper) is a separate MrBridge Actor with Polymarket as its source.

### Legal & responsible use

This Actor reads the public Kalshi API. Kalshi has its own terms of use, which may restrict automated access or commercial reuse. Check those terms and the law that applies to your use. You remain responsible for how you access and use the data.

Prices are information, not financial advice. MrBridge is not affiliated with or endorsed by Kalshi. The Kalshi name only identifies the data source.

# Changelog

This Actor's version history is a separate document: https://apify.com/mrbridge/kalshi-weather-markets-scraper/changelog.md

# Actor input Schema

## `cities` (type: `array`):

Cities to collect, by slug. Leave empty for every city of the list.

## `metrics` (type: `array`):

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.

## `dateFrom` (type: `string`):

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` (type: `string`):

Last local date kept, written YYYY-MM-DD. It must not be before the first date and at most 366 days after it.

## `status` (type: `string`):

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.

## `maxItems` (type: `integer`):

Hard cap on the market rows returned and billed, from 1 to 10000. The run stops once that many rows are delivered.

## `includeHistory` (type: `boolean`):

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.

## `historyInterval` (type: `string`):

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.

## `historyDays` (type: `integer`):

How many days back the history goes, from 1 to 365. Used only when price history is on.

## Actor input object example

```json
{
  "cities": [
    "new-york-city"
  ],
  "metrics": [
    "highTemp",
    "lowTemp",
    "rain"
  ],
  "status": "open",
  "maxItems": 20,
  "includeHistory": false,
  "historyInterval": "1d",
  "historyDays": 30
}
```

# Actor output Schema

## `markets` (type: `string`):

Direct link to all dataset items produced by the run.

## `summary` (type: `string`):

Direct link to the OUTPUT record: requests made, markets read, returned and billed, errors by kind and the reason of an early stop.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cities": [
        "new-york-city"
    ],
    "metrics": [
        "highTemp",
        "lowTemp",
        "rain"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrbridge/kalshi-weather-markets-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "cities": ["new-york-city"],
    "metrics": [
        "highTemp",
        "lowTemp",
        "rain",
    ],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("mrbridge/kalshi-weather-markets-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cities": [
    "new-york-city"
  ],
  "metrics": [
    "highTemp",
    "lowTemp",
    "rain"
  ],
  "maxItems": 20
}' |
apify call mrbridge/kalshi-weather-markets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrbridge/kalshi-weather-markets-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5IruFntIwTEIPMT12/builds/B9y9N9D7qhj9kwRMj/openapi.json
