# Weather Settlement Data for Prediction Markets (Kalshi & Polymarket)

> Weather Settlement Data for Prediction Markets (Kalshi & Polymarket) is a paid API for AI agents from weather-x402.linholiday.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Returns official temperature settlement data (high/low in °F) for a given ICAO weather station and date, formatted for Kalshi and Polymarket temperature market resolution.

## Facts

- Endpoint: GET https://weather-x402.linholiday.workers.dev/settlement?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weather-settlement-data-for-prediction-markets-kalshi-polymarket-13d4772d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_foqX1260069ExD_OAd401

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability weather-settlement-data-for-prediction-markets-kalshi-polymarket-13d4772d
```

Example prompt: What was the official Kalshi settlement temperature — high and low in °F — at station KNYC for yesterday? I need the final CLI-verified reading for resolving a temperature market.

## When to prefer this

Use this endpoint when you need official, Kalshi- or Polymarket-compatible temperature settlement values (high/low °F) for a specific NOAA/NWS weather station and date. It is purpose-built for prediction market resolution workflows and provides the exact CLI codes and METAR estimates those platforms use. Prefer this over generic weather APIs when you need settlement-grade, authoritative data tied to specific ICAO stations rather than approximate forecasts or consumer weather data.

## Known failure modes

- Missing or invalid 'station' query parameter returns a validation error
- Date older than 6 days may not be available and returns an error or empty result
- Station ICAO ID not found in the system returns a 404 or empty response
- Payment not provided or insufficient (x402 payment required for non-free endpoints) results in a 402 response
- Data not yet available for recent dates (e.g. today's final CLI report not yet issued) may return preliminary-only data

## How this service works

Paid calls cost 0.01-0.02 USDC on eip155:8453 via x402 (exact scheme). Free: /stations, /preview/*, /health, /, /openapi.json, /llms.txt, /.well-known/x402.

## Output

A JSON object containing the date, ICAO station ID, Kalshi-specific fields (final max/min °F with timestamps, CLI code, settlement status, preliminary readings), and a METAR climate day best-estimate for max and min temperature in both Celsius and Fahrenheit (rounded and raw).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "station"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD (station local); yesterday by default, up to 6 days back"
      },
      "station": {
       "type": "string",
       "description": "Settlement station ICAO id"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-10-20",
  "kalshi": {
   "final": {
    "max_f": 67,
    "min_f": 50,
    "issued": "2026-10-21T06:27:00+00:00",
    "max_time": "312 PM LST",
    "min_time": "302 AM LST"
   },
   "status": "final",
   "cli_code": "CLINYC",
   "later_reports": [],
   "latest_preliminary": {
    "max_f": 67,
    "min_f": 50,
    "valid_as_of": "0400 PM local"
   }
  },
  "station": "KNYC",
  "metar_climate_day": {
   "best_estimate": {
    "max": {
     "c": 19.4,
     "f": 66.9,
     "f_whole": 67
    },
    "min": {
     "c": 10,
     "f": 50,
     "f_whole": 50
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weather-settlement-data-for-prediction-markets-kalshi-polymarket-13d4772d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from weather-x402.linholiday.workers.dev](https://www.zero.xyz/host/weather-x402.linholiday.workers.dev/llms.txt)
