# Kalshi Weather Scraper: Odds, Forecasts & Observed Highs (`s-r/kalshi-weather-markets`) Actor

Kalshi weather markets per US city in one row per market day: bracket odds, volume, forecasts from NWS, ECMWF, MET Norway and DWD, the observed high or low so far, and the settled result.

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

## Pricing

from $4.00 / 1,000 market days

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 with Station Forecasts

Kalshi weather markets with bid/ask prices, volume, open interest, station forecasts and observations in one dataset. Compare a temperature event's brackets with several weather providers, see what has already been observed, and inspect reported settlement values after the event closes.

The actor returns one row per Kalshi event. Temperature events belong to one city and one daily metric. Brackets are nested in `outcomes`, so an entire market day stays together. Rain has a different structure: Kalshi publishes one nationwide event with independent city markets. Those cities remain nested in one event row, each with its own station and weather data.

### Collecting Kalshi weather markets

Select daily high temperature, daily low temperature or rain. Quotes include Yes and No bid/ask, the last traded price, quoted sizes where available, total volume, recent volume and open interest. Prices are numeric US dollars on a zero-to-one payout scale. Volumes are numbers of contracts and can include fractional contracts.

Each event carries its actual question, date, normalized status, source ticker, retrieval timestamp and link. The settlement station comes from the market's published rules. This matters when different metrics for the same city use different airports: Chicago temperature and Chicago rain use different stations.

### Input

Use `cities` for city names or station codes, such as `NYC`, `Chicago` or `KNYC`. An empty list or `all` selects all supported cities. `metrics` defaults to high and low; add rain when precipitation markets are wanted. A city without a particular metric contributes no event for that metric.

`series_tickers` overrides the city and metric selectors. Supply a weather series such as `KXHIGHNY`, `KXLOWTNYC` or `KXRAIN`, or an exact dated event ticker. A dated ticker selects its own date. `date` accepts today, tomorrow, yesterday or a calendar date in YYYY-MM-DD form, no later than tomorrow. Relative dates use US Eastern time. `days` selects up to 31 calendar days backwards, including the selected date.

`status` supports any, upcoming, open, closed and resolved. The aliases unopened and settled are accepted too. Closed means trading has ended but a result may still be pending. Resolved means all returned child markets have reached determination or finalization.

`include_forecast` and `include_observed` default to true. Choose forecast providers with `forecast_sources`: NWS, ECMWF, MET Norway and DWD, using their identifiers `nws`, `ecmwf`, `metno` and `dwd`. `max_events` caps the total delivered event rows, including continuation pages. The actor collects continuation automatically.

### Use cases

- **Price against forecast.** See whether the bracket that Kalshi prices highest matches the median forecast of several weather providers for the settlement station.
- **Intraday trading context.** Read the observed high or low so far next to the remaining-day forecast before a bracket settles.
- **Backtesting and research.** Collect resolved days with the published outcome and the matching daily report value, then store snapshots by `event_id` and `fetched_at`.
- **Dashboards and alerts.** Feed bracket odds, spread between providers and volume into a sheet, a database or a notification rule.

### Output

Each temperature event includes a `station` object, `outcomes`, a source-by-source `forecast`, `observed` values and a `settlement` block when applicable. Rain cities carry those blocks inside their outcomes. Row identifiers are `event_id`; nested market identifiers are `market_id`.

The implied probability in `outcomes[].price` is the midpoint when both Yes quotes are positive, otherwise the last traded price. Unopened markets retain zero prices. Temperature `fair_probability` divides by the sum of bracket probabilities. Rain cities keep their original probabilities because several cities can all receive rain on the same day.

Temperature forecasts use Fahrenheit; precipitation forecasts use inches. The median, lowest and highest available source forecasts, spread and contributing provider names are returned separately. Source credits and licence information are included in `forecast.attribution`. Provider agreement is descriptive: providers can share model inputs, and the spread is not a calibrated confidence interval.

Today's forecast covers the remaining local day, identified by `coverage: remaining_local_day`. Tomorrow covers its full local day. Today's forecast maximum is therefore the highest temperature still expected, and should be read beside the separate observed maximum. Historical forecasts are unavailable and remain null with a warning.

Observed hourly maxima and minima use settled station reports for the local calendar date. They describe hourly samples, so the official daily extreme may occur between reports and differ. Rain has no hourly precipitation series in this output. Past dates use daily climate reports, with official and preliminary status preserved. Trace precipitation is zero inches with a separate trace flag, following the market rules.

Settlement keeps Kalshi's published value and winning market alongside the matching daily report value. Older events may use a different official source. A report from another provider is never silently presented as that event's official settlement source.

Missing requested providers produce `partial` and readable warnings while available market data remains in the dataset. Provider coverage varies by station and metric; a temperature provider may have no precipitation value. Inspect `providers` and `n_sources` instead of assuming every requested service contributed.

### How this compares

Other Kalshi weather tools on the Store return market quotes, sometimes priced per bracket. This actor adds the weather side to the same row: station-matched forecasts from several providers with median and spread, observed values for the day, and settlement values, so you do not have to join two data sources by hand. Rows are per market day with nested brackets, which keeps a day together instead of splitting it into many small records.

### Pricing

The event-row price and any run-start price are shown in the actor's current Apify pricing panel. One delivered event is one billable market-day row, including its nested brackets and available weather enrichment. Rain is one nationwide event row even when it contains many cities. There are no separate bracket or forecast charges in this actor's row mapping.

No event-row charge applies when no event rows are delivered. A run-start event, when present in the published price model, applies once per run. Non-paying accounts have a delivery limit of ten event rows. That limit is a volume restriction; consult the pricing panel for actual charges and spending limits.

### FAQ

#### Is a forecast bracket a probability prediction?

No. It is the bracket containing the median forecast rounded to the nearest whole Fahrenheit degree. Market probabilities come from quotes. The illustrative market expected value uses bracket midpoints with a simple convention for open-ended brackets.

#### Why can a resolved event have no official report value?

Kalshi can publish a result while the matching report is unavailable, or the event can settle against an older source. The published Kalshi value is retained and missing report information is explicit.

#### Can I retrieve tomorrow before trading opens?

Yes, once Kalshi has created the event. Its status is upcoming and untraded prices can be zero. Before creation there is no matching event to return. For a daily check that also retrieves today's available events, use `{"cities":["NYC"],"date":"tomorrow","days":2}`. This explicitly selects both dates; each returned row keeps its actual event date. A tomorrow-only request can still return no results before publication.

#### How should I store repeated snapshots?

Use `event_id` with `fetched_at` for event snapshots, and `market_id` for nested bracket histories. A multi-page collection observes live prices as each page is collected; it does not freeze the exchange at one instant.

# Actor input Schema

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

Cities to select; empty or all selects every city. Ignored when series_tickers is supplied.

## `series_tickers` (type: `array`):

Override city and metric selection; e.g. KXHIGHNY, KXLOWTNYC, KXRAIN. Full event tickers select their own date.

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

Metrics to collect. Rain is one nationwide event with one independent outcome per selected city.

## `date` (type: `string`):

today, tomorrow, yesterday in US Eastern, or YYYY-MM-DD no later than tomorrow. Event tickers carry their own date.

## `days` (type: `integer`):

Number of calendar days backwards from date, including date. Dated event tickers select only their explicit date.

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

Normalized status filter. settled and unopened are accepted aliases.

## `include_forecast` (type: `boolean`):

Include forecasts per source and consensus for today/tomorrow. Historical forecasts are unavailable.

## `forecast_sources` (type: `array`):

Requested forecast sources. Missing sources produce partial and warnings; provider coverage varies.

## `include_observed` (type: `boolean`):

Include settled hourly temperatures for today, or daily climate reports and official-value cross-checks for past dates.

## `max_events` (type: `integer`):

Maximum delivered event rows across all cursor pages, not a bracket limit.

## `cursor` (type: `string`):

Opaque signed continuation token; reuse the original filters. Maximum 20 events are examined per request.

## Actor input object example

```json
{
  "cities": [],
  "series_tickers": [],
  "metrics": [
    "high",
    "low"
  ],
  "date": "today",
  "days": 1,
  "status": "any",
  "include_forecast": true,
  "forecast_sources": [
    "nws",
    "ecmwf",
    "metno",
    "dwd"
  ],
  "include_observed": true,
  "max_events": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `output` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/kalshi-weather-markets").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("s-r/kalshi-weather-markets").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 '{}' |
apify call s-r/kalshi-weather-markets --silent --output-dataset

```

## MCP server setup

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

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/gVBRs6yYjHVUaf3rR/builds/LEf4LDRBNW59LYRCu/openapi.json
