API Documentation

  • Getting Started

    Introduction

    The Wethr.net API gives you programmatic access to the same observations, resolution logic, precipitation engines and model data that power the dashboards, for 140 market stations across the US and abroad (international stations report in Celsius). Every API below uses the same API key.

    APIs come in two kinds. REST REST endpoints answer a request with the current data. Push PUSH services hold one connection open and send each change the moment it happens (see Streaming Basics). Products marked DEV+ need a Developer or Enterprise key; everything else works with every API tier. REST base URL: https://wethr.net/api/v2/.

    Which API do I need?

    You wantUse
    Today's high or low as it forms, under a market's resolution rulesObservations API (mode=wethr_high), or the Observations Push API to be told the moment it changes
    Every new observation the moment it arrivesObservations Push API
    DSM and Climate Report (CLI) valuesObservations API (observation_type) or the Observations Push API events
    1-minute observationsHistorical 1-Minute ASOS Archive, about a day behind. No API returns live 1-minute readings; they are used inside the Wethr High/Low.
    Whether the 1-minute feed had gaps on a given day1-Minute Observation Coverage API
    Observations from stations that are not market stationsHF-METAR API (5-minute, about 1,000 US stations) or Nearby Stations (latest reading only)
    Whether it has rained today at a daily rain marketDaily Rain API (REST, or the push stream for each change)
    Rain so far this monthMonthly Precipitation API
    Model forecastsForecasts API; NWS forecasts are in the NWS Forecasts API
    Which model has been most accurateModel Accuracy API
    How today is running against the modelsPacing API
    Kalshi's hourly temperature index before Kalshi publishes itHourly Index API

    API Catalog

    APIWhat it gives youAddress
    Observations
    Observations API
    REST
    Observations for the 140 market stations: routine METARs, SPECIs and 5-minute HF-METAR reports, plus DSM and Climate Report (CLI) highs and lows. Three modes: latest observation, history (up to 24 hours per request) and the Wethr High/Low under each resolution logic (nws, wu, wcom, awc). No raw 1-minute readings: those count toward the Wethr High/Low but are not returned (for 1-minute history, see the 1-Minute Archive)./api/v2/observations.php
    Observations Push API
    PUSH All tiers (Professional: 5 stations)
    The Observations API's data delivered as events for the market stations: each new METAR, SPECI and 5-minute report with the running Wethr High/Low for every logic, DSM and Climate Report releases (including end-of-day finals), and new_high / new_low alerts. No raw 1-minute readings.wethr.net:3443/api/v2/stream
    HF-METAR 5-Minute Observations API
    PUSH REST DEV+
    Raw 5-minute observations from about 1,000 US ASOS stations, well beyond the market roster: temperature, dew point, wind and gusts, visibility, pressure, 5-minute precipitation and cloud layers. Stream, latest per station, and history from September 4, 2026. Sensor values only: no Wethr High/Low or resolution logic.wethr.net:3444 or wethr.net/hfmetar-api
    1-Minute Observation Coverage API
    REST DEV+
    An audit of the 1-minute feed for the 94 stations that have one: which minutes are missing, which arrived without a temperature, and which failed range checks (with the rejected values), for a resolution-day window or any range up to 24 hours. Not a data feed: it never returns valid 1-minute readings./api/v2/coverage.php
    Historical 1-Minute ASOS Archive API
    REST DEV+
    Historical 1-minute observations for about 960 US stations, January 2000 to about one day ago: temperature, dew point, 1-minute precipitation, wind, gusts, pressure and visibility, with climate dates and quality flags on every row. Station-year Parquet/CSV downloads, range queries and a checksum sync listing. About a day behind, not live./api/v2/ncei_1min.php
    Precipitation
    Daily Rain API
    REST PUSH Push: DEV+
    Today's market-day precipitation for the 37 daily rain market stations (Kalshi and Polymarket.com): live observed total, hour-by-hour amounts, trace detection, the reading for the hour in progress, and the Climate Report value (preliminary and final) with a market_status summary. Current day only. The push stream sends each change as it happens.REST /api/v2/daily_rain.php
    Push wethr.net:3446 or wethr.net/rain-api
    Monthly Precipitation API
    REST
    Month-to-date precipitation for 43 US stations: the official Climate Report total through yesterday plus today's live amount, built with the Daily Rain engine. Current month only; past months are not available./api/v2/precipitation.php
    Forecasts
    Forecasts API
    REST
    Model forecasts for the market stations from more than 20 models (HRRR, HRRR-EXT, RRFS, GFS, ECMWF, ICON, GEM, UKMO, NBM, the MOS products and others) plus the REFS ensemble: rows by valid time, a single run or the latest run, or per-day high/low summaries. Temperature, dew point and wind, plus humidity, precipitation and cloud cover where the model provides them./api/v2/forecasts.php
    NWS Forecasts API
    REST
    NWS hourly temperature forecasts for a station, with every published version so you can see how the forecast changed through the day. Up to 2 days ahead and 1 year back; hours follow Local Standard Time. Temperature only./api/v2/nws_forecasts.php
    Model Accuracy API
    REST DEV+
    How well each model has forecast the daily high or low at 118 stations: MAE, bias and RMSE, filtered by model, run time, lead time and time window. Recomputed once a day from verified observations./api/v2/model_accuracy.php
    Pacing API
    REST DEV+
    For today's contract day: the latest observation against each model's forecast interpolated to the same minute (actual minus forecast, as a low/high range), plus an NWS row. The same calculation as the dashboard pacing table./api/v2/pacing.php
    Markets
    Hourly Index API
    PUSH REST DEV+
    Our live estimate of Kalshi's Weather Index for each hourly temperature market city, usually 2 to 3 minutes before Kalshi publishes the minute; Kalshi's official minutes and hourly settlements; station inclusion states, weekly calibration and our accuracy record. Never the raw station observations behind it.wethr.net:3445 or wethr.net/windex-api
    Stations
    Nearby Stations API
    REST DEV+
    Stations within 20 miles of a station (or up to 25 stations you name), each with its latest observation, distance and bearing. Includes airport and non-airport stations./api/v2/nearby.php

    Which tier can use each API is listed under Tiers & Rate Limits. REST addresses are relative to https://wethr.net. Push services run on their own ports; three of them also answer on the standard HTTPS port at the wethr.net/…-api address shown.


    Authentication

    All requests require an API key. Include it in the HTTP header:

    Authorization: Bearer <YOUR_API_KEY>

    Or use the custom header:

    X-API-Key: <YOUR_API_KEY>

    Generate API keys in your Account Settings.


    Tiers & Rate Limits

    Which tier can use which API

    APIProfessionalDeveloperEnterprise
    Observations API REST✓✓✓
    Observations Push API PUSH✓ (5 stations)✓✓
    HF-METAR 5-Minute Observations API PUSH REST–✓✓
    1-Minute Observation Coverage API REST–✓✓
    Historical 1-Minute ASOS Archive API REST–✓✓
    Daily Rain API REST✓✓✓
    Daily Rain Push API PUSH–✓✓
    Monthly Precipitation API REST✓✓✓
    Forecasts API REST✓✓✓
    NWS Forecasts API REST✓✓✓
    Model Accuracy API REST–✓✓
    Pacing API REST–✓✓
    Hourly Index API PUSH REST–✓✓
    Nearby Stations API REST–✓✓

    A key without access to an API receives 403.

    REST request limits

    TierRequests/MinuteRequests/Day
    Professional605,000
    Developer300100,000
    Enterprise1,200500,000

    This is one budget per account, shared by every API and all of your API keys: all endpoints under /api/v2/ plus the HF-METAR, Daily Rain Push and Hourly Index services draw from the same per-minute and per-day counts. A stream connection counts as one request; events within it are free. Responses from the HF-METAR, Daily Rain Push and Hourly Index services carry X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day; every 429 carries Retry-After in seconds.

    Stream allowances

    TierSimultaneous streams per account, per push serviceStations per stream
    Professional1 (Observations Push API only)5
    Developer2Unlimited
    Enterprise10Unlimited

    Each push service counts its own streams: a Developer account can hold 2 Observations Push streams and 2 Daily Rain Push streams at the same time. What happens at the limit is described in Streaming Basics.


    Conventions

    Times

    • Every timestamp is UTC unless its field or description says local time (for example local_date, the archive's ts_lst, or a Climate Report's as_of).
    • Two formats appear, both UTC: 2026-10-26 21:37:00 (most REST fields, no zone marker) and 2026-10-26T21:37:00Z (ISO 8601, used by the push services and newer fields). Parse both as UTC.
    • Request parameters that take a time accept ISO 8601 UTC, for example start_time=2026-10-26T00:00:00Z.

    Days

    • Climate day: midnight to midnight Local Standard Time, so 1:00 AM to 1:00 AM on the local clock while daylight saving time is in effect. Used by NWS-based resolution (logic=nws), Climate Reports, DSMs, Daily Rain and Monthly Precipitation.
    • Local calendar day: midnight to midnight on the local clock, following daylight saving time. Used by logic=wu and logic=awc.
    • Stations in different time zones roll to a new day at different UTC times. Where it matters, responses carry the day they describe (market_date, for_date, date).

    Units

    • Observations API: US stations in °F, international stations in °C; every response carries units.
    • Push events and forecast rows carry both scales, with the unit in the field name (temperature_fahrenheit, dew_point_c).
    • HF-METAR and the 1-Minute Archive report raw sensor values in °C.
    • Precipitation is in inches unless the field name says mm.

    Station codes

    Stations are identified by their ICAO code (KORD, EGLC). Each API accepts its own set of stations; see Station coverage by API. Most APIs answer a code outside their set with 400 and the list of valid stations.


    Streaming Basics

    Every push service uses Server-Sent Events (SSE): an ordinary HTTPS GET that stays open while the server writes events to it. Any SSE client works, including the browser's EventSource, curl -N, or a plain streaming HTTP request in any language. Each event has a name (event:), a JSON body (data:) and, for data events, an increasing id:.

    curl -N -H "X-Api-Key: $KEY" "https://wethr.net:3446/v1/stream?stations=KORD,KDTW"

    Reconnecting and replay

    • Store the last id you processed and send it back when you reconnect, as the Last-Event-ID header (which EventSource sends automatically) or the last_event_id parameter. The service replays what you missed, then continues live.
    • Replay windows are limited (see the table below). After a long outage, re-read current state from the service's REST endpoint or snapshot before trusting a resumed stream.
    • Back off between reconnects (a few seconds, longer after repeated failures) and honor Retry-After on a 429.

    Stream allowances and displacement

    Each account may hold a fixed number of simultaneous streams on each push service (see Stream allowances). Opening one more stream closes your oldest stream on that service, which first receives a displaced event; the account must then wait 2 seconds before connecting again. If your streams keep displacing each other (more auto-reconnecting clients than your allowance), further streams are refused with 429 until one of yours closes. A client that receives displaced should not reconnect automatically.

    Open streams are re-checked against your account once a day. If your key has been disabled or deleted, your plan no longer includes the service, or the stream lists more stations than your plan allows, the stream receives a revoked event (with a message saying why) and is closed. If your plan's allowance went down, your oldest extra streams receive displaced. Do not reconnect automatically after revoked; fix the key or plan first.

    Networks that block non-standard ports

    Push services run on their own ports (3443 to 3446). If your network only allows outbound HTTPS on port 443, the HF-METAR, Daily Rain Push and Hourly Index services also answer at https://wethr.net/hfmetar-api, https://wethr.net/rain-api and https://wethr.net/windex-api, with identical paths, keys, limits and events. The Observations Push API is currently available on port 3443 only.

    Service reference

    Observations PushHF-METARDaily Rain PushHourly Index
    Stream address:3443/api/v2/stream:3444/v1/stream:3446/v1/stream:3445/v1/stream
    Port-443 addressNot yet/hfmetar-api/v1/stream/rain-api/v1/stream/windex-api/v1/stream
    TiersProfessional, Developer, EnterpriseDeveloper, EnterpriseDeveloper, EnterpriseDeveloper, Enterprise
    API keyX-API-Key header or ?api_key=Authorization: Bearer, X-Api-Key header or ?api_key=
    Subscribe withstations= (Professional: up to 5)stations= or ALLstations= or ALLcities= or ALL
    Keep-aliveheartbeat event, 30 scomment line, 30 sheartbeat event, 25 scomment line, 25 s
    Replay windowLast 50 events per stationLast 48 events per station (about 4 h)Last 300 events per station, 24 hLast 720 events per city, 24 h
    Current state on connectNoNoYes (snapshot, real event ids)Yes (snapshot, id "0")
    Also has RESTNo (use the REST APIs)/v1/latest, /v1/history, /v1/stations/v1/latest, /v1/stations/v1/now, /v1/history, /v1/hours and more

    Supported Stations

    Station coverage by API

    APIStations
    Observations, Observations PushThe 140 market stations listed below
    Forecasts, PacingEvery market station, plus the other stations we run models for; for a station without model data, Forecasts returns an empty array (200) and Pacing returns 404
    NWS Forecasts98 US stations
    Model Accuracy118 stations, US and international
    Daily Rain37 daily rain market stations (list)
    Monthly Precipitation43 US stations (list)
    1-Minute Coverage94 US stations with a 1-minute feed (list)
    HF-METARAbout 1,000 US ASOS stations (live list from /v1/stations)
    1-Minute ArchiveAbout 960 US stations, back to 2000 (stations)
    Hourly IndexCities, not stations: the Kalshi index cities in the City Directory
    Nearby StationsAny station in our catalog within 20 miles, airport and non-airport

    Market stations

    US Stations (Fahrenheit)

    CodeLocationTimezone
    KABQAlbuquerqueAmerica/Denver
    KAFWFort Worth AllianceAmerica/Chicago
    KAPCNapaAmerica/Los_Angeles
    KARRAuroraAmerica/Chicago
    KATLAtlantaAmerica/New_York
    KAUSAustinAmerica/Chicago
    KBEDBedfordAmerica/New_York
    KBFISeattle Boeing FieldAmerica/Los_Angeles
    KBKFAurora Buckley SFBAmerica/Denver
    KBNANashvilleAmerica/Chicago
    KBOSBoston LoganAmerica/New_York
    KCCRConcordAmerica/Los_Angeles
    KCDWCaldwellAmerica/New_York
    KCLLCollege StationAmerica/Chicago
    KCLTCharlotteAmerica/New_York
    KCMHColumbusAmerica/New_York
    KCXOConroeAmerica/Chicago
    KDALDallas Love FieldAmerica/Chicago
    KDCAWashington DCAmerica/New_York
    KDENDenverAmerica/Denver
    KDFWDallasAmerica/Chicago
    KDJTWest Palm BeachAmerica/New_York
    KDPAWest ChicagoAmerica/Chicago
    KDTODentonAmerica/Chicago
    KDTWDetroitAmerica/Detroit
    KDWHTomballAmerica/Chicago
    KEWRNewarkAmerica/New_York
    KFLLFort LauderdaleAmerica/New_York
    KFRGFarmingdaleAmerica/New_York
    KFXEFort Lauderdale ExecutiveAmerica/New_York
    KHHRHawthorneAmerica/Los_Angeles
    KHOUHoustonAmerica/Chicago
    KHPNWhite PlainsAmerica/New_York
    KHWDHaywardAmerica/Los_Angeles
    KIAHHouston IntercontinentalAmerica/Chicago
    KINDIndianapolisAmerica/Indiana/Indianapolis
    KISPIslipAmerica/New_York
    KIXDOlathe New CenturyAmerica/Chicago
    KJAXJacksonvilleAmerica/New_York
    KLASLas VegasAmerica/Los_Angeles
    KLAXLos AngelesAmerica/Los_Angeles
    KLEXLexingtonAmerica/New_York
    KLGANew York LaGuardiaAmerica/New_York
    KLGBLong BeachAmerica/Los_Angeles
    KLVKLivermoreAmerica/Los_Angeles
    KLXTLee's SummitAmerica/Chicago
    KMCIKansas CityAmerica/Chicago
    KMDWChicago MidwayAmerica/Chicago
    KMIAMiamiAmerica/New_York
    KMKCKansas City DowntownAmerica/Chicago
    KMKEMilwaukeeAmerica/Chicago
    KMSPMinneapolisAmerica/Chicago
    KMSYNew OrleansAmerica/Chicago
    KNYCNew York Central ParkAmerica/New_York
    KOAKOaklandAmerica/Los_Angeles
    KOJCOlathe ExecutiveAmerica/Chicago
    KOKCOklahoma CityAmerica/Chicago
    KOLMOlympiaAmerica/Los_Angeles
    KOPFOpa-lockaAmerica/New_York
    KORDChicago O'HareAmerica/Chicago
    KORHWorcesterAmerica/New_York
    KOWDNorwoodAmerica/New_York
    KPAEEverettAmerica/Los_Angeles
    KPHLPhiladelphiaAmerica/New_York
    KPHXPhoenixAmerica/Phoenix
    KPITPittsburghAmerica/New_York
    KPMPPompano BeachAmerica/New_York
    KPVDProvidenceAmerica/New_York
    KPWKWheelingAmerica/Chicago
    KRBDDallas ExecutiveAmerica/Chicago
    KSANSan DiegoAmerica/Los_Angeles
    KSATSan AntonioAmerica/Chicago
    KSDFLouisvilleAmerica/Kentucky/Louisville
    KSEASeattleAmerica/Los_Angeles
    KSFOSan FranciscoAmerica/Los_Angeles
    KSGFSpringfieldAmerica/Chicago
    KSGRSugar LandAmerica/Chicago
    KSJCSan JoseAmerica/Los_Angeles
    KSMOSanta MonicaAmerica/Los_Angeles
    KSMQSomervilleAmerica/New_York
    KSNASanta AnaAmerica/Los_Angeles
    KSTLSt. LouisAmerica/Chicago
    KTANTauntonAmerica/New_York
    KTEBTeterboroAmerica/New_York
    KTIWTacomaAmerica/Los_Angeles
    KTPATampaAmerica/New_York
    KTTNTrentonAmerica/New_York

    International Stations (Celsius)

    CodeLocationTimezone
    CYHCVancouver HarbourAmerica/Vancouver
    CYULMontréal-Trudeau International AirportAmerica/Toronto
    CYYZToronto Pearson International AirportAmerica/Toronto
    EBBRBrussels AirportEurope/Brussels
    EDDBBerlin Brandenburg AirportEurope/Berlin
    EDDFFrankfurt AirportEurope/Berlin
    EDDMMunich AirportEurope/Berlin
    EFHKHelsinki-Vantaa AirportEurope/Helsinki
    EGLCLondon City AirportEurope/London
    EGLLLondon Heathrow AirportEurope/London
    EHAMAmsterdam Schiphol AirportEurope/Amsterdam
    EPWAWarsaw Chopin AirportEurope/Warsaw
    FACTCape Town/DF Malan AirportAfrica/Johannesburg
    LEMDMadrid Barajas AirportEurope/Madrid
    LFPBParis Le Bourget AirportEurope/Paris
    LFPGParis Charles de Gaulle AirportEurope/Paris
    LFPOParis Orly AirportEurope/Paris
    LIMCMilan Malpensa AirportEurope/Rome
    LLBGBen Gurion AirportAsia/Jerusalem
    LSGGGeneva AirportEurope/Zurich
    LTACEsenboğa International AirportEurope/Istanbul
    LTFMIstanbul AirportEurope/Istanbul
    MMMXMexico City International AirportAmerica/Mexico_City
    MPMGMarcos Gelabert AirportAmerica/Panama
    NZWNWellington International AirportPacific/Auckland
    OEJNJeddah/King Abdulaziz AirportAsia/Riyadh
    OMDBDubai Intl AirportAsia/Dubai
    OPKCKarachi International AirportAsia/Karachi
    RCSSTaipei Songshan AirportAsia/Taipei
    RJTTTokyo Haneda AirportAsia/Tokyo
    RKPKGimhae International AirportAsia/Seoul
    RKSIIncheon International AirportAsia/Seoul
    RPLLNinoy Aquino International AirportAsia/Manila
    SAEZMinistro Pistarini International Airport (Ezeiza)America/Argentina/Buenos_Aires
    SBGRSão Paulo–Guarulhos International AirportAmerica/Sao_Paulo
    UUWWMoscow Vnukovo AirportEurope/Moscow
    VABBChhatrapati Shivaji Maharaj Intl AirportAsia/Kolkata
    VHHHHong Kong Intl AirportAsia/Hong_Kong
    VHKOHong Kong ObservatoryAsia/Hong_Kong
    VILKChaudhary Charan Singh International AirportAsia/Kolkata
    WMKKKuala Lumpur International AirportAsia/Kuala_Lumpur
    WSSSSingapore Changi AirportAsia/Singapore
    YSSYSydney Kingsford Smith AirportAustralia/Sydney
    ZBAABeijing Capital AirportAsia/Shanghai
    ZGGGGuangzhou/Baiyun AirportAsia/Shanghai
    ZGSZShenzhen Bao'an AirportAsia/Shanghai
    ZHCCZhengzhouAsia/Shanghai
    ZHHHWuhan Tianhe AirportAsia/Shanghai
    ZSJNJinanAsia/Shanghai
    ZSPDShanghai Pudong AirportAsia/Shanghai
    ZSQDQingdao/Tsingtao AirportAsia/Shanghai
    ZUCKChongqing Jiangbei AirportAsia/Shanghai
    ZUUUChengdu Shuangliu AirportAsia/Shanghai

    Error Responses

    • 400 Bad Request: Invalid or missing parameters
    • 401 Unauthorized: Invalid or missing API key
    • 403 Forbidden: Tier restriction (e.g., Model Accuracy API requires Developer or Enterprise)
    • 429 Too Many Requests: Rate limit exceeded
    • 500 Server Error: Internal server error
    {
        "error": "Missing required parameter: logic",
        "details": "The 'logic' parameter is required for wethr_high mode. Valid values: 'nws', 'wu', 'wcom' (international Kalshi stations), or 'awc' (Polymarket.com stations, resolved on aviationweather.gov METAR reports)."
    }

    Changelog

    November 2026

    • Nearby Stations: every returned code accepted: Station codes containing a hyphen or lowercase letters (for example K9RCZ-10 or B-fsti2), which radius searches return, were rejected with a 400 when sent back as station_code or in neighbors. Every code the endpoint returns is now accepted in both. The wind_direction field description now matches the response: degrees as a string (e.g., "288"), not compass points. See Nearby Stations.
    • One rate limit per account: As of November 14, 2026, the HF-METAR, Daily Rain Push and Hourly Index APIs count against the same per-account rate limit as the /api/v2/ REST endpoints (Developer 300/min and 100,000/day; Enterprise 1,200/min and 500,000/day), instead of each keeping its own. A stream connection still counts as one request, and events within it are free. See Tiers & Rate Limits.
    • AviationWeather.gov conflicts and revisions NEW: aviationweather.gov occasionally shows a report at a different value than every other source, for example after replacing its first version of a report without a correction marker. logic=awc responses and the push awc block now list those reports in conflicts, and the new opt-in awc_revision push event fires the moment aviationweather.gov changes the value of a report it already showed, or shows one at a different value than the other sources. Its payload includes the day's AviationWeather.gov high and low before and after, so a revision that lowers the high or raises the low is no longer silent. See AviationWeather.gov Resolution and awc_revision.
    • NAM, NAM4KM and NAM-MOS retired: NOAA retired the NAM, the NAM 3 km nest (NAM4KM) and NAM MOS on November 3, 2026, with RRFS and the REFS ensemble taking their place. All three remain available for dates through November 3 (raw rows, mode=daily, explicit runs, accuracy and pacing), and are left out of run=latest and of any day after that. See Forecasts API.

    October 2026

    • Forecasts: model=AROME-HD-15 fixed: Filtering the Forecasts API by AROME-HD-15 returned "Invalid model format." because model names were limited to 10 characters. Model names up to 20 characters are now accepted. See Forecasts API.
    • Forecasts: rain chance field: Every Forecasts API row now has precipitation_probability. It is filled on NBM-PoP rows: the chance (%) of at least 0.01 in of precipitation in the 6 hours ending at valid_time. Before this change those rows carried the chance as a fraction in precipitation_in (0.23 meant 23%, not 0.23 in), along with temperature and other values repeated from NBS-MOS. Those fields are now null on NBM-PoP rows, and mode=daily no longer lists it. See Forecasts API.
    • Daily Rain Push API NEW DEV+: The Daily Rain API payload, streamed over SSE the moment a station's market day changes, instead of polled through the REST endpoint's 15-second cache. Same engine and same fields as REST (including the open-period one-minute reading), full station state in every event, replay on reconnect, and stations=ALL for the whole roster. Requires Developer or Enterprise tier. See the Daily Rain Push API.
    • AviationWeather.gov Resolution (logic=awc) NEW: Polymarket.com daily temperature markets dated October 23, 2026 or later settle on routine METAR reports published on aviationweather.gov. The new logic=awc applies those rules exactly (routine reports only, the tenths reading in the remarks, half-up rounding, the local calendar day), the Observations Push API's observation events carry an awc block, and new_high/new_low events fire with logic: "awc". See AviationWeather.gov Resolution.
    • Historical 1-Minute ASOS Archive API NEW DEV+: The NOAA NCEI one-minute archive for about 960 US stations, January 2000 to roughly one day ago, as ready-made Parquet or CSV station-year downloads with climate dates and quality columns on every row, plus a checksum sync listing and range queries. See Historical 1-Minute ASOS Archive API.
    • Monthly Precipitation: same engine as Daily Rain NEW: The Monthly Precipitation API now builds its live portion with the Daily Rain engine. Every climate day runs midnight to midnight local standard time, and rain between the last hourly report and midnight stays with the day, and the month, it fell in. Existing fields keep their meaning: official_mtd is still the total through yesterday and official_mtd + today_precip is still the month. It is now more accurate overnight, because yesterday is counted in full while its final report is pending instead of stopping at the 5 PM preliminary report. New fields: final_mtd, final_cli_date, pending_precip, potential_precip, live_days, method. See the Monthly Precipitation API.
    • Final Daily Summary Messages (DSM) NEW: The end-of-day DSM (the report ASOS transmits about 15 minutes after local standard midnight covering the whole climate day just ended) is now ingested. The Observations Push API delivers it as the new dsm_final event (and again if the National Weather Service later corrects it, with is_cor set), every dsm event now carries is_final and is_cor, and the REST observation modes (history, and latest with observation_type=dsm_high|dsm_low) return its high and low as rows flagged dsm_is_final on the day they cover. The final DSM is reference data for confirming a settled day: it is never used to compute the Wethr High/Low, which already incorporates the final Climate Report for the same day.
    • REFS Ensemble + All-Model Latest Run NEW: The Forecasts API now serves the REFS ensemble (the official ensemble mean, five members, and the ensemble range, out to 60 hours) on request with model=REFS, and run=latest no longer requires a model: without one it returns the newest run of every model in a single call. Requests that worked before return the same models as before, and large all-model windows are no longer cut off at 5,000 rows. See Ensembles (REFS).

    September 2026

    • Daily Rain API NEW BETA: The current market day's precipitation for every station with a daily rain market (live observed total built from the ASOS accumulation periods, hour-by-hour amounts, trace detection, the open-period reading, and the official NWS Climate Report value (preliminary and final) with a market_status summary) for one station or the whole roster in a single call. Same engine as the Daily Rain dashboard. Available to all tiers. See the Daily Rain API.
    • Final Climate Reports in the Observations Push API NEW: The new cli_final event delivers the final Climate Report for a completed day, normally the previous local day, the moment it is received (typically 1 to 4 AM local time), and again if the report is later corrected. Every cli and cli_final event now carries an is_final flag, and for_date always names the day the values belong to. Existing cli listeners are unaffected: same-day preliminary reports keep arriving as cli, and cli_final is only delivered to clients that listen for it. See Event Types.
    • 1-Minute Observation Coverage API NEW DEV+: A minute-by-minute ledger of the one-minute observation feed for the 94 stations that carry it: which minutes are missing, which arrived without a temperature, and which failed physical-range checks (with the raw rejected values, e.g. the station's -61 °C sentinel). Windows follow the resolution source (nws standard-time day, wu/awc local calendar day) using the same rules as wethr_high, so gaps line up with the Wethr High/Low they could have affected. See the Coverage API.
    Earlier changes (August 2026 and before)
    • Ingestion Timestamps: Data-freshness timestamps are now documented across the API. Observations rows (latest/history modes) carry per-pipeline ingestion times (metar_received_at, hfmetar_received_at, dsm_received_at, cli_received_at), the earliest of which is when Wethr first had the observation. Forecast rows carry inserted_at (UTC), and NWS forecast versions carry published_at/published_ts, the capture time of each version. Useful for latency analysis, staleness decay, and freshness-weighted blending.
    • True HRRR Precipitation Accumulations: HRRR precipitation is now the model's true 1-hour APCP accumulation, populated on top-of-the-hour rows (like cloud cover) and null on the 15-minute rows. It replaces the previous rate-based estimate, which overstated convective bursts and could miss showers falling between the 15-minute sample instants. HRRR and HRRR-EXT now report identical precipitation semantics at overlapping hours.
    • Expanded Model Variables: The HRRR, HRRR-EXT, and RRFS series now populate the full extended variable set: relative humidity, apparent temperature, precipitation, and cloud cover (previously temperature/wind/dew point only for these models). HRRR cloud cover is hourly and lands on top-of-the-hour rows; see the field notes for per-model precipitation semantics.
    • Preliminary Observations & Potential High/Low: Wethr.net now ingests observations through an accelerated data feed that regularly delivers METARs before (and occasionally instead of) the standard distribution chain that Weather Underground and weather.com read from. WU-logic wethr_high/wethr_low are now computed from chain-confirmed observations only, so they track as closely as possible what those resolution sources are likely to display, while new potential_high/potential_low fields additionally include not-yet-confirmed observations, with a divergence object flagging when the two differ. Individual observations carry a confirmation status in latest/history modes, and Push observation events carry the potential values inside each wu block. See Preliminary Observations & Potential High/Low.
    • Source Attribution for Wethr High/Low: Both the REST wethr_high mode and the Observations Push API now report which data sources have confirmed the current Wethr High and Wethr Low, including how many observations of each type confirmed the value and when each source first confirmed it. Available on REST responses (wethr_high_sources, wethr_low_sources + detail objects), Push observation events (nested per logic), and Push new_high/new_low alerts. See Source Attribution.
    • HRRR-EXT Model: A 48-hour extended-range HRRR series is now available under the model name HRRR-EXT. It carries the full hourly run (FH00–48) of the most recent synoptic HRRR cycle (00/06/12/18z: the only cycles NOAA integrates past +18h), with the same variable set as HRRR. Because it reaches +48 hours, it is the highest-resolution model in the catalog with reliable next-day coverage; combine with mode=daily for per-day highs/lows. Note its latest run may be up to ~6 hours older than the latest hourly HRRR run.
    • Data Quality Warnings: The wethr_high mode and the Push observation event now include a data_quality object that flags missing temperature readings (the -999 sentinel) in the trading-day window. It is keyed per resolution mode and escalates to critical when the station is currently down or a gap falls near the reported high/low. See Observations Data Quality and the Push Data Quality Flags.
    • Daily Summary Mode for Forecasts: The Forecasts API now accepts mode=daily, returning a per-model, per-day high/low summary bucketed by the station's local time. A tz_mode parameter selects the day-boundary convention (civil for WU/Polymarket resolution, standard for NWS/Kalshi). Only fully-covered days are returned; pin a historical run via run for backtesting.
    • Latest Run Mode for Forecasts: The Forecasts API now accepts a run parameter (latest or ISO 8601 timestamp). Use run=latest&model=HRRR to retrieve every forecast hour of the most recent run without needing to specify a time window, ideal for real-time model lookups. Responses include an X-Run-Time header identifying the resolved run cycle.
    • Observations Push API BETA: Stream real-time observations, DSM/CLI releases, and temperature extreme alerts
    • Model Accuracy API DEV+: Per-model forecast accuracy metrics (MAE, bias, RMSE) across 118 stations with filtering by model, run time, lead time, and time window. Supports both daily highs and daily lows. Requires Developer or Enterprise tier.
    • Nearby Stations API BETA DEV+: Find weather stations near a target station (by radius) or look up an arbitrary list of stations, each with its latest observation. Useful for cross-referencing readings, building heat maps, or detecting microclimates. Requires Developer or Enterprise tier.
    • Pacing API BETA DEV+: See how the latest actual observation is running versus each model's forecast for the contract day, with the model temperature interpolated to the observation's exact time. Returns a low/high pace per model (plus an NWS row) in the station's native units: the same calculation shown on the dashboard. Requires Developer or Enterprise tier.
    • Monthly Precipitation API BETA: New endpoint for monthly precipitation totals with real-time ASOS data
    • NWS Forecasts API BETA: New endpoint for NWS hourly temperature forecasts with version history
    • Expanded Station Support: 140 market stations including London, Buenos Aires, Toronto, and Seoul
    • Metric Units: International stations (CYHC, CYUL, CYYZ, EBBR, EDDB, EDDF, EDDM, EFHK, EGLC, EGLL, EHAM, EPWA, FACT, LEMD, LFPB, LFPG, LFPO, LIMC, LLBG, LSGG, LTAC, LTFM, MMMX, MPMG, NZWN, OEJN, OMDB, OPKC, RCSS, RJTT, RKPK, RKSI, RPLL, SAEZ, SBGR, UUWW, VABB, VHHH, VHKO, VILK, WMKK, WSSS, YSSY, ZBAA, ZGGG, ZGSZ, ZHCC, ZHHH, ZSJN, ZSPD, ZSQD, ZUCK, ZUUU) return temperatures in Celsius
    • Wethr Low: The wethr_high mode now also returns wethr_low
    • Improved Wethr High/Low Accuracy (NWS mode): NWS logic incorporates high-frequency observations to capture extremes between standard METAR reporting intervals. WU/Polymarket logic uses only standard METAR observations.
    • Required Logic Parameter: Explicit logic parameter required for wethr_high mode (nws or wu)
    • Observation Type Filter: Filter latest mode by dsm_high, dsm_low, cli_high, cli_low
    • Units Indicator: All responses include a units field
    • One Minute Observations (OMO) COMING SOON: Raw One Minute Observation data is not yet available via the API (REST or Push). We anticipate making OMO data available in the coming months. However, Wethr High and Wethr Low values already incorporate OMO data and update in real time when a one minute observation impacts the calculated high or low.

    Observations

    Observations API REST

    GET /api/v2/observations.php
    Note on One Minute Observations (OMO): Raw OMO data is not currently available through the Observations REST API. We anticipate adding support for One Minute Observations in the coming months. Currently, only standard METAR, HF-METAR, and SPECI observations are returned. However, Wethr High and Wethr Low values (mode=wethr_high) already incorporate OMO data and update in real time when a one minute observation impacts the calculated high or low. When OMO data confirms the current high or low, it now appears as the omo label in the response's source attribution fields, including how many one-minute readings confirmed the value and when the first one did. Developer and Enterprise keys can also audit the coverage of the one-minute feed (which minutes are missing, empty, or out of range) through the 1-Minute Observation Coverage API.

    Mode: Latest Observation

    Returns the most recent observation for a station.

    Parameters

    ParameterRequiredDescription
    station_codeYesStation identifier
    modeYesSet to latest
    observation_typeNoFilter: dsm_high, dsm_low, cli_high, cli_low. For dsm_high / dsm_low the end-of-day DSM is considered too: between local midnight and the first intermediate DSM of the new day the newest value is normally the previous day's end-of-day summary, returned as a row flagged dsm_is_final (see the field table).

    Example Request

    GET /api/v2/observations.php?station_code=KMDW&mode=latest
    GET /api/v2/observations.php?station_code=KMDW&mode=latest&observation_type=cli_high

    Example Response

    {
        "station_code": "KMDW",
        "observation_time": "2025-06-15 18:53:00",
        "temperature": 26.7,
        "temperature_display": 80.1,
        "lowest_probable": 80,
        "highest_probable": 80,
        "units": "fahrenheit",
        "dsm_high": 28.3,
        "dsm_high_display": 83,
        "relative_humidity": 55.2,
        "altimeter": 1019.8,
        "sea_level_pressure": 1019.6
    }

    Mode: Wethr High/Low Calculation

    Calculates the current trading-day high and low temperatures based on multiple observation sources.

    • NWS logic: Uses CLI/DSM reports, 6-hour highs/lows, and all available observations to capture extremes between standard reporting intervals. Time window follows Standard Time year-round.
    • WU logic: Uses only standard METAR observations. Time window follows Local Time year-round. See Precision Validation for US Stations for details on how observation accuracy is ensured.
    • Weather.com logic (wcom): The settlement basis of Kalshi's international daily markets. Routine METARs only, whole degrees Celsius, international stations with Kalshi markets only. See Weather.com Resolution.
    • AviationWeather.gov logic (awc): The settlement basis of Polymarket.com's daily temperature markets. Routine METARs only, local calendar day, Polymarket.com stations only. See AviationWeather.gov Resolution.

    Parameters

    ParameterRequiredDescription
    station_codeYesStation identifier
    modeYesSet to wethr_high
    logic Yes nws (NWS/Kalshi): Standard Time year-round, uses CLI/DSM/6hr data
    wu (Weather Underground): Local Time year-round, uses exact temperature
    wcom (Weather.com, Kalshi international markets): routine METARs only, whole degrees Celsius; international stations with Kalshi markets only. See Weather.com Resolution
    awc (AviationWeather.gov, Polymarket.com markets): routine METARs only, local calendar day; Polymarket.com stations only. See AviationWeather.gov Resolution

    Example Request

    GET /api/v2/observations.php?station_code=KMDW&mode=wethr_high&logic=nws

    Example Response

    {
        "station_code": "KMDW",
        "date": "2025-06-15",
        "wethr_high": 83,
        "wethr_low": 68,
        "time_of_high_utc": "2025-06-15 20:53:00",
        "time_of_low_utc": "2025-06-15 10:53:00",
        "potential_high": 83,
        "potential_low": 68,
        "potential_high_time_utc": "2025-06-15 20:53:00",
        "potential_low_time_utc": "2025-06-15 10:53:00",
        "divergence": {"high": false, "low": false},
        "wethr_high_sources": ["omo", "metar", "six_hour_high", "dsm"],
        "wethr_low_sources": ["omo", "metar", "six_hour_low", "dsm"],
        "wethr_high_source_detail": {
            "omo":           {"first_confirmed_utc": "2025-06-15 20:38:00", "count": 12},
            "metar":         {"first_confirmed_utc": "2025-06-15 20:53:00", "count": 1},
            "six_hour_high": {"first_confirmed_utc": "2025-06-15 23:53:00", "count": 1},
            "dsm":           {"first_confirmed_utc": "2025-06-16 00:10:00", "count": 1}
        },
        "wethr_low_source_detail": {
            "omo":           {"first_confirmed_utc": "2025-06-15 10:41:00", "count": 5},
            "metar":         {"first_confirmed_utc": "2025-06-15 10:53:00", "count": 2},
            "six_hour_low":  {"first_confirmed_utc": "2025-06-15 11:53:00", "count": 1},
            "dsm":           {"first_confirmed_utc": "2025-06-16 00:10:00", "count": 1}
        },
        "calculation_logic": "nws",
        "units": "fahrenheit",
        "anomaly": false,
        "data_quality": {
            "nws": {"ok": true, "warnings": []}
        }
    }

    Weather.com Resolution (logic=wcom)

    logic=wcom returns the Weather.com resolution value: the settlement basis of Kalshi's international daily climate markets (published at weather.com/kalshi). It differs from both other logics: only routine METARs count (SPECIals are excluded); a routine report stamped :45–:59 counts as the next hour's observation, so the market day covers roughly 11:45 PM the previous evening through 11:44 PM local; values are whole degrees Celsius. Available only for international (metric) stations with Kalshi markets: other stations return 400. The Observations Push API's observation events for these stations carry the same value in a wcom block (date, high_c/high_f, low_c/low_f, extreme times, obs_count).

    AviationWeather.gov Resolution (logic=awc) NEW

    logic=awc returns the AviationWeather.gov resolution value, the settlement basis of Polymarket.com's daily temperature markets dated October 23, 2026 or later. Those markets settle on the routine METAR reports the Aviation Weather Center publishes on aviationweather.gov; the response's resolution_url links the same report list for the station and day. The rules are applied exactly:

    • Routine reports only. A report that begins with SPECI never counts. Every other report counts, including ones issued off the usual minute.
    • The remark value first. The tenth-of-a-degree reading in the report's T-group remark when present, otherwise the whole-degree body temperature.
    • Half-up rounding. US stations convert to Fahrenheit (°F = °C × 9/5 + 32) and round to a whole degree with exact halves rounding up; international stations round the Celsius value the same way.
    • Local calendar day of each report's timestamp, following daylight saving time.
    • The version aviationweather.gov shows for each report counts, so a correction (COR) replaces the original value.

    wethr_high / wethr_low count only reports aviationweather.gov has published. Reports Wethr.net has received that aviationweather.gov does not show yet (it usually publishes them within a few minutes) are counted in pending_reports and move only potential_high / potential_low (with potential_high_time_utc / potential_low_time_utc), which equal wethr_high / wethr_low when nothing is pending. A pending report Wethr.net holds only in whole degrees Celsius (no tenths yet) can settle at more than one Fahrenheit value, for example 31°C as 87°F or 88°F. potential_high_range / potential_low_range give the [lowest, highest] value each extreme could still settle at: potential_high is the top of potential_high_range and potential_low is the bottom of potential_low_range, and both ends are equal when nothing ambiguous is pending. A report that still has not appeared on aviationweather.gov an hour after we received it is treated as not on the source and stops counting toward the potential values; it counts automatically if aviationweather.gov publishes it later. Times of high and low are the first report to reach each value. Units are Fahrenheit for the 11 US stations and Celsius elsewhere. Available only for stations whose Polymarket.com markets resolve this way; other stations return 400.

    GET /api/v2/observations.php?station_code=KDEN&mode=wethr_high&logic=awc
    {
        "station_code": "KDEN",
        "date": "2026-10-23",
        "wethr_high": 68,
        "wethr_low": 61,
        "time_of_high_utc": "2026-10-23 15:53:00",
        "time_of_low_utc": "2026-10-23 12:53:00",
        "potential_high": 68,
        "potential_low": 61,
        "potential_high_time_utc": "2026-10-23 15:53:00",
        "potential_low_time_utc": "2026-10-23 12:53:00",
        "potential_high_range": [68, 68],
        "potential_low_range": [61, 61],
        "calculation_logic": "awc",
        "units": "fahrenheit",
        "obs_count": 10,
        "pending_reports": 0,
        "conflicts": [],
        "resolution_url": "https://aviationweather.gov/api/data/metar?ids=KDEN&format=raw&date=2026-10-24T06:00:00Z&hours=27",
        "note": "aviationweather.gov resolution: ..."
    }

    conflicts lists the day's counted reports that aviationweather.gov shows at a different value than the other sources Wethr.net receives the same report from. The aviationweather.gov value is the one that counts toward wethr_high / wethr_low. Each entry has observation_time_utc, reason, awc_value, other_sources_value and other_sources_range (the [lowest, highest] value the other sources' version could settle at; both ends are equal unless that version has only whole degrees Celsius). reason is cor when aviationweather.gov shows a correction, revised when it replaced its own earlier version of the report, which matched the other sources, and differs when its version never matched. A difference that rounds to the same market value is not listed. The list is usually empty.

    "conflicts": [
        {
            "observation_time_utc": "2026-11-07 08:53:00",
            "reason": "revised",
            "awc_value": 72,
            "other_sources_value": 75,
            "other_sources_range": [75, 75]
        }
    ]

    The Observations Push API's observation events for these stations carry the same values in an awc block: date, high_f/high_c, low_f/low_c and their _time_utc fields, potential_high_f/potential_high_c, potential_low_f/potential_low_c and their times, potential_high_range_f/potential_high_range_c and potential_low_range_f/potential_low_range_c (the [lowest, highest] pairs described above), units, obs_count, pending_reports, conflicts (each entry with observation_time_utc, reason, awc_value_f/awc_value_c and other_sources_value_f/other_sources_value_c) and resolution_url. new_high / new_low events fire with logic: "awc" when the published value rises or falls, and awc_revision events fire when aviationweather.gov changes a report it already showed.

    Anomaly Flag

    The wethr_high response includes an anomaly boolean. It is true when the official DSM or CLI daily high or low for the day sits 5°F or more beyond the observations within ±20 minutes of that extreme's reported time: a high above the warmest nearby reading, or a low below the coldest. This is the same check delivered on the Observations Push API; see the Push Data Quality Flags for the full description.

    Source Attribution

    The wethr_high response reports which data sources have confirmed the current Wethr High and Wethr Low. A source "confirms" an extreme when the value that source contributed to the calculation (under the exact same rules the calculation applies) equals the final wethr_high / wethr_low. Multiple sources routinely confirm the same extreme; all of them are listed. Whenever wethr_high (or wethr_low) is non-null, its sources array contains at least one entry.

    Four fields carry the attribution:

    FieldTypeDescription
    wethr_high_sourcesarray of stringsSources confirming the current high, ordered by when each first confirmed it (earliest first). Empty array when wethr_high is null.
    wethr_low_sourcesarray of stringsSources confirming the current low, same ordering.
    wethr_high_source_detailobjectPer-source detail, keyed by source label in the same order as the array. Each entry holds first_confirmed_utc and count. Empty object {} when there are no sources.
    wethr_low_source_detailobjectSame, for the low.
    Source Labels
    LabelSourceApplies To
    metarStandard METAR or SPECI reportHigh & Low
    hf_metarHigh-frequency (~5 minute) METARHigh & Low
    omoOne Minute ObservationsHigh & Low (NWS logic only)
    six_hour_highMETAR 6-hour maximum temperature groupHigh only (NWS logic)
    six_hour_lowMETAR 6-hour minimum temperature groupLow only (NWS logic)
    dsmDaily Summary Message official high/lowHigh & Low (NWS logic)
    cliClimatological Report official high/lowHigh & Low (NWS logic)
    metar8Accelerated-feed METAR not yet confirmed by any standard distribution source (see Preliminary Observations)High & Low (NWS logic only)

    Because WU logic uses only standard METAR observations, its sources arrays will only ever contain metar, and by construction never metar8, since the confirmed WU value excludes unconfirmed accelerated-feed observations entirely. The full range of labels appears under NWS logic, where an extreme established by a not-yet-confirmed observation attributes as metar8 (and re-attributes as metar once a standard source delivers it).

    Detail Fields
    • first_confirmed_utc: the UTC observation time at which this source first showed the current extreme value. For observation sources (metar, hf_metar, omo) this is the time of the reading itself. For six_hour_high/six_hour_low it is the time of the report carrying the 6-hour group (which may be hours after the extreme occurred). For dsm/cli it is the observation time of the record their values are attached to: when the product's figures appeared in the observation record, not the product's issuance time.
    • count: how many readings/reports of this type confirmed the current value. For omo this is the number of one-minute observations at the extreme (e.g., "count": 12 means twelve 1-minute readings confirmed it; a direct measure of how long the station sat at the extreme). For metar/hf_metar it is the number of individual reports confirming. For six_hour_high/six_hour_low a value above 1 means the extreme was equaled in more than one 6-hour window. For dsm/cli a value above 1 means a corrected reissue repeated the same figure.

    Counts compare within a source type, not across types. An omo count of 12 and a dsm count of 1 are not "12 versus 1" strength: one-minute data gets a chance to confirm every minute, while a DSM is issued once per day. Do not sum counts across sources into a single score.

    Confirmation Is Conservative (Fahrenheit Stations)

    For US (°F) stations, whole-degree Celsius sources (omo, hf_metar, and METARs without a T-group) are evaluated through their rounding-uncertainty range, and confirmation uses the conservative end of that range: for the high, the source's lowest_probable value must equal the Wethr High; for the low, its highest_probable must equal the Wethr Low. A range that merely contains the extreme does not confirm it: the source must guarantee the value on its own. In practice this means omo and hf_metar confirm on °F stations only when the whole-degree Celsius value pins a single Fahrenheit degree; on metric (°C) stations they confirm freely, since whole-degree readings are exact in the display unit. This is deliberate: a listed source is one whose data was, by itself, sufficient to establish the extreme under the calculation's rules. T-group METARs, 6-hour groups, DSM, and CLI values are exact and carry no range.

    Attribution Tracks the Live Value

    Attribution is recomputed with the calculation on every request, so as the Wethr High rises during the day, the sources change with it: a freshly-set high typically shows a single confirming source, then accumulates corroboration as further observations, the evening 6-hour group, and eventually the DSM and CLI land on the same value. If a new extreme replaces the old one, sources that only confirmed the previous value drop out. The number of confirming sources therefore works as a live corroboration meter: ["metar"] alone describes a just-set, singly-sourced value, while a full array with DSM and CLI describes a settled one. A high confirmed only by dsm or cli with no observation source is worth attention, particularly in combination with the anomaly flag.

    Data Quality

    The wethr_high response includes a data_quality object that flags missing temperature data within the trading-day window. Missing temperatures are simply absent from the high/low calculation, so a gap can leave the reported wethr_high/wethr_low understated. This object tells you when coverage was incomplete.

    For logic=nws on stations with a 1-minute feed (the roster in the Coverage API section), the high/low combines the 1-minute and 5-minute observations, so the check counts minutes: a minute is missing when neither feed has a usable temperature for it, and every missing stretch is listed. Everywhere else (logic=wu, and stations without a 1-minute feed) it counts readings logged as missing (the -999 sentinel). The basis field says which applies.

    It is keyed by the logic you requested (nws or wu), since each mode scans its own time window. When the day's observations are complete, ok is true and warnings is empty.

    {
        "data_quality": {
            "nws": {
                "ok": false,
                "warnings": [
                    {
                        "code": "temperature_data_missing",
                        "severity": "critical",
                        "message": "12 minutes without a temperature reading in this window (all feeds combined); longest gap 9 min. A gap falls within ~60 min of the day's high, so wethr_high/wethr_low may be unreliable.",
                        "basis": "minutes",
                        "missing_count": 12,
                        "longest_run": 9,
                        "longest_run_minutes": 9,
                        "first_missing_utc": "2026-10-21 18:44:00",
                        "last_missing_utc": "2026-10-21 20:05:00",
                        "active": false,
                        "active_run": 0,
                        "near_extreme": true,
                        "near_high": true,
                        "near_low": false,
                        "missing_runs": [
                            {"start_utc": "2026-10-21 18:44:00", "end_utc": "2026-10-21 18:46:00", "minutes": 3},
                            {"start_utc": "2026-10-21 19:57:00", "end_utc": "2026-10-21 20:05:00", "minutes": 9}
                        ],
                        "missing_runs_truncated": false,
                        "as_of_utc": "2026-10-21 21:30:02"
                    }
                ]
            }
        }
    }

    The temperature_data_missing warning object and its severity rules are identical to the one delivered through the Observations Push API (both read the same per-station gap record, refreshed every minute). See the Push Data Quality Flags section for the full field reference.

    WU Logic: Precision Validation for US Stations

    METAR observations report temperature in two ways: the body of the report contains a whole-degree Celsius value (e.g., 26/08), while the remarks section may contain a "T-group" with tenths-of-a-degree precision (e.g., T02560078 = 25.6°C). The difference matters because 26°C rounds to 79°F, while 25.6°C rounds to 78°F: a 1°F discrepancy from a single observation that can affect the Wethr High.

    US ASOS stations (ICAO codes beginning with K) nearly always produce T-groups. However, when a new METAR is first published, the body temperature may be available before the complete remarks section has propagated through all data sources. During this brief window, the observation may appear to have a rounded whole-degree temperature when a more precise value is forthcoming.

    To prevent this from affecting the Wethr High/Low calculation, the API applies the following validation when using logic=wu:

    • If a K-station observation has tenths-of-a-degree precision (T-group present), it is used immediately: the temperature is exact and unambiguous.
    • If a K-station observation has only whole-degree precision (no T-group), the API requires confirmation from a secondary data source before including it in the Wethr High/Low calculation. This ensures the T-group has had time to propagate and that the rounded value is not premature.

    This validation applies only to WU logic. NWS logic is unaffected because it uses temperature ranges (lowest_probable / highest_probable) rather than a single rounded value, which inherently accounts for rounding uncertainty.

    Preliminary Observations & Potential High/Low

    Wethr.net ingests observations through an accelerated data feed that regularly delivers hourly and special METARs seconds after they are taken, typically minutes before the standard distribution chain, and occasionally for observations the chain never carries at all. Those chain-dropped observations are real air temperatures, but Weather Underground and weather.com (the resolution sources for WU-logic markets) are unlikely to ever display them.

    The Wethr High/Low therefore distinguishes two values under logic=wu:

    • Confirmed (wethr_high / wethr_low): computed only from observations that at least one standard distribution source has delivered. This is our best-effort match for what the WU history page and weather.com are likely to display.
    • Potential (potential_high / potential_low): additionally includes accelerated-feed observations no standard source has delivered yet. This is what the atmosphere actually did.

    Important: no guarantee of exact agreement with Weather Underground. Weather Underground has historically missed or skipped METARs on its history pages numerous times, for reasons entirely outside our control, including observations that were delivered normally through the standard distribution chain. Our WU logic is a best-effort model of what is likely to appear on the WU history page: because Wethr.net receives data faster than the distribution chain, we cannot know with certainty which METARs Weather Underground will ultimately publish. The confirmed wethr_high/wethr_low substantially improves agreement with WU by excluding observations the chain has not delivered, but it is not a guarantee that our values will always match Weather Underground exactly. Always verify against the resolution source itself before trading decisions that depend on exact agreement.

    Fields (wethr_high mode)
    FieldTypeDescription
    potential_high / potential_lowinteger|nullHigh/low including not-yet-confirmed observations. Always at least as extreme as the confirmed value: potential_high ≥ wethr_high and potential_low ≤ wethr_low. Can be non-null while the confirmed value is still null (e.g., early in a day when only unconfirmed observations exist).
    potential_high_time_utc / potential_low_time_utcdatetime|nullUTC observation time of the reading that set the potential extreme (not its ingest time). Ties update to the latest occurrence, matching time_of_high_utc semantics.
    divergenceobject{"high": bool, "low": bool}: true when the potential value differs from the confirmed value on that side. This is the actionable signal: the air reached a value that the resolution source may never show.
    Example: WU logic with a diverged high
    {
        "station_code": "KJAX",
        "date": "2026-07-25",
        "wethr_high": 95,
        "wethr_low": 77,
        "time_of_high_utc": "2026-07-25 18:56:00",
        "time_of_low_utc": "2026-07-25 10:56:00",
        "potential_high": 97,
        "potential_low": 77,
        "potential_high_time_utc": "2026-07-25 19:56:00",
        "potential_low_time_utc": "2026-07-25 10:56:00",
        "divergence": {"high": true, "low": false},
        "calculation_logic": "wunderground",
        "units": "fahrenheit"
    }

    Reading this response (a real example): the station genuinely reached 97°F at 19:56Z, but the observation carrying that temperature was never delivered by the standard distribution chain. On this particular day, Weather Underground's history page showed a daily high of 95°F (matching the confirmed value) and markets resolving on WU settled against 95, not 97. As always, exact agreement with WU is likely but not guaranteed; see the disclaimer above.

    Semantics
    • Confirmation is event-driven, not time-driven. The moment any standard distribution source delivers a previously unconfirmed observation, it enters the confirmed calculation on the next request; there is no timer and no delay. If the chain never delivers it, it remains excluded permanently: the case where the resolution source is least likely to show it. A fresh unconfirmed observation only minutes old may simply not have been corroborated yet (typical chain latency is a few minutes).
    • Values persist for the trading day. Both values are recomputed from the full day window on every request, so a morning divergence remains visible all day (and in historical queries) unless the observation is confirmed or a confirmed observation matches/exceeds the potential value; in either case the divergence flag clears on its own.
    • NWS logic is unaffected. Accelerated-feed observations fully count toward NWS-logic values (the NWS climate report reflects everything the station measured). For shape uniformity, logic=nws responses carry the same fields with potential_* mirroring the confirmed values and divergence always false/false.
    • Historical behavior. Requests for past dates reflect the final confirmation state of each observation, so a divergence that never resolved is preserved as the permanent record of that day.
    Per-observation status (latest & history modes)

    Each observation row in latest and history responses includes a confirmation field: "confirmed" (delivered by a standard distribution source), "preliminary" (received so far only via the accelerated feed; excluded from WU-logic Wethr High/Low until confirmed, still counted for NWS logic), or null (not applicable, e.g. high-frequency or product-only rows). A row's status upgrades from preliminary to confirmed in place when a standard source later delivers the same observation, so polling clients should treat it as mutable.


    Mode: History

    Retrieves observations over a time range (max 24 hours). Default mode when mode is omitted.

    Parameters

    ParameterRequiredDescription
    station_codeYesStation identifier
    start_timeYesStart of range (ISO 8601 UTC)
    end_timeYesEnd of range (ISO 8601 UTC)

    Example Request

    GET /api/v2/observations.php?station_code=KMDW&start_time=2025-06-15T00:00:00Z&end_time=2025-06-15T12:00:00Z

    Observation Data Model

    FieldTypeDescription
    idintegerUnique record identifier
    station_codestringStation identifier
    observation_timedatetimeUTC timestamp
    temperaturedecimalTemperature in Celsius (raw)
    temperature_displaydecimalTemperature in station's native units
    lowest_probableintegerMin probable temp (native units)
    highest_probableintegerMax probable temp (native units)
    unitsstringfahrenheit or celsius
    precision_levelintegerData precision (1 = exact)
    confirmationstring|nullconfirmed, preliminary, or null: whether a standard distribution source has delivered this observation. See Preliminary Observations.
    dew_pointdecimalDew point (Celsius)
    relative_humiditydecimalRelative humidity (%)
    wind_directionstringWind direction
    wind_speeddecimalWind speed (knots)
    wind_gustdecimalWind gust (knots)
    visibilitydecimalVisibility (statute miles)
    altimeterdecimalAltimeter setting in hectopascals (hPa). Divide by 33.8639 to convert to inches of mercury (inHg).
    sea_level_pressuredecimalSea level pressure in hectopascals (hPa). Reported in METAR remarks when available; may be null for observations without an SLP group.
    six_hour_highdecimal6-hour high (Celsius)
    six_hour_lowdecimal6-hour low (Celsius)
    cli_high / cli_lowdecimalCLI report values (US only)
    dsm_high / dsm_lowdecimalDSM report values (US only)
    metar_received_atdatetime|nullUTC timestamp when Wethr first ingested this observation from a routine METAR/SPECI source. null when the row arrived via another pipeline only.
    hfmetar_received_atdatetime|nullUTC timestamp when Wethr first ingested this observation from the accelerated high-frequency feed. Often minutes ahead of the standard distribution chain.
    dsm_received_atdatetime|nullUTC timestamp when a Daily Summary Message's values were attached to this row (US only). May be hours after the observation itself.
    cli_received_atdatetime|nullUTC timestamp when a CLI report's values were attached to this row (US only). May be hours after the observation itself.
    cli_time_missing NEW1 | absentPresent, and 1, only on a row that carries a Climate Report high or low whose time of occurrence the National Weather Service did not report (printed as MM in the CLI). Such a row has no observation of its own: its observation_time is a placement inside the day the value belongs to (the report's as-of time for a preliminary report, the last minute of the climate day for a final), not the time the high or low occurred. The value itself is the official one for that day.
    cli_is_final NEW0 | 1 | absentOn a cli_time_missing row: 1 when the value comes from the final Climate Report for that day, 0 when it comes from a same-day preliminary report.
    dsm_is_final NEW1 | absentPresent, and 1, only on a row carrying the high or low from the end-of-day Daily Summary Message: the DSM transmitted about 15 minutes after local standard midnight that covers the whole climate day just ended. Such a row has no observation of its own: observation_time is the time of occurrence the report states for that high or low, dsm_valid_through is the end of the covered day, and dsm_received_at is when the report arrived. One row per side (high, low). Intermediate DSM values attached to real observations never carry this flag. Reference data only: the end-of-day DSM is not an input to the Wethr High/Low, which already incorporates the final Climate Report for the same day.
    dsm_is_cor NEW0 | 1 | absentOn a dsm_is_final row: 1 when the end-of-day summary shown is a correction (COR) the National Weather Service transmitted after the original. The corrected report replaces the original on that day.
    dsm_for_date NEWstring | absentOn a dsm_is_final row: the climate day (YYYY-MM-DD, station-local) the end-of-day summary covers. Attribute the values by this date, not by when the row was received.
    *_displayintegerValues in station's native units
    *_fintegerValues in Fahrenheit (backward compat)

    Ingestion timestamps: the four *_received_at fields record when each of Wethr's ingestion pipelines first delivered data into an observation row, in UTC. A single observation can accumulate several, e.g. it may arrive on the high-frequency feed (hfmetar_received_at), be confirmed by the routine METAR minutes later (metar_received_at), then gain corrected daily figures when a DSM or CLI product is issued hours afterward. Every row carries at least one; the earliest populated value is the moment Wethr first had the observation, which makes these fields suitable for latency analysis and freshness weighting. They are returned by the latest and history modes (not by wethr_high, whose per-source first_confirmed_utc values are observation times, not ingestion times).

    Client Examples

    cURL: Wethr High with NWS Logic

    curl -G "https://wethr.net/api/v2/observations.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "mode=wethr_high" \
      --data-urlencode "logic=nws"

    cURL: Latest CLI High

    curl -G "https://wethr.net/api/v2/observations.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "mode=latest" \
      --data-urlencode "observation_type=cli_high"

    JavaScript: Wethr High/Low

    const params = new URLSearchParams({
        station_code: 'KMDW',
        mode: 'wethr_high',
        logic: 'nws'
    });
    
    fetch(`/api/v2/observations.php?${params}`, {
        headers: { 'Authorization': `Bearer ${apiKey}` }
    })
    .then(res => res.json())
    .then(data => {
        console.log(`High: ${data.wethr_high}° / Low: ${data.wethr_low}°`);
    });

    Python: Latest Observation

    import requests
    
    response = requests.get(
        'https://wethr.net/api/v2/observations.php',
        params={'station_code': 'KMDW', 'mode': 'latest'},
        headers={'Authorization': f'Bearer {api_key}'}
    )
    data = response.json()
    print(f"Current: {data['temperature_display']}°{data['units'][0].upper()}")

    Observations Push API PUSH BETA

    Connection rules shared by every stream (allowances, reconnecting, replay, port-443 addresses) are in Streaming Basics.

    ⚠️ Beta Product: The Observations Push API is currently in beta. While we strive to maintain high availability and data quality, this service may undergo changes without notice. Additionally, weather data comes from official observing networks and station sensors that may occasionally experience outages or report erroneous values. We strongly recommend implementing your own data validation logic to detect and handle anomalies such as unrealistic temperature spikes, sensor malfunctions, or missing data. Wethr.net is not liable for trading decisions or other actions based on data received through this API.

    Overview

    The Observations Push API delivers real-time weather data as events occur. Instead of polling the REST API, clients maintain a persistent connection and receive updates instantly, including new observations, DSM/CLI releases, and temperature extreme alerts.

    Key Benefits:
    • Real-time updates with sub-second latency
    • Efficient: no polling overhead
    • Automatic reconnection with event replay
    • Temperature alerts for new highs/lows as they occur

    Base URL: https://wethr.net:3443/api/v2/stream


    Authentication & Rate Limits

    The Observations Push API uses API key authentication. Include your key as a query parameter:

    GET https://wethr.net:3443/api/v2/stream?stations=KAUS,KMDW&api_key=YOUR_API_KEY
    TierMax StationsSimultaneous Streams per User
    Professional51
    DeveloperUnlimited2
    EnterpriseUnlimited10

    Requirements:

    • HTTPS only
    • Simultaneous streams per user account as listed above. Stream allowances and what happens at the limit are described in Streaming Basics.
    • API key must be enabled in your account

    Connecting

    Parameters

    ParameterRequiredDescription
    stationsYesComma-separated station codes (e.g., KAUS,KMDW,KLAX)
    api_keyYesYour API key
    last_event_idNoResume from a specific event ID (for reconnection)

    Connection Lifecycle

    1. Client connects with station list and API key
    2. Server validates credentials and station limits
    3. Server sends connected event with subscribed stations
    4. Server streams events as they occur
    5. Server sends periodic heartbeat events (every 30s)
    6. On disconnect, client can reconnect with last_event_id to replay missed events

    Event Types

    EventDescriptionFrequency
    connectedConnection establishedOnce on connect
    heartbeatKeep-alive signalEvery 30 seconds
    observationNew weather observation (METAR/HF-METAR/SPECI)Every 1-5 minutes per station
    dsmDaily Summary Message releasedVaries by station
    cliPreliminary Climate Report for the current local dayVaries by station, typically afternoon and evening
    cli_final NEWFinal Climate Report for a completed day (normally the previous local day)Once per station per day, overnight; again when the National Weather Service corrects it or re-transmits it under a new issuance time (same for_date, values often identical)
    dsm_final NEWEnd-of-day Daily Summary Message covering a completed day (normally the previous local day)Once per station per day, about 15 minutes after local standard midnight; again if corrected
    awc_revision NEWaviationweather.gov changed the value of a report it already showed, or shows a report at a different value than the other sources (Polymarket.com stations only)Rare: about once a day across all Polymarket.com stations
    new_highNew temperature high detectedAs conditions change
    new_lowNew temperature low detectedAs conditions change
    Which day a report covers: dsm and cli events carry reports for the station's current local day, issued while that day is still in progress. cli_final carries the final Climate Report for a day that has already ended, normally the previous local day, published in the early morning hours; dsm_final carries the end-of-day Daily Summary Message for a completed day, transmitted about 15 minutes after local standard midnight. A corrected final for an earlier day (even several days back) is delivered the same way, with is_cor set. In every case the for_date field names the day the values belong to. Attribute values by for_date, never by the event's publish timestamp.
    Note on One Minute Observations (OMO): Raw OMO data is not currently available as a Push event type. We anticipate adding OMO events in the coming months. However, the wethr_high and wethr_low values included in new_high and new_low events already incorporate OMO data: if a one minute observation results in a new high or low, these events fire in real time. The wethr_high and wethr_low fields within observation events also reflect the current OMO-informed high and low at the time the observation is reported. When OMO data confirms the current extreme, it appears as the omo label in the event's source attribution fields, with a count of confirming one-minute readings.

    Payload Reference

    observation

    Sent when a new METAR, HF-METAR, or SPECI observation is received. The example below shows all fields that may be present; some fields are only included conditionally (see the field reference for details).

    {
        "station_code": "KAUS",
        "event": "observation",
        "timezone": "America/Chicago",
        "local_date": "2026-02-08",
        "product": "ASOS-HFM",
        "observation_time_utc": "2026-02-08T18:55:00Z",
        "temperature_celsius": 24.0,
        "temperature_fahrenheit": 75.2,
        "temperature_precision": "decimal",
        "dew_point_celsius": 12.0,
        "dew_point_fahrenheit": 53.6,
        "lowest_probable_f": 75,
        "highest_probable_f": 75,
        "lowest_probable_c": 24,
        "highest_probable_c": 24,
        "wind_direction": 200,
        "wind_speed_mph": 14,
        "wind_speed_kmh": 22,
        "wind_gust_mph": null,
        "wind_gust_kmh": null,
        "visibility_miles": 10.0,
        "altimeter_hpa": 1019.8,
        "sea_level_pressure_mb": 1019.6,
        "precipitation_inches": 0.0,
        "wethr_high": {
            "nws": {
                "value_f": 75, "value_c": 24, "time_utc": "2026-02-08T18:44:00Z",
                "sources": ["omo", "hf_metar", "metar"],
                "source_detail": {
                    "omo":      {"first_confirmed_utc": "2026-02-08 18:44:00", "count": 9},
                    "hf_metar": {"first_confirmed_utc": "2026-02-08 18:45:00", "count": 2},
                    "metar":    {"first_confirmed_utc": "2026-02-08 18:53:00", "count": 1}
                }
            },
            "wu": {
                "value_f": 73, "value_c": 23, "time_utc": "2026-02-08T17:53:00Z",
                "sources": ["metar"],
                "source_detail": {
                    "metar": {"first_confirmed_utc": "2026-02-08 17:53:00", "count": 2}
                },
                "potential_value_f": 74, "potential_value_c": 23,
                "potential_time_utc": "2026-02-08T19:21:00Z",
                "divergence": true
            }
        },
        "wethr_low": {
            "nws": {
                "value_f": 42, "value_c": 6, "time_utc": "2026-02-08T12:53:00Z",
                "sources": ["metar", "six_hour_low"],
                "source_detail": {
                    "metar":        {"first_confirmed_utc": "2026-02-08 12:53:00", "count": 1},
                    "six_hour_low": {"first_confirmed_utc": "2026-02-08 17:53:00", "count": 1}
                }
            },
            "wu": {
                "value_f": 42, "value_c": 6, "time_utc": "2026-02-08T12:53:00Z",
                "sources": ["metar"],
                "source_detail": {
                    "metar": {"first_confirmed_utc": "2026-02-08 12:53:00", "count": 1}
                },
                "potential_value_f": 42, "potential_value_c": 6,
                "potential_time_utc": "2026-02-08T12:53:00Z",
                "divergence": false
            }
        },
        "high_valid_through_utc": "2026-02-08T18:00:00Z",
        "low_valid_through_utc": "2026-02-08T12:00:00Z",
        "anomaly": false,
        "suspect_temperature": null,
        "data_quality": {
            "nws": {"ok": true, "warnings": []},
            "wu": {"ok": true, "warnings": []}
        },
        "cloud_layers": {
            "count": 2,
            "layers": [
                {"height_ft_agl": 3500, "coverage": "SCT"},
                {"height_ft_agl": 12000, "coverage": "BKN"}
            ]
        },
        "six_hour_high_celsius": 24.4,
        "six_hour_high_f": 76,
        "six_hour_low_celsius": 18.3,
        "six_hour_low_f": 65,
        "id": "49500",
        "timestamp": "2026-02-08T18:56:15Z"
    }
    Field Reference: observation
    FieldTypeAlways PresentDescription
    station_codestringYesICAO station identifier (e.g., KAUS)
    eventstringYesAlways "observation" for this event type
    timezonestringYesIANA timezone identifier for the station (e.g., America/Chicago)
    local_datestringYesCurrent local date at the station in YYYY-MM-DD format
    productstringYesSource product: ASOS-HR (hourly METAR, including international hourly feeds), ASOS-HFM (5-minute HF-METAR), or ASOS-SPECI (special observation)
    observation_time_utcstringYesUTC timestamp of the observation as reported by the station (ISO 8601)
    temperature_celsiusnumber | nullYesObserved temperature in Celsius (2 decimal places when source is precise, otherwise rounded). null if rejected: see suspect_temperature.
    temperature_fahrenheitnumber | nullYesObserved temperature in Fahrenheit (1 decimal place; 2 decimal places for native-tenths stations, see native_tenths). null if rejected.
    native_tenthsbooleanYestrue when the station's sensor reports true tenths of a °C (currently KBKF) and this is a T-group observation. A standard ASOS measures whole °F and re-expresses it in tenths of °C, so its Fahrenheit is always a whole number in disguise; a native-tenths reading can fall anywhere (23.6 °C = 74.48 °F, which settles as 74, not 75). Such rows carry temperature_fahrenheit to 2 decimals so the value is never mistaken for a half-degree.
    temperature_precisionstringYesSource precision: "decimal" if the observation reports a 1-decimal value (e.g., HF-METAR with T-group), or "integer" if reported only as a whole degree. Determines whether lowest_probable/highest_probable are a single value or a range.
    dew_point_celsiusnumber | nullYesDew point in Celsius. null if dew point depression exceeds 12°C (treated as suspect).
    dew_point_fahrenheitnumber | nullYesDew point in Fahrenheit
    lowest_probable_finteger | nullYesLower bound of the rounding-uncertainty range for the current observation's temperature in °F. When temperature_precision is "integer", this is the lowest value that could have rounded to the reported temperature. When precision is "decimal", this equals highest_probable_f. Not the day's low: see wethr_low for that.
    highest_probable_finteger | nullYesUpper bound of the rounding-uncertainty range for the current observation in °F. See lowest_probable_f.
    lowest_probable_cinteger | nullYesLower bound of the rounding-uncertainty range in °C
    highest_probable_cinteger | nullYesUpper bound of the rounding-uncertainty range in °C
    wind_directioninteger | nullYesWind direction in degrees (0–360). null when calm or variable.
    wind_speed_mphinteger | nullYesSustained wind speed in miles per hour (converted from knots)
    wind_speed_kmhinteger | nullYesSustained wind speed in kilometers per hour
    wind_gust_mphinteger | nullYesWind gust speed in mph. null when no gust was reported or when the gust value failed validation (e.g., gust less than sustained speed).
    wind_gust_kmhinteger | nullYesWind gust speed in km/h
    visibility_milesnumber | nullYesVisibility in statute miles. Values reported as "10+" in METAR are normalized to 10.0.
    altimeter_hpanumber | nullYesAltimeter setting in hectopascals (mb-equivalent)
    sea_level_pressure_mbnumber | nullYesSea level pressure in millibars (only present in hourly METARs that include the SLP group)
    precipitation_inchesnumber | nullYesPrecipitation amount reported in this observation, in inches. Typically the hourly precipitation group from a METAR.
    wethr_highobjectYesDay's high temperature computed two ways. See Wethr High/Low below.
    wethr_lowobjectYesDay's low temperature computed two ways. See Wethr High/Low below.
    high_valid_through_utcstring | nullYesUTC timestamp through which the wethr_high is considered locked in. null means the high is still based on preliminary observations and may change. See Valid Through below.
    low_valid_through_utcstring | nullYesUTC timestamp through which the wethr_low is considered locked in
    anomalybooleanYesSet to true when a DSM/CLI daily high or low sits ≥5°F beyond the observations within ±20 min of that extreme's reported time. See Data Quality Flags.
    suspect_temperatureobject | nullYesnull in the normal case. When this observation's temperature failed plausibility checks, this object holds the rejected value and reason, and temperature_celsius/temperature_fahrenheit are null. See Data Quality Flags.
    data_qualityobjectYesPer-resolution-mode report of missing temperature readings (-999) in the day's window, keyed nws and wu. Each holds ok and a warnings array. See Data Quality Flags.
    cloud_layersobjectYesCloud cover layers reported in the observation. See Cloud Layers below for structure.
    six_hour_high_celsiusnumberConditional6-hour maximum temperature in Celsius. Present only when this observation includes the 6-hour group (typically the :53 hourly METAR every 6 hours: 00z, 06z, 12z, 18z).
    six_hour_high_fintegerConditional6-hour maximum in Fahrenheit (rounded). Present when six_hour_high_celsius is.
    six_hour_low_celsiusnumberConditional6-hour minimum temperature in Celsius. Same presence rules as six_hour_high_celsius.
    six_hour_low_fintegerConditional6-hour minimum in Fahrenheit
    twentyfour_hour_high_celsiusnumberConditional24-hour maximum temperature in Celsius. Present only on the 00z and 12z synoptic observations that report the 24-hour group.
    twentyfour_hour_high_fintegerConditional24-hour maximum in Fahrenheit
    twentyfour_hour_low_celsiusnumberConditional24-hour minimum temperature in Celsius
    twentyfour_hour_low_fintegerConditional24-hour minimum in Fahrenheit
    idstringYesUnique monotonic event ID. Use this with last_event_id to replay missed events after reconnection.
    timestampstringYesUTC timestamp when Wethr.net published this event (ISO 8601). Note this is the publish time, not the observation time: see observation_time_utc.
    Wethr High / Low Objects

    Both wethr_high and wethr_low contain two parallel calculations of the day's temperature extreme. You should choose the one that matches your settlement methodology.

    LogicInputsTime Window
    nwsAll observations (METAR, SPECI, HF-METAR, OMO) plus official DSM/CLI reports once releasedStandard Time window (no DST adjustment), matching NWS climate reporting
    wuMETAR observations onlyLocal clock time window (DST-aware)

    Each logic block contains value_f (integer °F), value_c (integer °C), time_utc (UTC timestamp when the extreme occurred, or null if no extreme has been recorded yet today), plus sources and source_detail: which data sources have confirmed this extreme and how many times. See Source Attribution below.

    The wu blocks additionally carry potential_value_f, potential_value_c, potential_time_utc, and divergence: the not-yet-confirmed (accelerated-feed-inclusive) view of the WU high/low. The nws blocks intentionally omit these fields. See Preliminary & Potential Values below for the full reference.

    Valid Through (HVT / LVT)

    high_valid_through_utc and low_valid_through_utc indicate the time through which the high/low values are considered "locked in" based on official reports (DSM/CLI) and confirmed 6-hour extremes. A null value means the extreme is still based on preliminary observations and may change. Once the official daily summary is released, these fields become non-null and the wethr_high/wethr_low values for the trading day are final.

    Cloud Layers Object

    The cloud_layers object summarizes the cloud cover groups reported in the METAR. It always has the following shape:

    FieldTypeDescription
    countinteger | nullNumber of cloud layers reported (0–3). null if the source did not report a cloud layer count.
    layersarrayOrdered array of layer objects, lowest base first. May be empty (clear skies or no data).

    Each layer object contains:

    FieldTypeDescription
    height_ft_aglinteger | nullCloud base height in feet above ground level
    coveragestring | nullCoverage code: CLR (clear), FEW (few, 1/8–2/8), SCT (scattered, 3/8–4/8), BKN (broken, 5/8–7/8), OVC (overcast, 8/8). May also be VV (vertical visibility) in obscured conditions.

    A layer is included whenever either height_ft_agl or coverage is non-null, so consumers should not assume both fields are always populated on every layer.

    Data Quality Flags: anomaly, suspect_temperature, and data_quality help identify potentially erroneous or incomplete data. See Data Quality Flags below for details.

    dsm

    Sent when an intermediate Daily Summary Message is received for this station. ASOS issues several DSMs through the day; each carries the current local day's high and low so far, locked in through the issuance time in valid_through_utc. for_date is the current local day and is_final is false. The end-of-day DSM covering the whole completed day is delivered separately as dsm_final.

    {
        "station_code": "KAUS",
        "event": "dsm",
        "timezone": "America/Chicago",
        "for_date": "2026-02-08",
        "valid_through_utc": "2026-02-08 22:00:00",
        "high_f": 84,
        "high_c": 28.89,
        "high_time_utc": "2026-02-08 21:53:00",
        "low_f": 42,
        "low_c": 5.56,
        "low_time_utc": "2026-02-08 12:53:00",
        "anomaly": false,
        "id": "49123",
        "timestamp": "2026-02-08T22:04:11Z"
    }
    Field Reference: dsm
    FieldTypeDescription
    station_codestringICAO station identifier
    eventstring"dsm" for an intermediate (in-day) summary, "dsm_final" for the end-of-day summary
    timezonestringIANA timezone identifier for the station
    for_datestringThe climatological date this summary covers, in YYYY-MM-DD format (local date)
    valid_through_utcstringUTC timestamp through which these values are considered final/locked in. For dsm_final this is the end of the covered climate day (local standard midnight).
    is_final NEWbooleanfalse for an intermediate summary, true for the end-of-day summary (dsm_final).
    is_cor NEWbooleantrue when the National Weather Service transmitted this summary as a correction (COR) of an earlier one for the same day. A corrected end-of-day summary is sent as another dsm_final with the same for_date.
    high_finteger | nullDaily high temperature in Fahrenheit as reported in the DSM
    high_cnumber | nullDaily high temperature in Celsius (2 decimal places)
    high_time_utcstring | nullUTC timestamp at which the high occurred, when included in the DSM
    low_finteger | nullDaily low temperature in Fahrenheit
    low_cnumber | nullDaily low temperature in Celsius
    low_time_utcstring | nullUTC timestamp at which the low occurred, when included in the DSM
    anomalybooleantrue when the DSM high or low sits ≥5°F beyond the observations within ±20 min of its reported time. See Data Quality Flags.
    idstringUnique monotonic event ID
    timestampstringUTC publish time

    dsm_final NEW

    Sent when the end-of-day Daily Summary Message for a completed day is received, about 15 minutes after local standard midnight and covering the day that just ended. It is the ASOS's own definitive summary of the climate day and normally arrives well before the final Climate Report (cli_final) for the same day. The payload has the same fields as dsm, with is_final set to true and valid_through_utc at the end of the covered day. If the National Weather Service later corrects it (which can happen days later) another dsm_final is sent with the same for_date and is_cor: true. Because this event arrives on a different calendar day than the one it describes, always read for_date to know which day the values belong to. dsm_final is a separate event name, so existing listeners for dsm are unaffected until you subscribe to it.

    The end-of-day DSM is reference data for confirming a settled day or spotting a discrepancy. It is never used to compute the Wethr High/Low: that calculation already incorporates the final Climate Report for the same day, and the two agree on essentially every day.

    {
        "station_code": "KAUS",
        "event": "dsm_final",
        "timezone": "America/Chicago",
        "for_date": "2026-02-07",
        "valid_through_utc": "2026-02-08 06:00:00",
        "is_final": true,
        "is_cor": false,
        "high_f": 81,
        "high_c": 27.22,
        "high_time_utc": "2026-02-07 21:10:00",
        "low_f": 39,
        "low_c": 3.89,
        "low_time_utc": "2026-02-07 12:50:00",
        "anomaly": false,
        "id": "49602",
        "timestamp": "2026-02-08T06:16:40Z"
    }

    Listening for it with the browser EventSource API, for example:

    es.addEventListener('dsm_final', (e) => {
        const r = JSON.parse(e.data);
        console.log(`${r.station_code} end-of-day DSM for ${r.for_date}: high ${r.high_f}F, low ${r.low_f}F${r.is_cor ? ' (corrected)' : ''}`);
    });

    cli

    Sent when a preliminary Climate Report (CLI product) for the current local day is received. These are the "VALID TODAY AS OF ..." reports the National Weather Service issues in the afternoon and evening; timing varies by station. The final report for the day arrives the next morning as a cli_final event.

    {
        "station_code": "KAUS",
        "event": "cli",
        "timezone": "America/Chicago",
        "for_date": "2026-02-08",
        "valid_through_utc": "2026-02-08 22:00:00",
        "is_final": false,
        "high_f": 84,
        "high_c": 28.9,
        "high_time_utc": "2026-02-08 21:57:00",
        "low_f": 42,
        "low_c": 5.6,
        "low_time_utc": "2026-02-08 12:38:00",
        "anomaly": false,
        "id": "49456",
        "timestamp": "2026-02-08T22:12:40Z"
    }
    Field Reference: cli
    FieldTypeDescription
    station_codestringICAO station identifier
    eventstring"cli" for a preliminary report, "cli_final" for a final report
    timezonestringIANA timezone identifier for the station
    for_datestringThe climatological date this report covers (YYYY-MM-DD local). This is the day the values belong to, regardless of when the event is published.
    valid_through_utcstringUTC timestamp through which these values are considered locked in: the report's "VALID AS OF" time for a preliminary, the issuance time for a final
    is_final NEWbooleanfalse for a preliminary report (carries a "VALID AS OF" line), true for the final report of a completed day
    high_finteger | nullDaily high temperature in Fahrenheit as reported in the CLI
    high_cnumber | nullDaily high temperature in Celsius (1 decimal place, converted from the whole-degree Fahrenheit value the report prints)
    high_time_utcstring | nullUTC timestamp at which the high occurred, when included in the CLI. null when the report printed MM for the time (the value is still reported and still belongs to for_date)
    low_finteger | nullDaily low temperature in Fahrenheit
    low_cnumber | nullDaily low temperature in Celsius (1 decimal place)
    low_time_utcstring | nullUTC timestamp at which the low occurred, when included in the CLI
    anomalybooleantrue when the CLI high or low sits ≥5°F beyond the observations within ±20 min of its reported time
    idstringUnique monotonic event ID
    timestampstringUTC publish time

    cli_final NEW

    Sent when the final Climate Report for a completed day is received, normally between 1 and 4 AM local time and covering the previous local day. The payload has the same fields as cli, with is_final set to true. If the National Weather Service later issues a corrected final for that day, another cli_final is sent with the same for_date. Some offices also re-transmit the identical final a few minutes later under a new issuance time; that repeat is delivered as well. Treat the newest cli_final for a given station_code and for_date as authoritative, and expect an occasional duplicate with identical values. Because this event arrives on a different calendar day than the one it describes, always read for_date to know which day the values belong to. cli_final is a separate SSE event name, so it reaches only clients that listen for it; existing cli listeners see no change.

    {
        "station_code": "KAUS",
        "event": "cli_final",
        "timezone": "America/Chicago",
        "for_date": "2026-02-07",
        "valid_through_utc": "2026-02-08 07:33:00",
        "is_final": true,
        "high_f": 81,
        "high_c": 27.2,
        "high_time_utc": "2026-02-07 21:10:00",
        "low_f": 39,
        "low_c": 3.9,
        "low_time_utc": "2026-02-07 12:50:00",
        "anomaly": false,
        "id": "49610",
        "timestamp": "2026-02-08T07:34:52Z"
    }

    Listening for it with the browser EventSource API, for example:

    es.addEventListener('cli_final', (e) => {
        const r = JSON.parse(e.data);
        console.log(`${r.station_code} final for ${r.for_date}: high ${r.high_f}F, low ${r.low_f}F`);
    });

    awc_revision NEW

    Sent for Polymarket.com stations (AviationWeather.gov resolution) when aviationweather.gov changes the value of a report it already showed, such as a correction or a replaced report, or when it shows a report at a different value than the other sources Wethr.net received it from. The observation event for that report has already gone out with the other sources' value, and a change that does not set a new extreme never produces a new_high / new_low, so this event is the only signal. It carries the day's AviationWeather.gov high and low before and after the change: when high_f is below prev_high_f (or low_f above prev_low_f) the revision walked an extreme back. A revision that sets a new extreme also produces the usual new_high / new_low. Like cli_final, it is a separate event name, so clients that do not listen for it are unaffected.

    {
        "station_code": "KMIA",
        "event": "awc_revision",
        "logic": "awc",
        "observation_time_utc": "2026-11-07 08:53:00",
        "reason": "revised",
        "conflict": true,
        "value_f": 72,
        "value_c": 22,
        "prev_value_f": 75,
        "prev_value_c": 24,
        "other_sources_value_f": 75,
        "other_sources_value_c": 24,
        "date": "2026-11-07",
        "high_f": 80,
        "high_c": 27,
        "low_f": 72,
        "low_c": 22,
        "prev_high_f": 80,
        "prev_high_c": 27,
        "prev_low_f": 74,
        "prev_low_c": 23,
        "high_time_utc": "2026-11-07 13:53:00",
        "low_time_utc": "2026-11-07 08:53:00",
        "id": "1794043116701062",
        "timestamp": "2026-11-07T09:18:36Z"
    }
    Field Reference: awc_revision
    FieldTypeDescription
    observation_time_utcstringTime of the report that changed
    reasonstringcor (aviationweather.gov shows a correction), revised (it replaced its own earlier version), or differs (its version has differed from the other sources since it first appeared)
    conflictbooleantrue when aviationweather.gov's value now differs from the other sources' value for the report; false when a change brought them back in line
    value_f / value_cintegerThe report's value on aviationweather.gov now (the value that counts)
    prev_value_f / prev_value_cinteger | nullIts previous value on aviationweather.gov; null when the report just appeared there
    other_sources_value_f / other_sources_value_cinteger | nullThe value the other sources show for the same report; null when Wethr.net holds no other copy
    datestringThe station's local market day
    high_f / high_c, low_f / low_cintegerThe day's AviationWeather.gov high and low after the change, with high_time_utc / low_time_utc
    prev_high_f / prev_high_c, prev_low_f / prev_low_cinteger | nullThe day's high and low before the change

    Values are in the station's market unit (whole °F for US stations, whole °C elsewhere), with the other unit converted. Listening for it:

    es.addEventListener('awc_revision', (e) => {
        const r = JSON.parse(e.data);
        console.log(`${r.station_code} ${r.observation_time_utc}: aviationweather.gov now ${r.value_f}F (was ${r.prev_value_f}F), day low ${r.prev_low_f} -> ${r.low_f}`);
    });

    new_high / new_low

    Sent immediately when a new temperature extreme is detected for the trading day. These are leaner than observation events: they only carry the changed extreme and the value it replaced.

    {
        "station_code": "KAUS",
        "event": "new_high",
        "logic": "nws",
        "value_f": 75,
        "value_c": 24,
        "prev_value_f": 73,
        "prev_value_c": 23,
        "observation_time_utc": "2026-02-08T18:44:00Z",
        "sources": ["omo", "hf_metar"],
        "source_detail": {
            "omo":      {"first_confirmed_utc": "2026-02-08 18:44:00", "count": 1},
            "hf_metar": {"first_confirmed_utc": "2026-02-08 18:45:00", "count": 1}
        },
        "id": "49478",
        "timestamp": "2026-02-08T18:46:29Z"
    }

    The logic field indicates which calculation triggered the alert (nws, wu, wcom, or awc). You may receive separate alerts for each logic if both detect a new extreme; for example, a single observation may produce one new_high with logic: "nws" and a second new_high with logic: "wu".

    Field Reference: new_high / new_low
    FieldTypeDescription
    station_codestringICAO station identifier
    eventstringEither "new_high" or "new_low"
    logicstringWhich calculation methodology triggered this alert: "nws", "wu", "wcom" (international Kalshi stations), or "awc" (Polymarket.com stations). See Wethr High/Low.
    value_fintegerThe new extreme temperature in Fahrenheit
    value_cintegerThe new extreme temperature in Celsius
    prev_value_finteger | nullThe prior extreme this replaced, in Fahrenheit. null if this is the first extreme recorded today.
    prev_value_cinteger | nullThe prior extreme this replaced, in Celsius
    observation_time_utcstringUTC timestamp of the observation that produced the new extreme
    sourcesarray of strings Sources that had confirmed the new extreme at the moment this alert fired, ordered by first confirmation. See Source Attribution.
    source_detailobject Per-source first_confirmed_utc and count, keyed by source label. See Source Attribution.
    idstringUnique monotonic event ID
    timestampstringUTC publish time

    Preliminary & Potential Values

    Wethr.net receives some observations through an accelerated data feed before (and occasionally instead of) the standard distribution chain that Weather Underground and weather.com read from. Under WU logic, such not-yet-confirmed observations are excluded from the confirmed value_f/value_c until a standard source delivers them, and surface instead through the potential fields. The full concept, semantics, and the important disclaimer about Weather Underground agreement are documented once under the Observations API: see Preliminary Observations & Potential High/Low. This section covers what is specific to Push delivery.

    Fields (inside wethr_high.wu and wethr_low.wu)
    FieldTypeDescription
    potential_value_f / potential_value_cinteger | nullThe WU high/low including not-yet-confirmed observations. Always at least as extreme as the confirmed value_f/value_c; can be non-null while the confirmed value is still null.
    potential_time_utcstring | nullUTC observation time of the reading that set the potential extreme (not its ingest time). Ties update to the latest occurrence, matching time_utc semantics.
    divergencebooleantrue when the potential value differs from the confirmed value on this side. Unlike the REST response's single divergence object, Push carries one boolean per block: wethr_high.wu.divergence and wethr_low.wu.divergence.
    Streaming behavior
    • Divergence opens in real time. When an accelerated-feed observation sets a new potential extreme, the very next observation event shows divergence: true with the potential value, typically minutes before the standard distribution chain (and therefore the resolution sources) sees that observation. This is the earliest signal the stream provides that the resolution value and the actual air temperature may differ.
    • Confirmation appears as convergence. When a standard source later delivers the observation, no special event fires: the next observation event simply shows the confirmed value_f risen (or value_c/low fallen) to meet the potential value, with divergence back to false. Clients tracking divergence should treat it as state derived from each event, not as an edge-triggered alert.
    • nws blocks never carry these fields. Accelerated-feed observations fully count toward NWS-logic values, so there is no preliminary concept there.
    • new_high / new_low alerts fire on confirmed WU values only. A potential-only excursion does not trigger an alert; if it is later confirmed, the alert fires at confirmation time.

    Source Attribution

    Push events report which data sources have confirmed the current Wethr High and Wethr Low: the same attribution delivered on the REST wethr_high mode, computed by the same shared logic. The source labels, confirmation rules, ordering, and count semantics are documented in full under the Observations API: see Source Attribution. This section covers what is specific to Push delivery.

    Where the fields appear
    • observation events: sources and source_detail are nested inside each of the four per-logic blocks (wethr_high.nws, wethr_high.wu, wethr_low.nws, wethr_low.wu). Each block carries its own independent attribution; NWS and WU sources routinely differ, since WU logic only ever admits metar.
    • Potential High/Low fields: the wu blocks' potential_* and divergence fields are documented under Preliminary & Potential Values above.
    • new_high / new_low events: sources and source_detail appear at the top level, since the event is already scoped to one extreme and one logic.
    • dsm / dsm_final / cli / cli_final events: deliberately carry no sources fields. These events report the product's own figures, so a sources array would be circular. If a DSM or CLI value equals the current Wethr High/Low, that relationship surfaces as dsm or cli appearing in the next observation event's sources.
    Frozen vs. live attribution

    A new_high/new_low event's sources are a snapshot at the moment the record broke, typically one or two confirmers, since corroborating reports have not yet arrived. They are never retroactively updated. The observation event's nested sources are the live view: they refresh with every event and accumulate corroboration over the day (further observations, the evening 6-hour group, then DSM and CLI). So an alert fired at 18:46 may show ["omo", "hf_metar"] while an observation event an hour later shows five confirmers for the same value; both are correct for their moment. To ask "how well-confirmed is the current high right now," read the latest observation event; to ask "what triggered the alert," read the new_high.

    One minor note for clients comparing feeds: omo counts may differ slightly between REST and Push for the same station and day, due to how one-minute data is aggregated in each pipeline. Source membership and ordering are always consistent between the two APIs.

    Data Quality Flags

    The Observations Push API includes flags to help you identify potentially erroneous data. We strongly recommend checking these fields before using observation data for trading or other high-stakes decisions.

    FieldEvent(s)TypeDescription
    anomaly observation, dsm, dsm_final, cli, cli_final boolean true when a DSM or CLI daily high or low sits ≥5°F beyond the observations within ±20 min of that extreme's reported time: a high above the warmest nearby reading, or a low below the coldest. Indicates a possibly-erroneous official report. Computed identically on REST (wethr_high) and Push.
    suspect_temperature observation object | null METAR temperature failed plausibility checks. When present, temperature_celsius / temperature_fahrenheit are null. The rejected values and reason are preserved in this object. The implausible reading is excluded from all calculations: it will not affect wethr_high, wethr_low, or trigger new_high / new_low alerts.
    data_quality observation object Per-mode (nws/wu) report of missing temperature readings (the -999 sentinel) across the day's window. Each mode has ok and a warnings array. Unlike suspect_temperature (one rejected reading), this signals incomplete coverage that can leave the reported high/low understated. See data_quality (Missing Temperature) below.

    anomaly Flag

    The anomaly boolean compares each official DSM/CLI daily extreme against the observations recorded near the time that extreme is reported to have occurred. It is set true when:

    • a reported high is ≥5°F above the warmest observation within ±20 minutes of the product's high time, or
    • a reported low is ≥5°F below the coldest observation within ±20 minutes of the product's low time.

    Anchoring to the product's own extreme time keeps the comparison accurate: it tests the official figure against observations from when the extreme actually happened, not the whole day. The same check runs on both the Observations Push API and the REST wethr_high mode. The 5°F threshold is applied as a temperature difference, so it is consistent across stations regardless of display units.

    suspect_temperature Object

    FieldTypeDescription
    raw_celsiusnumberThe rejected temperature in Celsius
    raw_fahrenheitnumberThe rejected temperature in Fahrenheit
    reasonstringMachine-readable reason code (currently: out_of_range)
    messagestringHuman-readable description

    Example: Suspect Temperature Event

    {
        "station_code": "KLAX",
        "event": "observation",
        "product": "ASOS-HR",
        "temperature_celsius": null,
        "temperature_fahrenheit": null,
        "suspect_temperature": {
            "raw_celsius": -61.0,
            "raw_fahrenheit": -77.8,
            "reason": "out_of_range",
            "message": "Temperature outside plausible range (-60°C to 60°C)"
        },
        "wethr_high": {
            "nws": {"value_f": 68, "value_c": 20, "time_utc": "2026-02-08T21:53:00Z"},
            "wu": {"value_f": 68, "value_c": 20, "time_utc": "2026-02-08T21:53:00Z"}
        },
        "anomaly": false,
        "id": "49501",
        "timestamp": "2026-02-08T22:56:15Z"
    }

    In this example, KLAX reported −61°C which is clearly erroneous. The temperature was rejected and preserved in suspect_temperature for transparency. The wethr_high and wethr_low values are unaffected, and no new_low alert was triggered.

    data_quality (Missing Temperature)

    The observation event includes a data_quality object that reports gaps in the day's temperature observations. Unlike suspect_temperature (a single rejected reading), this looks across the whole trading-day window and warns when temperature coverage was incomplete, which can leave the reported wethr_high/wethr_low understated.

    Gaps are counted on one of two bases, given by the basis field:

    • minutes: the nws window on stations with a 1-minute feed (the roster in the Coverage API section). The high/low combines the 1-minute and 5-minute observations there, so a minute counts as missing when neither feed has a usable temperature for it (no observation, the -999 sentinel, or a value outside −60 to 60 °C). Any missing minute is reported. A minute younger than 10 minutes is not counted until it is overdue, unless a 1-minute observation already arrived for it without a temperature. Minutes can heal: late observations fill earlier gaps, and counts are final about two hours after the window ends.
    • readings: everywhere else (the wu window, and stations without a 1-minute feed). Counts readings the station logged as missing (the -999 sentinel).

    It is keyed per resolution mode (nws and wu) because each mode scans its own window. Each mode holds an envelope:

    FieldTypeDescription
    okbooleantrue when no problems were found (the warnings array is empty)
    warningsarrayZero or more warning objects (below). Currently the only warning is temperature_data_missing; the array allows for additional checks in future without changing the shape.

    Each warning object:

    FieldTypeDescription
    codestringStable identifier: "temperature_data_missing"
    severitystring"warning" or "critical" (see escalation rules below)
    messagestringHuman-readable summary. Treat as display text only: read the structured fields below for logic.
    basisstring"minutes" or "readings" (see above). Absent on older payloads, which are always readings.
    missing_countintegerminutes: minutes in the window with no usable temperature from either feed. readings: missing (-999) temperature readings.
    longest_runintegerLength of the longest stretch of consecutive missing minutes (or readings)
    longest_run_minutesintegerDuration of that longest stretch, in minutes
    first_missing_utcstringUTC time of the first missing minute or reading (YYYY-MM-DD HH:MM:SS)
    last_missing_utcstringUTC time of the last missing minute or reading
    activebooleantrue when the station appears to still be down: no usable temperature since the latest gap began (minutes), or the most recent reading is missing (readings)
    active_runintegerLength of the current trailing stretch (0 when not active)
    near_extremebooleantrue when a gap falls near the reported high or low (i.e. near_high or near_low)
    near_highbooleantrue when a gap falls within ~60 minutes of the reported high's time
    near_lowbooleantrue when a gap falls within ~60 minutes of the reported low's time
    missing_runsarrayminutes basis only. Every missing stretch, oldest first: start_utc and end_utc (first and last missing minute, inclusive) and minutes.
    missing_runs_truncatedbooleanminutes basis only. true if more than 500 stretches occurred and the list was cut (counts stay exact).
    as_of_utcstringminutes basis only. When the gap record was computed (refreshed every minute).

    Severity. Any missing minute or reading produces at least a warning. It escalates to critical when the station is currently down (active) or when a gap sits near the reported high or low (near_high / near_low): the case where the reported extreme is most likely to be wrong, since the true high/low could have occurred during the gap.

    Example: gap near the day's high
    "data_quality": {
        "nws": {
            "ok": false,
            "warnings": [
                {
                    "code": "temperature_data_missing",
                    "severity": "critical",
                    "message": "12 minutes without a temperature reading in this window (all feeds combined); longest gap 9 min. A gap falls within ~60 min of the day's high, so wethr_high/wethr_low may be unreliable.",
                    "basis": "minutes",
                    "missing_count": 12,
                    "longest_run": 9,
                    "longest_run_minutes": 9,
                    "first_missing_utc": "2026-10-21 18:44:00",
                    "last_missing_utc": "2026-10-21 20:05:00",
                    "active": false,
                    "active_run": 0,
                    "near_extreme": true,
                    "near_high": true,
                    "near_low": false,
                    "missing_runs": [
                        {"start_utc": "2026-10-21 18:44:00", "end_utc": "2026-10-21 18:46:00", "minutes": 3},
                        {"start_utc": "2026-10-21 19:57:00", "end_utc": "2026-10-21 20:05:00", "minutes": 9}
                    ],
                    "missing_runs_truncated": false,
                    "as_of_utc": "2026-10-21 21:30:02"
                }
            ]
        },
        "wu": {"ok": true, "warnings": []}
    }

    Here the NWS window (a 1-minute station, so basis is minutes) had two stretches with no temperature from either feed, one of them near the time of the day's high, so its high may be understated and the warning is critical; the WU window was complete. In the REST Observations API the same object appears, keyed by the single logic requested rather than both modes.


    Client Examples

    cURL: Test Connection

    curl -N "https://wethr.net:3443/api/v2/stream?stations=KAUS,KMDW&api_key=YOUR_API_KEY"

    JavaScript (Browser)

    const apiKey = 'YOUR_API_KEY';
    const stations = ['KAUS', 'KMDW', 'KLAX'];
    
    const url = `https://wethr.net:3443/api/v2/stream?stations=${stations.join(',')}&api_key=${apiKey}`;
    const eventSource = new EventSource(url);
    
    eventSource.addEventListener('observation', (e) => {
        const data = JSON.parse(e.data);
        
        // Check for suspect temperature
        if (data.suspect_temperature) {
            console.warn(`⚠️ ${data.station_code}: Suspect temp rejected (${data.suspect_temperature.raw_fahrenheit}°F - ${data.suspect_temperature.reason})`);
            return;
        }
        
        console.log(`${data.station_code}: ${data.temperature_fahrenheit}°F`);
        console.log(`  Wethr High (NWS): ${data.wethr_high.nws.value_f}°F`);
    });
    
    eventSource.addEventListener('new_high', (e) => {
        const data = JSON.parse(e.data);
        console.log(`🔥 NEW HIGH at ${data.station_code}: ${data.value_f}°F (was ${data.prev_value_f}°F)`);
    });
    
    eventSource.addEventListener('new_low', (e) => {
        const data = JSON.parse(e.data);
        console.log(`❄️ NEW LOW at ${data.station_code}: ${data.value_f}°F (was ${data.prev_value_f}°F)`);
    });
    
    eventSource.onerror = (e) => {
        console.error('Connection error:', e);
    };

    Python

    import sseclient
    import requests
    import json
    
    api_key = 'YOUR_API_KEY'
    stations = 'KAUS,KMDW,KLAX'
    url = f'https://wethr.net:3443/api/v2/stream?stations={stations}&api_key={api_key}'
    
    response = requests.get(url, stream=True)
    client = sseclient.SSEClient(response)
    
    for event in client.events():
        if event.event == 'observation':
            data = json.loads(event.data)
            
            # Check for suspect temperature
            if data.get('suspect_temperature'):
                st = data['suspect_temperature']
                print(f"⚠️ {data['station_code']}: Suspect temp rejected ({st['raw_fahrenheit']}°F - {st['reason']})")
                continue
            
            print(f"{data['station_code']}: {data['temperature_fahrenheit']}°F")
            print(f"  Wethr High (NWS): {data['wethr_high']['nws']['value_f']}°F")
        
        elif event.event == 'new_high':
            data = json.loads(event.data)
            print(f"🔥 NEW HIGH at {data['station_code']}: {data['value_f']}°F")

    Node.js

    const EventSource = require('eventsource');
    
    const apiKey = 'YOUR_API_KEY';
    const stations = 'KAUS,KMDW,KLAX';
    const url = `https://wethr.net:3443/api/v2/stream?stations=${stations}&api_key=${apiKey}`;
    
    const es = new EventSource(url);
    
    es.addEventListener('observation', (e) => {
        const data = JSON.parse(e.data);
        console.log(`${data.station_code}: ${data.temperature_fahrenheit}°F`);
    });
    
    es.addEventListener('new_high', (e) => {
        const data = JSON.parse(e.data);
        console.log(`NEW HIGH at ${data.station_code}: ${data.value_f}°F`);
    });
    
    es.onerror = (err) => {
        console.error('Error:', err);
    };

    Reconnection with Event Replay

    If your connection drops, you can resume from where you left off using the last_event_id parameter. Track the id field from each event and pass it on reconnect:

    let lastEventId = null;
    
    function connect() {
        let url = `https://wethr.net:3443/api/v2/stream?stations=KAUS&api_key=${apiKey}`;
        if (lastEventId) {
            url += `&last_event_id=${lastEventId}`;
        }
        
        const es = new EventSource(url);
        
        es.onmessage = (e) => {
            const data = JSON.parse(e.data);
            lastEventId = data.id;  // Track for reconnection
        };
        
        es.onerror = () => {
            es.close();
            setTimeout(connect, 5000);  // Reconnect after 5s
        };
    }
    
    connect();

    HF-METAR 5-Minute Observations API PUSH REST NEW BETA DEV+

    Connection rules shared by every stream (allowances, reconnecting, replay, port-443 addresses) are in Streaming Basics.

    GET https://wethr.net:3444/v1/...
    🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a 403 Access Denied response.

    Overview & Coverage

    While the Observations API above covers the curated set of market-resolution stations with full multi-source enrichment, the HF-METAR API provides raw 5-minute observations from roughly 1,000 US ASOS stations that report at 5-minute cadence. It is a dedicated service on its own port (3444) with both a real-time SSE stream and REST endpoints for current conditions and history.

    • Cadence: stations report every 5 minutes. Observations propagate in waves: the bulk of each batch arrives roughly 1–3 minutes after the :00/:05 mark, with stragglers for several minutes after.
    • History begins: 2026-09-04 16:40 UTC (archive start). All observations are retained indefinitely from that point.
    • All times are UTC. The base URL is https://wethr.net:3444: the port is intentional (dedicated service) and HTTPS is required. If your network only allows outbound HTTPS on the standard port (443), use https://wethr.net/hfmetar-api as the base URL instead (for example https://wethr.net/hfmetar-api/v1/latest?stations=KAUS). Paths, parameters, API keys, rate limits, responses and the stream all work the same on both addresses.
    • These are raw sensor observations. They carry no Wethr High/Low, market-resolution, or preliminary/potential semantics: for those, use the Observations and Observations Push APIs above.

    Authentication & Rate Limits

    Use your existing API key, exactly as with the other v2 endpoints: Authorization: Bearer <key>, an X-Api-Key header, or ?api_key=.

    Requests count against your account's shared rate limit, the same budget as every other Wethr.net API (Developer 300/min and 100,000/day; Enterprise 1,200/min and 500,000/day). Remaining quota is reported on every response via X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day. A stream connection counts as a single request. Stream allowances and what happens at the limit are described in Streaming Basics.

    Streaming (SSE)

    GET https://wethr.net:3444/v1/stream
    ParameterRequiredDescription
    stationsYesComma-separated station codes (KAUS,KDFW) or ALL for the full national feed.
    last_event_idNoResume after a disconnect: replays missed events with an id greater than this value (also accepted via the standard Last-Event-ID header, which EventSource sends automatically). Roughly 4 hours of events are retained per station. A replay_complete event marks the end of the replayed backlog.

    Each observation arrives as an observation event whose payload carries id, station_code, observation_time, ingested_at, and a data object (fields below). A heartbeat comment is sent every 30 seconds to keep the connection alive. Observations without a valid temperature are not streamed.

    Latest Observations

    GET https://wethr.net:3444/v1/latest
    ParameterRequiredDescription
    stationsYesComma-separated codes (max 500 per request) or ALL.
    max_age_minutesNoOnly return observations no older than this many minutes.
    include_null_tempNoSet to 1 to include stations whose latest observation lacks a valid temperature (excluded by default).

    Returns the most recent observation per station. This is the intended way to poll current conditions: it is served from a dedicated latest-observation store and stays fast regardless of how many stations you request.

    History

    GET https://wethr.net:3444/v1/history
    ParameterRequiredDescription
    stationYesExactly one station code, e.g. KAUS.
    hoursOne ofTrailing window in hours (max 168). Use this or start/end.
    start, endOne ofExplicit UTC range (2026-09-04 or 2026-09-04 16:00:00), max 31 days per request.
    limitNoRows per page, default 1000, max 5000. Ascending by observation time.
    afterNoCursor for paging: pass the next_after value from the previous response.
    include_null_tempNoSet to 1 to include archived observations without a valid temperature.

    The response includes count, history_begins, the page of observations, and next_after (null on the final page).

    Station Directory

    GET https://wethr.net:3444/v1/stations

    Lists every station currently present in the feed with its latest observation time and whether that observation carries a valid temperature. Use it for discovery and liveness checks.

    Data Model & Quality

    FieldUnits / ValuesNotes
    station_coden/aICAO-style identifier.
    observation_timeUTC datetimeSensor observation time (5-minute marks).
    temperature, dew_point°Cnull when not reported or failing quality bounds.
    wind_directiondegreesString: degrees true, VRB (variable), 000 (calm), or null.
    wind_speed, wind_gustknotswind_gust is null when no gust was reported.
    visibilitystatute miles10 means 10 or more (unlimited).
    altimeterhPaConverted from the reported inHg value.
    precipitationinchesAccumulation since the previous 5-minute observation. 0 is a measured zero; null means not reported.
    cloud_layer_count, cloud_1..3_height, cloud_1..3_coverageft AGL / codesUp to three layers; coverage codes FEW/SCT/BKN/OVC/VV.
    received_atUTC datetimeWhen the observation entered the Wethr archive (REST only).

    Quality control: every observation is screened at ingest. Missing-data sentinels and values outside physical bounds (temperature or dew point outside −60 to 60 °C, altimeter outside 25–32 inHg, negative or implausible wind, malformed timestamps) are nulled or rejected before storage, so they never appear in any response. Observations lacking a valid temperature are excluded from output by default but remain archived; opt in with include_null_temp=1 where supported. Note that the HF-METAR feed excludes METAR remarks, so sea-level pressure and T-group tenths precision are not available here: temperatures are whole-degree Celsius.

    Client Examples

    // Live national stream with automatic resume
    let lastEventId = null;
    
    function connect() {
        let url = `https://wethr.net:3444/v1/stream?stations=ALL&api_key=${apiKey}`;
        if (lastEventId) url += `&last_event_id=${lastEventId}`;
    
        const es = new EventSource(url);
        es.addEventListener('observation', (e) => {
            const ev = JSON.parse(e.data);
            lastEventId = ev.id;
            console.log(ev.station_code, ev.data.temperature + '°C at', ev.observation_time);
        });
        es.onerror = () => { es.close(); setTimeout(connect, 5000); };
    }
    connect();
    # Current conditions for three stations
    curl -H "X-Api-Key: $KEY" \
      "https://wethr.net:3444/v1/latest?stations=KAUS,KDFW,KSEA"
    
    # Yesterday's observations for one station, paged
    curl -H "X-Api-Key: $KEY" \
      "https://wethr.net:3444/v1/history?station=KAUS&start=2026-09-05&end=2026-09-06&limit=2000"

    1-Minute Observation Coverage API REST NEW BETA DEV+

    GET /api/v2/coverage.php
    🔒 Developer & Enterprise Only: This endpoint requires a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a 403 Access Denied response.

    Overview

    Wethr ingests a licensed one-minute observation (OMO) feed for a subset of US ASOS stations. Those readings feed the Wethr High/Low and the hourly-index tooling, but sensors drop out, feeds stall, and stations occasionally transmit a missing-data sentinel (for example -61 °C) in place of a real temperature. The Coverage API is a minute-by-minute ledger of that feed for one station over one resolution-day window (or any explicit range up to 24 hours): it tells you which minutes have no observation at all, which have an observation with no temperature, and which carry values that fail physical-range checks, including the raw rejected values so you can see exactly what the station sent.

    • It is a ledger, not an observation feed. The response never carries valid one-minute readings. The only observation values returned are the ones that were rejected, so you can audit them.
    • Day windows follow the resolution source. Pass logic=nws, wu, or awc and the window is computed with exactly the same rules as mode=wethr_high on the Observations API, so a gap reported here lines up with the Wethr High/Low it could have affected. See Day Windows.
    • Only stations with a one-minute feed are supported. Requesting any other station returns 400 together with the full supported list. See Supported Stations.
    • All times are UTC, formatted YYYY-MM-DD HH:MM:SS, and every window is end-exclusive ([start, end)).

    Supported Stations

    The one-minute roster currently covers 94 US stations. Each supports logic=nws and logic=wu; Polymarket.com stations also accept logic=awc. International stations have no one-minute feed, so logic=wcom is never valid here.

    CodeLocationTimezoneWindows
    KABQAlbuquerqueAmerica/Denvernws, wu
    KACKNantucketAmerica/New_Yorknws, wu
    KACYAtlantic CityAmerica/New_Yorknws, wu
    KAFWFort Worth AllianceAmerica/Chicagonws, wu
    KAPCNapaAmerica/Los_Angelesnws, wu
    KARRAuroraAmerica/Chicagonws, wu
    KATLAtlantaAmerica/New_Yorknws, wu, awc
    KAUSAustinAmerica/Chicagonws, wu, awc
    KBEDBedfordAmerica/New_Yorknws, wu
    KBFISeattle Boeing FieldAmerica/Los_Angelesnws, wu
    KBLMBelmarAmerica/New_Yorknws, wu
    KBNANashvilleAmerica/Chicagonws, wu
    KBOSBoston LoganAmerica/New_Yorknws, wu
    KCCRConcordAmerica/Los_Angelesnws, wu
    KCDWCaldwellAmerica/New_Yorknws, wu
    KCLLCollege StationAmerica/Chicagonws, wu
    KCLTCharlotteAmerica/New_Yorknws, wu
    KCMHColumbusAmerica/New_Yorknws, wu
    KCXOConroeAmerica/Chicagonws, wu
    KDALDallas Love FieldAmerica/Chicagonws, wu, awc
    KDCAWashington DCAmerica/New_Yorknws, wu
    KDENDenverAmerica/Denvernws, wu, awc
    KDFWDallasAmerica/Chicagonws, wu
    KDJTWest Palm BeachAmerica/New_Yorknws, wu
    KDPAWest ChicagoAmerica/Chicagonws, wu
    KDTODentonAmerica/Chicagonws, wu
    KDTWDetroitAmerica/Detroitnws, wu
    KDWHTomballAmerica/Chicagonws, wu
    KEWRNewarkAmerica/New_Yorknws, wu
    KFLLFort LauderdaleAmerica/New_Yorknws, wu
    KFRGFarmingdaleAmerica/New_Yorknws, wu
    KFXEFort Lauderdale ExecutiveAmerica/New_Yorknws, wu
    KGEDGeorgetownAmerica/New_Yorknws, wu
    KGONNew LondonAmerica/New_Yorknws, wu
    KHHRHawthorneAmerica/Los_Angelesnws, wu
    KHOUHoustonAmerica/Chicagonws, wu, awc
    KHPNWhite PlainsAmerica/New_Yorknws, wu
    KHVNNew HavenAmerica/New_Yorknws, wu
    KHWDHaywardAmerica/Los_Angelesnws, wu
    KIAHHouston IntercontinentalAmerica/Chicagonws, wu
    KINDIndianapolisAmerica/Indiana/Indianapolisnws, wu
    KISPIslipAmerica/New_Yorknws, wu
    KIXDOlathe New CenturyAmerica/Chicagonws, wu
    KJAXJacksonvilleAmerica/New_Yorknws, wu
    KLASLas VegasAmerica/Los_Angelesnws, wu
    KLAXLos AngelesAmerica/Los_Angelesnws, wu, awc
    KLEXLexingtonAmerica/New_Yorknws, wu
    KLGANew York LaGuardiaAmerica/New_Yorknws, wu, awc
    KLGBLong BeachAmerica/Los_Angelesnws, wu
    KLVKLivermoreAmerica/Los_Angelesnws, wu
    KLXTLee's SummitAmerica/Chicagonws, wu
    KMCIKansas CityAmerica/Chicagonws, wu
    KMDWChicago MidwayAmerica/Chicagonws, wu
    KMIAMiamiAmerica/New_Yorknws, wu, awc
    KMJXToms RiverAmerica/New_Yorknws, wu
    KMKCKansas City DowntownAmerica/Chicagonws, wu
    KMKEMilwaukeeAmerica/Chicagonws, wu
    KMSPMinneapolisAmerica/Chicagonws, wu
    KMSYNew OrleansAmerica/Chicagonws, wu
    KMVYMartha's VineyardAmerica/New_Yorknws, wu
    KOAKOaklandAmerica/Los_Angelesnws, wu
    KOJCOlathe ExecutiveAmerica/Chicagonws, wu
    KOKCOklahoma CityAmerica/Chicagonws, wu
    KOLMOlympiaAmerica/Los_Angelesnws, wu
    KOPFOpa-lockaAmerica/New_Yorknws, wu
    KORDChicago O'HareAmerica/Chicagonws, wu, awc
    KORHWorcesterAmerica/New_Yorknws, wu
    KOWDNorwoodAmerica/New_Yorknws, wu
    KPAEEverettAmerica/Los_Angelesnws, wu
    KPHLPhiladelphiaAmerica/New_Yorknws, wu
    KPHXPhoenixAmerica/Phoenixnws, wu
    KPITPittsburghAmerica/New_Yorknws, wu
    KPMPPompano BeachAmerica/New_Yorknws, wu
    KPVDProvidenceAmerica/New_Yorknws, wu
    KPWKWheelingAmerica/Chicagonws, wu
    KRBDDallas ExecutiveAmerica/Chicagonws, wu
    KSANSan DiegoAmerica/Los_Angelesnws, wu
    KSATSan AntonioAmerica/Chicagonws, wu
    KSDFLouisvilleAmerica/Kentucky/Louisvillenws, wu
    KSEASeattleAmerica/Los_Angelesnws, wu, awc
    KSFOSan FranciscoAmerica/Los_Angelesnws, wu, awc
    KSGFSpringfieldAmerica/Chicagonws, wu
    KSGRSugar LandAmerica/Chicagonws, wu
    KSJCSan JoseAmerica/Los_Angelesnws, wu
    KSMOSanta MonicaAmerica/Los_Angelesnws, wu
    KSMQSomervilleAmerica/New_Yorknws, wu
    KSNASanta AnaAmerica/Los_Angelesnws, wu
    KSTLSt. LouisAmerica/Chicagonws, wu
    KTANTauntonAmerica/New_Yorknws, wu
    KTEBTeterboroAmerica/New_Yorknws, wu
    KTIWTacomaAmerica/Los_Angelesnws, wu
    KTPATampaAmerica/New_Yorknws, wu
    KTTNTrentonAmerica/New_Yorknws, wu
    KWWDWildwoodAmerica/New_Yorknws, wu

    Parameters

    Choose one window style: a resolution day (logic + optional date) or an explicit UTC range (start_time + end_time). Passing both returns 400.

    ParameterRequiredDescription
    station_codeYesA station on the one-minute roster (e.g. KMIA). Omit it to receive the roster in the supported_stations field of the error response.
    logicYes (day mode)Resolution source whose day window to evaluate: nws, wu, or awc (Polymarket.com stations only; others return 400).
    dateNoYYYY-MM-DD, the station-local day under the chosen logic. Defaults to the current day under that logic (for nws this respects the standard-time clock, so between local midnight and 1 AM during DST the current day is still yesterday's date).
    start_timeYes (range mode)ISO 8601 UTC start, inclusive (e.g. 2026-09-18T05:00:00Z). Snapped down to the whole minute.
    end_timeYes (range mode)ISO 8601 UTC end, exclusive. At most 24 hours after start_time.
    include_minutesNotrue (default) returns the per-minute lists (missing_minutes, no_temperature_minutes, rejected, pending_minutes). false returns the summary and missing_runs only: a compact poll for dashboards.
    fleetNoPass fleet=1 (no other parameters) for the live feed status of every roster station at once. See Fleet Feed Status.

    Example Requests

    GET /api/v2/coverage.php?station_code=KMIA&logic=nws
    GET /api/v2/coverage.php?station_code=KMIA&logic=wu&date=2026-09-17
    GET /api/v2/coverage.php?station_code=KORD&logic=awc&include_minutes=false
    GET /api/v2/coverage.php?station_code=KAFW&start_time=2026-09-18T01:00:00Z&end_time=2026-09-18T03:00:00Z
    GET /api/v2/coverage.php?fleet=1

    Fleet Feed Status

    fleet=1 returns the same snapshot that drives the public OMO Feed Status page: every roster station's current feed state, latest minute received, minutes missing, trailing coverage, and the last seven days of outages. It refreshes every minute and is served from cache, so it is cheap to poll; one call per minute is plenty. It counts against the normal per-minute and daily budget.

    FieldTypeDescription
    generated_atdatetimeWhen the snapshot was built (UTC, ISO 8601). stale is true if it is more than three minutes old.
    lag_allowance_secintegerMedian delivery lag measured across healthy stations. Missing-minute counts only start after this allowance, so a normal 2 to 3 minute delivery delay never reads as a gap.
    expected_minutedatetimeThe latest minute that should have arrived by now (now minus the allowance).
    thresholdsobjectlive_sec and down_sec: a station is live when its latest minute is within live_sec, delayed up to down_sec, and down beyond it.
    networkobjectstate (live | issues | outage), counts (total, live, delayed, down) and, during an outage (half or more of the roster down at once), cause (upstream | ingest), since and minutes_missing.
    stations[]arrayOne entry per roster station: code, name, city, index_city (hourly-index membership, else null), timezone, markets, state, last_minute, last_received, age_sec, first_missing, minutes_missing (feed minutes, not wall-clock), outage_id, network_affected, pct_24h, pct_7d.
    outages[]arrayOpen outages first, then those closed in the last seven days: scope (station | network), station, first_missing, last_missing, minutes_missing, cause, ongoing, closed_at. Closed outages carry exact bounds taken from the minutes that actually arrived.

    Day Windows

    Different resolution sources define the "day" differently, and the coverage window must match the window the market actually settles on. The endpoint reuses the Observations API's own window rules, so the ledger for logic=nws on a given date covers exactly the minutes that mode=wethr_high&logic=nws evaluates for that date.

    logicWindowNotes
    nwsMidnight to midnight local standard timeThe NWS climate day (CLI/DSM). During daylight saving time this runs 01:00 to 01:00 local. DST is probed separately at each boundary, so the two transition days are handled correctly.
    wuLocal calendar dayWunderground / Polymarket resolution. Follows the local clock year-round (23 or 25 hours on transition days).
    awcLocal calendar dayAviationWeather.gov resolution (Polymarket.com). Same window as wu, available only on Polymarket.com stations.

    The response echoes the resolved window as window.start_utc / window.end_utc so you never have to recompute it client-side.

    Minute States & Quality Rules

    Every minute from the window start up to (but not including) the current minute is expected. Each expected minute lands in exactly one state:

    StateMeaningWhere it appears
    okAn observation exists and its temperature (and any dew point / wind) passes the range checks.summary.ok only. Valid readings are never listed.
    missingNo observation was received for that minute and the minute is older than the pending grace period.summary.missing, missing_minutes, missing_runs
    pendingNo observation yet, but the minute is younger than the grace period (pending_grace_minutes, currently 10). The feed typically lands about 2–3 minutes after the sensor minute; treat these as "not yet", not as gaps.summary.pending, pending_minutes
    no_temperatureAn observation was received but it carries no temperature (the station transmitted the minute with the temperature field absent; pressure or wind may still be present).summary.no_temperature, no_temperature_minutes
    rejectedAn observation was received with a temperature, but one or more values fail the physical-range checks below. The raw values are returned.summary.rejected, rejected

    Range checks (rules_version v1) mirror the quality screen applied to the HF-METAR feed and the hourly-index range guard:

    Reason codeRuleraw fields returned
    temperature_out_of_rangeTemperature outside −60 to 60 °C. This is how the station's -61 missing-data sentinel surfaces.temperature
    dew_point_out_of_rangeDew point outside −60 to 60 °C.dew_point
    dew_point_exceeds_temperatureDew point more than 1.0 °C above the temperature (physically impossible).temperature, dew_point
    wind_speed_out_of_range, wind_gust_out_of_rangeNegative, or above 200 knots.wind_speed / wind_gust

    Missing minutes can heal. Two live ingest paths write the one-minute table, and a reconciliation pass re-pulls the trailing two hours every five minutes to fill anything they dropped. A minute reported missing shortly after it occurred may therefore turn ok on a later request. Once a window's end is more than two hours in the past the response is marked "final": true and will no longer change. Rejected and no-temperature minutes reflect what the station transmitted and are not corrected after the fact.

    Response Fields

    FieldTypeDescription
    station_codestringStation evaluated.
    cadencestringAlways 1min in this release.
    timezonestringStation's IANA timezone used to build the day window.
    windowobjectlogic and date (null in range mode), start_utc, end_utc (exclusive), and a human-readable description.
    generated_at_utcdatetimeWhen this ledger was computed. Responses are cached for 60 seconds (one hour once final); the X-Cache header reports HIT or MISS.
    evaluated_through_utcdatetimeExclusive upper bound of the minutes that were evaluated: the window end, or the current minute for a window still in progress.
    window_completebooleantrue once the window end has passed.
    finalbooleantrue once the window end is more than two hours old and the reconciliation pass can no longer change it.
    pending_grace_minutesintegerAge below which a minute with no observation is pending instead of missing.
    rules_versionstringVersion of the range-check rule set that produced the rejected entries.
    summaryobjectCounts: expected, received, ok, missing, no_temperature, rejected, pending, plus coverage_pct = ok as a percentage of the evaluated (non-pending) minutes. expected = received + missing + pending and received = ok + no_temperature + rejected.
    latestobjectlast_observation_utc (newest minute with any row), last_ok_observation_utc (newest minute that passed), last_received_at_utc (when that newest row entered the archive), and minutes_since_last_ok: a direct "is this station live right now" signal.
    missing_runsarrayMissing minutes collapsed into consecutive runs: {start_utc, end_utc, count} with an inclusive end_utc. Always present, even with include_minutes=false.
    missing_minutesarrayEvery missing minute as a UTC datetime string.
    no_temperature_minutesarray{observation_time, data_source, received_at} for each minute that arrived without a temperature. data_source is how the minute reached us: stream (the real-time feed), poll (recovered by polling when the stream missed it) or backfill (filled in later from the provider's archive).
    rejectedarray{observation_time, reasons[], raw{}, data_source, received_at} for each minute that failed a range check. raw holds the offending values in native units (°C, knots).
    pending_minutesarrayMinutes inside the grace period that have not arrived yet.

    Example Response

    {
        "station_code": "KAFW",
        "cadence": "1min",
        "timezone": "America/Chicago",
        "window": {
            "logic": "wu",
            "date": "2026-09-17",
            "start_utc": "2026-09-17 05:00:00",
            "end_utc": "2026-09-18 05:00:00",
            "description": "Local calendar day (Wunderground / Polymarket resolution)."
        },
        "generated_at_utc": "2026-09-18 13:40:12",
        "evaluated_through_utc": "2026-09-18 05:00:00",
        "window_complete": true,
        "final": true,
        "pending_grace_minutes": 10,
        "rules_version": "v1",
        "summary": {
            "expected": 1440,
            "received": 1380,
            "ok": 1302,
            "missing": 60,
            "no_temperature": 68,
            "rejected": 10,
            "pending": 0,
            "coverage_pct": 90.42
        },
        "latest": {
            "last_observation_utc": "2026-09-18 04:59:00",
            "last_ok_observation_utc": "2026-09-18 04:59:00",
            "last_received_at_utc": "2026-09-18 05:01:31",
            "minutes_since_last_ok": 521
        },
        "missing_runs": [
            {"start_utc": "2026-09-17 09:15:00", "end_utc": "2026-09-17 09:15:00", "count": 1},
            {"start_utc": "2026-09-18 00:46:00", "end_utc": "2026-09-18 01:13:00", "count": 28},
            {"start_utc": "2026-09-18 02:35:00", "end_utc": "2026-09-18 02:43:00", "count": 9}
        ],
        "missing_minutes": ["2026-09-17 09:15:00", "2026-09-18 00:46:00", "2026-09-18 00:47:00", "..."],
        "no_temperature_minutes": [
            {"observation_time": "2026-09-17 19:28:00", "data_source": "poll", "received_at": "2026-09-17 19:30:29"}
        ],
        "rejected": [
            {
                "observation_time": "2026-09-18 01:14:00",
                "reasons": ["temperature_out_of_range", "dew_point_out_of_range"],
                "raw": {"temperature": -61, "dew_point": -61},
                "data_source": "stream",
                "received_at": "2026-09-18 01:16:19"
            }
        ],
        "pending_minutes": []
    }

    Error Responses

    • 400: missing station_code or a station without a one-minute feed (body includes supported_stations); missing or invalid logic; awc on a station that is not a Polymarket.com station; wcom; bad date; a range longer than 24 hours; or both window styles at once.
    • 401 / 403 / 429: standard authentication, tier, and rate-limit responses. Requests count against your main REST quota.

    Client Examples

    cURL: Yesterday's NWS-day ledger

    curl -H "X-Api-Key: $KEY" \
      "https://wethr.net/api/v2/coverage.php?station_code=KMIA&logic=nws&date=2026-09-17"

    Python: Alert when a station goes quiet or starts sending sentinels

    import requests
    
    r = requests.get(
        'https://wethr.net/api/v2/coverage.php',
        params={'station_code': 'KORD', 'logic': 'nws', 'include_minutes': 'false'},
        headers={'Authorization': f'Bearer {api_key}'}
    ).json()
    
    s = r['summary']
    if r['latest']['minutes_since_last_ok'] is not None and r['latest']['minutes_since_last_ok'] > 15:
        print('KORD 1-minute feed stale: last good minute', r['latest']['last_ok_observation_utc'])
    if s['rejected'] or s['no_temperature']:
        print(f"{s['rejected']} rejected + {s['no_temperature']} empty minutes so far today")
    for run in r['missing_runs']:
        if run['count'] >= 5:
            print('gap', run['start_utc'], '->', run['end_utc'], f"({run['count']} min)")

    Historical 1-Minute ASOS Archive API REST NEW BETA DEV+

    GET /api/v2/ncei_1min.php
    🔒 Developer & Enterprise Only: This endpoint requires a Developer or Enterprise tier API key. Other keys receive 403.

    Overview

    The complete NOAA NCEI ASOS one-minute archive for about 960 US stations, January 2000 to roughly one day ago, ready for backtesting. Every row is one UTC minute with temperature, dew point, one-minute precipitation, precipitation type, lightning, station pressure, two-minute wind, five-second peak gust and visibility in one place.

    • Built for bulk. Each station-year is a ready-made file (about 2 MB as Parquet), downloaded instantly. A whole station history is one zip. A sync listing with checksums lets your script fetch only what changed.
    • Climate days built in. Every row carries ts_lst (local standard time) and climate_date, the day the NWS climate report and daily temperature markets use. A daily high is one GROUP BY climate_date.
    • Quality columns on every row. NCEI publishes these values as received from the stations, with no quality control. We keep the raw values and add temp_ok, precip_ok, wind_ok and friends, combining our checks with the station's own error flags, so you can filter without decoding anything.
    • Updated daily. New data appears about a day after the observation, as fast as NCEI publishes it.
    • Hourly METARs alongside. The matching hourly and special METARs (raw text plus parsed hourly precipitation) are downloadable per station-year for official precipitation totals.

    Row Columns

    Downloads and range queries return the same columns. Values are as received. A field the station did not report is null. A minute present in only one of NCEI's two source files has null for the other file's fields.

    ColumnTypeDescription
    ts_utctimestampThe observation minute, UTC.
    ts_lsttimestampThe same minute in the station's local standard time (no daylight saving, all year).
    climate_datedateThe climate day the minute belongs to: local-standard-time midnight to midnight, the day used by the NWS daily climate report (CLI) and daily temperature markets. During daylight saving it runs 1 AM to 1 AM on the clock.
    temp_f, dew_fintegerOne-minute average temperature and dew point, whole °F.
    precip_innumberPrecipitation in that minute, inches (0.01 resolution). Raw and unedited: see Precipitation Totals.
    ptypestringPrecipitation identifier as received: NP none, R rain, S snow, P or UP unknown, with -/+ for light/heavy, plus sensor codes such as ?0–?3 and M. Not validated.
    lightninginteger0 = none within 10 miles, 1 = 5 to 10 miles (VCTS), 2 = within 5 miles (TS). null where the station has no sensor.
    station_pressure_inhgnumberStation pressure (not sea level), inches of mercury.
    frz_hzintegerFreezing-rain sensor frequency in Hz (about 40,000 when clear; it falls as ice builds up).
    wind_dir_2min, wind_speed_2min_ktintegerTwo-minute average wind direction (degrees true) and speed (knots).
    gust_dir_5s, gust_speed_5s_ktintegerPeak five-second wind in the minute: direction and speed (knots).
    extinction_coefnumberVisibility sensor extinction coefficient (higher = lower visibility).
    temp_ok … visibility_okbooleanQuality booleans, see Quality Columns.
    gap_filledbooleantrue when NCEI's monthly file lacked this minute and we restored it from a secondary archive of the same NCEI feed (for example August 2025, which NCEI now publishes as an empty file for every station). Restored minutes have the same values and checks, but no lightning, freezing-rain sensor or station error flags.
    flags_temp_precip, flags_wind_visstringRaw flag letters: which fields the station itself bracketed as suspect, plus our parse notes. See Quality Columns.
    qc_temp_precip, qc_wind_visintegerOur QC bitmask for each half (0 = passed every check).

    Quality Columns

    Raw values are never changed. Each *_ok column is true only when the value is present, passed our checks, and was not flagged by the station. Filter on the one you need: a precipitation problem never costs you a temperature row.

    Columnfalse when
    temp_okTemperature missing, outside physical limits, part of a spike (same excursion rules as our live dashboards: 20 °F confirmed, 25 °F provisional), dew point more than 1 °F above it, or station-flagged.
    dew_okDew point missing, outside physical limits, above the temperature, or station-flagged.
    precip_okValue missing, station-flagged, or its hour disagrees with the hourly METAR: rain recorded under a METAR reporting none (for example a heated gauge melting snow), or the hour's one-minute sum is more than max(0.02 in, 10 %) above or below the METAR.
    precip_verifiedfalse when there was no usable hourly METAR to check the minute against (missing hourly report, or one of the periods listed under Precipitation Totals). Not an error by itself.
    pressure_okPressure missing, outside 17 to 32 inHg, a one-minute jump of 0.10 inHg or more that snaps back, or station-flagged.
    wind_okTwo-minute wind missing or station-flagged.
    gust_okPeak wind missing, more than 2 kt below the two-minute average, or station-flagged.
    visibility_okExtinction coefficient missing, out of range, or station-flagged.

    Flag letters in flags_temp_precip: t temperature, d dew point, r precipitation, y precip type, l lightning, p pressure, z freezing-rain sensor. In flags_wind_vis: a/s two-minute direction/speed, b/g gust direction/speed, e visibility. Either may also contain x (impossible value removed), ? (unreadable field), 1 (only one of temperature/dew point present, both left empty) or f (gap-filled minute, see gap_filled). Some stations flag their lightning field on every line; l alone is harmless.

    QC bits, qc_temp_precip: 1 temperature range, 2 temperature spike, 4 dew range, 8 dew above temperature, 16 precip contradicted, 32 precip over, 64 precip under, 128 precip unverified, 256 pressure range, 512 pressure spike, 1024 station-flagged. qc_wind_vis: 1 gust below average, 2 visibility range, 1024 station-flagged.

    Precipitation Totals

    One-minute precipitation is useful for timing (when did it start, how hard did it rain), but NCEI's one-minute files have outright gaps, sometimes during the heaviest rain. For daily or monthly totals, sum the hourly METAR amounts (dataset=metar_hourly, report_type = 'FM-15'), which is how official totals are built.

    Downloading Station-Years

    Year files hold one local-standard-time year (they line up with climate_date). The current year's file grows daily.

    ParameterRequiredDescription
    station_codeYesICAO code, e.g. KORD. See Stations.
    yearYesYYYY, or all for a zip of every year (Parquet only).
    formatNoparquet (default) or csv (gzip-compressed .csv.gz; the first request for a file can take a few seconds while it is built).
    datasetNomerged (default, the one-minute rows) or metar_hourly (hourly and special METARs for that UTC year: ts, report_type FM-15 hourly / FM-16 special, metar raw text, precip_hin hourly precipitation in hundredths of an inch, 0 when none reported and null when the gauge was out, temp_c10 tenths °C).

    Responses carry ETag (the file's SHA-256) and Content-Length; send If-None-Match to get a cheap 304 when nothing changed.

    GET /api/v2/ncei_1min.php?station_code=KORD&year=2015
    GET /api/v2/ncei_1min.php?station_code=KORD&year=2015&format=csv
    GET /api/v2/ncei_1min.php?station_code=KORD&year=all
    GET /api/v2/ncei_1min.php?station_code=KORD&year=2026&dataset=metar_hourly

    Sync Listing

    ?files lists every downloadable year file (?files&station_code=KORD for one station): station_code, year, bytes, sha256, rows, first_utc, last_utc, updated. Keep the listing from your last sync and download only files whose sha256 changed.

    Range Queries

    For a quick look without downloading a year: one station, up to 31 days per request, as JSON or CSV.

    ParameterRequiredDescription
    station_codeYesICAO code.
    start_date, end_dateOne pairClimate dates, YYYY-MM-DD, both inclusive. end_date defaults to start_date.
    start_time, end_timeOne pairISO 8601 (UTC unless an offset is given), start inclusive, end exclusive.
    formatNojson (default: columns + rows arrays) or csv.
    fieldsNoComma-separated column subset, e.g. temp_f,temp_ok. ts_utc is always included.
    GET /api/v2/ncei_1min.php?station_code=KORD&start_date=2015-07-04
    GET /api/v2/ncei_1min.php?station_code=KORD&start_date=2015-07-01&end_date=2015-07-31&fields=temp_f,temp_ok&format=csv
    GET /api/v2/ncei_1min.php?station_code=KORD&start_time=2015-07-04T18:00:00Z&end_time=2015-07-04T20:00:00Z

    Limits: range queries are capped at 31 station-days per minute per key and one running query per key. When the shared query workers are busy you get 503 with Retry-After; retry after that many seconds. For anything larger than a few weeks, download year files: they are faster for you and for us.

    Stations

    ?stations returns every station (?stations&station_code=KORD for one): station_code, name, city, state, country, latitude, longitude, elevation_m, timezone, wban, utc_minus_lst_min (minutes to subtract from UTC for local standard time), coverage (first/last month and rows for each half) and downloads (years available, last minute, total bytes). Retired stations stay in the archive.

    Error Responses

    • 400 invalid parameters (the details field says which), 401 missing or invalid key, 403 tier without access, 404 unknown station or station-year.
    • 429 rate limit, range budget, or a range query of yours still running; 503 query workers busy. Both carry retry_after (seconds) and a Retry-After header.

    Client Examples

    Python: mirror a station and compute climate-day highs

    import json, os, requests, duckdb
    
    API = "https://wethr.net/api/v2/ncei_1min.php"
    H = {"X-API-Key": "YOUR_API_KEY"}
    station, folder = "KORD", "ncei_KORD"
    os.makedirs(folder, exist_ok=True)
    
    # download only the year files that changed since the last run
    listing = requests.get(API, params={"files": 1, "station_code": station}, headers=H).json()["files"]
    seen_path = os.path.join(folder, "seen.json")
    seen = json.load(open(seen_path)) if os.path.exists(seen_path) else {}
    for f in listing:
        if seen.get(str(f["year"])) != f["sha256"]:
            r = requests.get(API, params={"station_code": station, "year": f["year"]}, headers=H)
            r.raise_for_status()
            open(os.path.join(folder, f"{f['year']}.parquet"), "wb").write(r.content)
            seen[str(f["year"])] = f["sha256"]
    json.dump(seen, open(seen_path, "w"))
    
    # daily high/low from quality-checked one-minute temperatures
    print(duckdb.sql(f"""
        SELECT climate_date, max(temp_f) AS high_f, min(temp_f) AS low_f
        FROM read_parquet('{folder}/*.parquet')
        WHERE temp_ok
        GROUP BY climate_date ORDER BY climate_date DESC LIMIT 7
    """))

    curl

    curl -H "X-API-Key: YOUR_API_KEY" -o KORD_2015.parquet \
      "https://wethr.net/api/v2/ncei_1min.php?station_code=KORD&year=2015"
    
    curl --compressed -H "X-API-Key: YOUR_API_KEY" \
      "https://wethr.net/api/v2/ncei_1min.php?station_code=KORD&start_date=2015-07-04&format=csv"

    Source & Terms

    One-minute data: NOAA National Centers for Environmental Information (NCEI), ASOS one-minute data (DSI-6405 and DSI-6406), a US government work in the public domain. Wethr is not affiliated with or endorsed by NOAA. Values are provided as received from the stations, without warranty. Our quality columns are aids, not corrections; check anything that matters before relying on it.


    Precipitation

    Daily Rain API REST PUSH NEW BETA

    GET /api/v2/daily_rain.php
    ⚠️ Beta Notice: The Daily Rain API is in beta. It is fully functional and backed by the same engine as the Daily Rain dashboard, but field names, the market_status vocabulary, and default behaviors may still be revised as we iterate, and data accuracy is not guaranteed during this phase. Please report any issues to help us improve the service.

    Returns the current market day's precipitation for the stations that carry a daily "Will it rain?" market (the live observed total, an hour-by-hour breakdown, trace detection, and the official NWS Climate Report (CLI) value once it is issued) for one station or many in a single call. The numbers are computed by the same shared engine that drives the Daily Rain dashboard, so the API and the dashboard can never disagree.

    📐 The market day:

    Each station's day runs midnight to midnight in that station's Local Standard Time: a fixed UTC offset with no daylight-saving adjustment (1:00 AM to 1:00 AM on the local clock while DST is in effect). This is the window the NWS climate day covers and the window the markets settle on. Because stations sit in different time zones, they roll to a new market day at different UTC instants; every station in the response therefore carries its own market_date, window_start_utc, and window_end_utc. The endpoint always reports today's market day; it does not accept a date parameter.

    🏷️ Which markets:

    This API follows the rules of the Kalshi, Polymarket.com (the international exchange) and Polymarket US daily rain markets, which all settle the same way: on the station's final NWS Climate Report, measurable means at least 0.01", and a trace resolves No. Where these docs say Polymarket without a qualifier, they mean Polymarket.com.

    Two ways to get it: poll the REST endpoint (every tier, 15-second cache), or hold one push stream and receive each change as it happens (Developer and Enterprise). Both carry exactly the same station payload.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_code One of A single station identifier from the supported list below. Example: KORD.
    station_codes One of Comma-separated list of station identifiers, returned together in one response. Example: KORD,KDTW,KMIA. Duplicates are collapsed; any unknown code fails the whole request with a 400 that lists the valid stations.

    Codes are case-insensitive. Either parameter may be used; if both are present, station_codes wins. There is no "all stations" shortcut: pass the full list from the table below to poll every market in one request.

    Tier access: available to every API tier. Requests count against the shared per-minute and per-day limits described under Rate Limiting; a multi-station request counts as one request.

    Caching: each station's result is cached server-side for 15 seconds. Polling faster than that returns the same values, so a 15–30 second interval is the practical maximum freshness. The fastest underlying input (the one-minute observation feed) updates once a minute. Developer and Enterprise keys can skip polling entirely with the Daily Rain Push API, which streams each change as it happens.

    Supported Stations

    The station set is the registry's daily-rain market roster and updates automatically when a market is added. In the Market column, Polymarket.com is the international exchange and Polymarket US is polymarket.us; Chicago is O'Hare (KORD) on Kalshi and Midway (KMDW) on both Polymarket exchanges. The Day rolls at column is the UTC time at which the station's market day begins and ends.

    CodeLocationTimezoneStandard offsetDay rolls atMarket
    KABQAlbuquerqueAmerica/DenverUTC-707:00ZKalshi
    KATLAtlantaAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com
    KAUSAustinAmerica/ChicagoUTC-606:00ZKalshi
    KBOSBoston LoganAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com
    KCLLCollege StationAmerica/ChicagoUTC-606:00ZKalshi
    KCMHColumbusAmerica/New_YorkUTC-505:00ZKalshi
    KDCAWashington DCAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com
    KDENDenverAmerica/DenverUTC-707:00ZKalshi
    KDFWDallasAmerica/ChicagoUTC-606:00ZKalshi, Polymarket.com
    KDJTWest Palm BeachAmerica/New_YorkUTC-505:00ZKalshi
    KDTWDetroitAmerica/DetroitUTC-505:00ZKalshi
    KEWRNewarkAmerica/New_YorkUTC-505:00ZKalshi
    KHOUHoustonAmerica/ChicagoUTC-606:00ZKalshi
    KIAHHouston IntercontinentalAmerica/ChicagoUTC-606:00ZPolymarket.com
    KINDIndianapolisAmerica/Indiana/IndianapolisUTC-505:00ZKalshi
    KLASLas VegasAmerica/Los_AngelesUTC-808:00ZKalshi
    KLAXLos AngelesAmerica/Los_AngelesUTC-808:00ZKalshi, Polymarket.com, Polymarket US
    KLEXLexingtonAmerica/New_YorkUTC-505:00ZKalshi
    KMDWChicago MidwayAmerica/ChicagoUTC-606:00ZPolymarket.com, Polymarket US
    KMIAMiamiAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com, Polymarket US
    KMKEMilwaukeeAmerica/ChicagoUTC-606:00ZKalshi
    KMSPMinneapolisAmerica/ChicagoUTC-606:00ZKalshi
    KMSYNew OrleansAmerica/ChicagoUTC-606:00ZKalshi, Polymarket.com
    KNYCNew York Central ParkAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com, Polymarket US
    KOKCOklahoma CityAmerica/ChicagoUTC-606:00ZKalshi
    KORDChicago O'HareAmerica/ChicagoUTC-606:00ZKalshi
    KPHLPhiladelphiaAmerica/New_YorkUTC-505:00ZKalshi, Polymarket.com, Polymarket US
    KPHXPhoenixAmerica/PhoenixUTC-707:00ZPolymarket.com
    KPITPittsburghAmerica/New_YorkUTC-505:00ZKalshi
    KPVDProvidenceAmerica/New_YorkUTC-505:00ZKalshi
    KSATSan AntonioAmerica/ChicagoUTC-606:00ZKalshi
    KSEASeattleAmerica/Los_AngelesUTC-808:00ZKalshi, Polymarket.com
    KSFOSan FranciscoAmerica/Los_AngelesUTC-808:00ZKalshi, Polymarket.com, Polymarket US
    KSGFSpringfieldAmerica/ChicagoUTC-606:00ZKalshi
    KSTLSt. LouisAmerica/ChicagoUTC-606:00ZKalshi
    KTPATampaAmerica/New_YorkUTC-505:00ZKalshi
    KTTNTrentonAmerica/New_YorkUTC-505:00ZKalshi

    Example Requests

    GET /api/v2/daily_rain.php?station_code=KORD
    GET /api/v2/daily_rain.php?station_codes=KORD,KDTW

    Example Response

    Two stations late in their market day: Chicago O'Hare with measurable rain and a preliminary CLI already confirming it, and Detroit with only a trace.

    {
        "stations": {
            "KORD": {
                "name": "Chicago O'Hare",
                "timezone": "America/Chicago",
                "market_date": "2026-09-30",
                "window_start_utc": "2026-09-30T06:00:00Z",
                "window_end_utc": "2026-10-01T06:00:00Z",
                "observed_total": 0.74,
                "final_minutes_precip": null,
                "qualifying": true,
                "trace_present": true,
                "trace_hours_utc": [
                    "2026-09-30 07:00",
                    "2026-09-30 08:00",
                    "2026-09-30 11:00"
                ],
                "hourly_utc": {
                    "2026-09-30 12:00": 0.04,
                    "2026-09-30 13:00": 0.2,
                    "2026-09-30 14:00": 0.16,
                    "2026-09-30 15:00": 0.11,
                    "2026-09-30 16:00": 0.01,
                    "2026-09-30 17:00": 0.11,
                    "2026-09-30 20:00": 0.01,
                    "2026-09-30 21:00": 0.01,
                    "2026-09-30 22:00": 0.02,
                    "2026-09-30 23:00": 0.05,
                    "2026-10-01 00:00": 0.02
                },
                "current_hour_precip": 0,
                "current_hour_obs_time_utc": "2026-10-01 03:05:00",
                "potential_precip": null,
                "potential_bucket_utc": null,
                "boundary_remark": null,
                "opening_carry": null,
                "opening_carry_source": null,
                "final_minutes_source": null,
                "boundary_split": null,
                "cli": {
                    "amount": 0.64,
                    "trace": false,
                    "final": false,
                    "as_of": "4:00 PM",
                    "issued_at_utc": "2026-09-30 21:43:00",
                    "resolves_yes": true
                },
                "market_status": "rained",
                "computed_at_utc": "2026-10-01T03:07:39Z"
            },
            "KDTW": {
                "name": "Detroit",
                "timezone": "America/Detroit",
                "market_date": "2026-09-30",
                "window_start_utc": "2026-09-30T05:00:00Z",
                "window_end_utc": "2026-10-01T05:00:00Z",
                "observed_total": 0,
                "final_minutes_precip": null,
                "qualifying": false,
                "trace_present": false,
                "trace_hours_utc": [],
                "hourly_utc": [],
                "current_hour_precip": 0,
                "current_hour_obs_time_utc": "2026-10-01 03:04:00",
                "potential_precip": null,
                "potential_bucket_utc": null,
                "boundary_remark": null,
                "opening_carry": null,
                "opening_carry_source": null,
                "final_minutes_source": null,
                "boundary_split": null,
                "cli": {
                    "amount": 0,
                    "trace": true,
                    "final": false,
                    "as_of": "4:00 PM",
                    "issued_at_utc": "2026-09-30 20:25:00",
                    "resolves_yes": false
                },
                "market_status": "dry",
                "computed_at_utc": "2026-10-01T03:07:13Z"
            }
        },
        "count": 2,
        "units": "inches",
        "trace_threshold": 0.005,
        "timestamp": "2026-10-01T03:07:40Z"
    }

    Response Fields

    Top level

    FieldTypeDescription
    stationsobjectOne entry per requested station, keyed by station code, in the order requested.
    countintegerNumber of station entries returned.
    unitsstringAlways inches. Every amount in the response is in inches.
    trace_thresholddecimalThe sentinel below which an amount is a trace (0.005). Observed amounts at or below it never count toward observed_total or qualifying.
    timestampdatetimeTime the response was assembled (UTC, ISO 8601).

    Per-station entry

    FieldTypeDescription
    namestringHuman-readable station name.
    timezonestringIANA timezone identifier of the station.
    market_datestringThe market day being reported (YYYY-MM-DD), in the station's Local Standard Time.
    window_start_utcdatetimeInclusive start of the market day (UTC).
    window_end_utcdatetimeExclusive end of the market day (UTC).
    observed_totaldecimalMeasurable precipitation observed so far in the market day, summed over the completed accumulation periods (see Understanding the Data). Includes final_minutes_precip. Excludes the open period (current_hour_precip) and any potential_precip.
    final_minutes_precipdecimal|nullRain that fell after the day's last hourly METAR but before the day boundary, credited to this day from the accumulator reading at the boundary instant. Already included in observed_total; reported separately for transparency. null when zero or not yet applicable.
    qualifyingbooleantrue once observed_total exceeds the trace threshold, i.e., measurable rain has been observed. A trace alone never qualifies.
    trace_presentbooleanWhether any accumulation period reported a trace with no measurable amount.
    trace_hours_utcarrayThe UTC hours (YYYY-MM-DD HH:00) whose period ended with only a trace.
    hourly_utcobjectMeasurable amounts by accumulation period, keyed by the UTC hour the period ends in (YYYY-MM-DD HH:00). Only periods with a measurable amount appear; the values sum to observed_total less final_minutes_precip. Serialized as an empty array ([]) when there are no entries.
    current_hour_precipdecimal|nullThe accumulator reading in the open period, i.e. rain since the most recent hourly METAR. Not yet part of observed_total; it moves into hourly_utc when the next hourly METAR closes the period. null for stations without a sub-hourly counter feed (currently KNYC).
    current_hour_obs_time_utcdatetime|nullObservation time of the reading behind current_hour_precip.
    potential_precipdecimal|nullNot yet known. Rain in the first accumulation period of the day that cannot yet be assigned to this market day or the previous one (stations without a counter feed; see Rain at the Day Boundary). Never included in observed_total, qualifying, or market_status. Becomes null once the split is resolved and the confirmed share moves into hourly_utc.
    potential_bucket_utcstring|nullThe hourly_utc key the potential amount will land in if it proves to be today's.
    boundary_remarkstring|nullWhat the hourly METAR begin/end remarks say about rain around the opening boundary: after (rain began after the boundary; all of it is today's), before (rain ended before the boundary; all of it is yesterday's), straddle (rain in progress on both sides; the remarks cannot split it), none (no begin/end events recorded), or null when no boundary split was needed.
    opening_carrydecimal|nullThe amount of the day's first accumulation period that belonged to yesterday (rain already on the counter at the opening boundary) and was subtracted from today's first period. null when nothing carried.
    opening_carry_sourcestring|nullWhich reading established the carry: 1min (one-minute counter at the boundary), 5min (5-minute report at the boundary), special (latest SPECI before the boundary; a lower bound), remark (hourly begin/end remarks), cli (yesterday's final Climate Report), or special+cli.
    final_minutes_sourcestring|nullWhich reading established final_minutes_precip; same vocabulary as opening_carry_source.
    boundary_splitobject|nullThe evidence trail for how the first period was divided between yesterday and today (see below). Present only for stations without a counter feed when the first period held rain; null otherwise.
    cliobject|nullThe NWS Daily Climate Report for this market day (see below). null until the first report of the day is issued.
    market_statusstringConvenience summary of where the market stands (see below).
    computed_at_utcdatetimeWhen this station's entry was computed. Up to 15 seconds older than timestamp because of the per-station cache.

    boundary_split

    Mirrors the "Boundary split" evidence row on the dashboard. All amounts in inches.

    FieldTypeDescription
    first_perioddecimalTotal rain reported in the first accumulation period of the day (the one the boundary falls inside), before splitting.
    lower_bounddecimalThe least amount known to be yesterday's, from the latest SPECI before the boundary (0 if none).
    lower_bound_sourcestring|nullSource of lower_bound (special), or null.
    counter_afterdecimalThe first counter reading after the boundary, which caps how much could still be yesterday's.
    remarkstring|nullSame value as boundary_remark.
    cli_yesterdaydecimal|nullYesterday's final CLI precipitation, once issued.
    cli_issued_utcdatetime|nullIssuance time of that report.
    ours_yesterdaydecimal|nullOur observed total for yesterday computed from the reports, excluding the unseen minutes before the boundary.
    shortfalldecimal|nullcli_yesterday − ours_yesterday: exactly the rain that fell in the last minutes before the boundary and therefore belongs to yesterday.
    yesterday_unresolvedbooleantrue when yesterday's own opening boundary is still unresolved, in which case the shortfall cannot be trusted and the amount stays potential.
    resolved_bystring|nullHow the split was decided: remark, cli, special+cli, or null while still pending.
    yesterday_sharedecimalThe part of first_period assigned to yesterday (so far: the lower bound while pending).
    today_sharedecimalThe part of first_period confirmed as today's; this is what hourly_utc and observed_total carry.
    potentialdecimal|nullThe still-unassigned remainder; same value as potential_precip.

    cli

    The official value. The Climate Report is the measurement the daily rain markets resolve against, so once a final report is in, it overrides everything observed.

    FieldTypeDescription
    amountdecimalPrecipitation reported by the CLI for the market day, in inches. A trace is reported as 0.
    tracebooleanWhether the report shows a trace (T) rather than a measurable amount.
    finalboolean|nullfalse for a same-day preliminary report (covering the day up to as_of), true for the final report issued after the day ends. null only when the value came from the legacy climate pipeline, which cannot distinguish the two.
    as_ofstring|nullThe local time the report's figures run through, as printed in the report (e.g. 4:00 PM). null for a legacy-pipeline value.
    issued_at_utcdatetime|nullIssuance time of the report (UTC).
    resolves_yesbooleanamount > 0. For a final report this is the market outcome; for a preliminary report it means measurable rain is already on the books.

    market_status

    Evaluated in this order; the first condition that holds wins.

    ValueCondition
    resolved_yesA final CLI is in and reports measurable precipitation.
    resolved_noA final CLI is in and reports zero or a trace.
    rainedMeasurable rain has been observed (qualifying), or a preliminary CLI already shows a measurable amount.
    wetThe open period is accumulating (current_hour_precip > 0) but nothing measurable has closed yet.
    dryNothing measurable observed and no CLI showing rain. A trace-only day stays dry.

    Understanding the Data

    • Accumulation periods, not clock hours. An ASOS station's hourly METAR, every SPECI, every 5-minute report, and the one-minute feed all report the same rain counter: precipitation since the previous hourly METAR. That counter resets the minute after each hourly report (around :51–:56, varying by station). The day is therefore a chain of periods delimited by the hourly METARs. A period's amount is the counter's last reading before the reset, taken from the one-minute feed where it covers that minute (that reading is the accumulator the CLI itself is built from), otherwise the highest reading among the period's METAR, SPECI, and 5-minute reports. hourly_utc keys name the UTC hour each period ends in.
    • The open period. Rain since the latest hourly METAR is reported as current_hour_precip and is deliberately kept out of observed_total so nothing is counted twice. Expect observed_total to step up on the hour as periods close.
    • Day boundary. The boundary falls inside a period. The counter value at the boundary instant is credited to the ending day (final_minutes_precip) and subtracted from the new day's first period (opening_carry), mirroring how the climate day is measured. Where no counter exists the split is resolved from the remarks or the previous day's final CLI and reported as pending until then; see Rain at the Day Boundary.
    • Trace. A trace (T, below 0.01") counts as zero for the market. Trace periods are listed in trace_hours_utc and flagged by trace_present but never contribute to observed_total or qualifying. The same rule applies to the CLI: a trace report resolves No.
    • Preliminary vs. final CLI. Most offices issue a preliminary report during the afternoon (figures through as_of, typically 4 or 5 PM local) and the final report in the early hours of the next local day. The final report can differ from both the preliminary report and the observed total: observer corrections at some sites appear only in the climate products. Treat cli.final = true as the settlement value.
    • Observed vs. official. The observed engine was backtested against more than a thousand station-days of final climate reports; the residual cases are observer corrections and ingest gaps that no live feed can recover. Use observed_total and market_status for intraday tracking and cli for resolution.

    Rain at the Day Boundary

    When it is raining as one market day ends and the next begins, the accumulation period that straddles the boundary has to be divided between the two days. The engine does this the same way for the API and the dashboard, and the response shows its work.

    • Stations with a counter feed (every station except KNYC): the one-minute or 5-minute counter reading at the boundary instant settles it immediately. That reading is credited to the ending day as final_minutes_precip and subtracted from the new day's first period as opening_carry, with the source of each reading named. Nothing is ever pending.
    • Stations without a counter feed (KNYC today; others could join if their feeds change): only hourly and special reports exist, so the first period's rain cannot be split live. The unassigned remainder is reported as potential_precip and kept out of every total and out of market_status. It resolves in one of two ways: the hourly begin/end remarks settle it outright (boundary_remark of after or before), or, once yesterday's final Climate Report arrives (usually 80–100 minutes after the boundary), the difference between that report and our count of yesterday is exactly the rain that fell before the boundary. The confirmed share then moves into hourly_utc and observed_total, potential_precip returns to null, and boundary_split.resolved_by records which evidence decided it.

    A real example, Central Park on 2026-09-28. Rain was in progress across the 05:00Z boundary (1:00 AM EDT). Shortly after the first hourly report of the new day, the 0.03" in that period is pending:

    {
        "observed_total": 0,
        "qualifying": false,
        "hourly_utc": [],
        "current_hour_precip": null,
        "potential_precip": 0.03,
        "potential_bucket_utc": "2026-09-28 05:00",
        "boundary_remark": "straddle",
        "opening_carry": null,
        "opening_carry_source": null,
        "boundary_split": {
            "first_period": 0.03,
            "lower_bound": 0,
            "lower_bound_source": null,
            "counter_after": 0.03,
            "remark": "straddle",
            "cli_yesterday": null,
            "cli_issued_utc": null,
            "ours_yesterday": null,
            "shortfall": null,
            "yesterday_unresolved": false,
            "resolved_by": null,
            "yesterday_share": 0,
            "today_share": 0,
            "potential": 0.03
        },
        "market_status": "dry"
    }

    Yesterday's final CLI was issued at 06:22Z reading 1.58"; our count of yesterday from reports was 1.57". The 0.01" shortfall fell before the boundary and is yesterday's, so 0.02" is confirmed as today's:

    {
        "observed_total": 0.02,
        "qualifying": true,
        "hourly_utc": { "2026-09-28 05:00": 0.02 },
        "potential_precip": null,
        "potential_bucket_utc": null,
        "boundary_remark": "straddle",
        "opening_carry": 0.01,
        "opening_carry_source": "cli",
        "boundary_split": {
            "first_period": 0.03,
            "lower_bound": 0,
            "lower_bound_source": null,
            "counter_after": 0.03,
            "remark": "straddle",
            "cli_yesterday": 1.58,
            "cli_issued_utc": "2026-09-28T06:22:00+00:00",
            "ours_yesterday": 1.57,
            "shortfall": 0.01,
            "yesterday_unresolved": false,
            "resolved_by": "cli",
            "yesterday_share": 0.01,
            "today_share": 0.02,
            "potential": null
        },
        "market_status": "rained"
    }

    Clients that act on a market flipping to rain should key off qualifying / market_status, which only ever reflect confirmed rain, and treat potential_precip as an early warning that the day may already be wet.

    Error Example

    An unknown station fails the entire request and returns the current roster:

    {
        "error": "Unknown station(s): KXYZ",
        "valid_stations": ["KATL", "KAUS", "KBOS", "..."]
    }

    Client Examples

    cURL: One Station

    curl -G "https://wethr.net/api/v2/daily_rain.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KORD"

    cURL: Several Stations

    curl -G "https://wethr.net/api/v2/daily_rain.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_codes=KORD,KDTW,KMIA,KNYC"

    Python: Poll Every Market and Rank by Observed Rain

    import requests
    
    STATIONS = "KABQ,KATL,KAUS,KBOS,KCLL,KCMH,KDCA,KDEN,KDFW,KDJT,KDTW,KEWR,KHOU,KIAH,KIND,KLAS,KLAX,KLEX,KMDW,KMIA,KMKE,KMSP,KMSY,KNYC,KOKC,KORD,KPHL,KPHX,KPIT,KPVD,KSAT,KSEA,KSFO,KSGF,KSTL,KTPA,KTTN"
    
    resp = requests.get(
        'https://wethr.net/api/v2/daily_rain.php',
        params={'station_codes': STATIONS},
        headers={'Authorization': f'Bearer {api_key}'},
        timeout=20,
    )
    resp.raise_for_status()
    data = resp.json()
    
    rows = sorted(data['stations'].items(),
                  key=lambda kv: kv[1]['observed_total'], reverse=True)
    for code, st in rows:
        cli = st['cli']
        official = ('final ' if cli and cli['final'] else 'prelim ') + f"{cli['amount']:.2f}\"" if cli else 'no CLI yet'
        print(f"{code}  {st['market_status']:<12} observed {st['observed_total']:.2f}\"  "
              f"open {st['current_hour_precip']}  {official}  ({st['market_date']})")

    JavaScript: Watch for a Market Flipping to Rain

    const API_KEY = '<YOUR_API_KEY>';
    const codes = ['KORD', 'KDTW', 'KMIA'];
    const seen = {};
    
    async function poll() {
      const url = `https://wethr.net/api/v2/daily_rain.php?station_codes=${codes.join(',')}`;
      const res = await fetch(url, { headers: { 'Authorization': `Bearer ${API_KEY}` } });
      if (!res.ok) throw new Error(`HTTP ${res.status}`);
      const { stations } = await res.json();
    
      for (const [code, st] of Object.entries(stations)) {
        const key = `${code}:${st.market_date}`;
        if (seen[key] !== st.market_status) {
          console.log(`${code} ${st.market_date}: ${seen[key] ?? 'start'} -> ${st.market_status}` +
                      ` (observed ${st.observed_total}", open ${st.current_hour_precip ?? 'n/a'})`);
          seen[key] = st.market_status;
        }
      }
    }
    
    poll();
    setInterval(poll, 30_000);   // the server caches each station for 15 s

    Push Stream (Daily Rain Push API) PUSH DEV+

    Connection rules shared by every stream (allowances, reconnecting, replay, port-443 addresses) are in Streaming Basics.

    GET https://wethr.net:3446/v1/...
    🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Every other tier receives a 403. The Daily Rain API (REST) remains available to all tiers.
    ⚠️ Beta Notice: The Daily Rain Push API is in beta. Event shapes and endpoints may change, and the service may be interrupted. Data accuracy is not guaranteed during this phase, and the same market caveats as the Daily Rain API apply (Kalshi and Polymarket.com rules; Polymarket US rain markets are not supported yet).

    Overview

    The Daily Rain Push API streams the Daily Rain API payload the moment it changes, over a persistent Server-Sent Events (SSE) connection. Instead of polling /api/v2/daily_rain.php and waiting out its 15-second cache, you hold one connection and receive a daily_rain event for a station as soon as a new observation, a new one-minute reading, or a Climate Report changes anything about that station's market day.

    • Same numbers as REST. Every station entry is built by the same engine as the REST endpoint and the Daily Rain dashboard, with exactly the same fields, including the open-period reading current_hour_precip. Field meanings are documented once, under Daily Rain API: Response Fields.
    • Full state in every event. Each event carries the station's whole current market day, not a delta. A missed event never leaves you with a wrong total: the next event (or a reconnect snapshot) replaces everything.
    • Sent only on change. A station emits an event when any value its clients would care about changes. The bookkeeping fields computed_at_utc and current_hour_obs_time_utc advance every minute even on a dry day, so changes to those two alone do not produce an event. Expect a quiet stream on dry days and a busy one while it rains.
    • Day rollover. When a station rolls to a new market day (midnight Local Standard Time), its next event carries the new market_date. Key your state by station and market_date.

    Stations are the same daily-rain market roster as the REST endpoint (see Supported Stations), available at any time from /v1/stations. All times are UTC. All amounts are in inches.

    Base URL: https://wethr.net:3446, a dedicated service on its own port; HTTPS is required. If your network only allows outbound HTTPS on the standard port (443), use https://wethr.net/rain-api as the base URL instead (for example https://wethr.net/rain-api/v1/stream?stations=ALL). Paths, parameters, API keys, rate limits, responses and the stream all work the same on both addresses.

    Authentication & Rate Limits

    Use your existing API key exactly as with the other v2 endpoints: Authorization: Bearer <key>, an X-Api-Key header, or ?api_key= (browser EventSource clients must use ?api_key=, since they cannot set headers). Requests count against your account's shared rate limit, the same budget as every other Wethr.net API (Developer 300/min and 100,000/day; Enterprise 1,200/min and 500,000/day). A stream connection counts as one request; events within it are free. Responses carry X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day; a 429 carries Retry-After in seconds.

    There is no station limit: stations=ALL streams the whole roster. Stream allowances and what happens at the limit are described in Streaming Basics.

    Streaming (SSE)

    GET https://wethr.net:3446/v1/stream
    ParameterRequiredDescription
    stationsYesComma-separated station codes (KORD,KDTW) or ALL for the whole roster. Case-insensitive. Any unknown code fails the request with a 400 that lists the valid stations.
    last_event_idNoResume after a disconnect: replays every stored event with an id greater than this value for the requested stations, in id order, then sends replay_complete. Also accepted as the standard Last-Event-ID header, which EventSource sends automatically. The replay store keeps the most recent 300 events per station for 24 hours; a station whose newer state is no longer in the store is sent its current state instead (tagged "snapshot": true).
    snapshotNoOn a fresh connection with no replay, the server sends the current state of every requested station right after connected, tagged "snapshot": true, so a new client is complete immediately. Pass snapshot=0 to suppress.

    Event ids are strings holding a single increasing integer sequence shared by all stations. Snapshot events carry the id of the event that last set that station's state, so it is safe to resume from the highest id you have processed, snapshot or not.

    EventWhen it is sent
    connectedFirst, on every connection: stations (the resolved list), tier, max_stations (null = unlimited), producer_status, timestamp.
    daily_rainA station's market day changed (or, with "snapshot": true, its current state on connect). Payload below.
    heartbeatEvery 25 seconds: {"event": "heartbeat", "producer_status": "ok", "timestamp": "..."}.
    statusOur rain pipeline changed state: status is ok or stale, with previous and a plain-language reason. stale means no updates have been computed for more than 90 seconds; values you hold may be out of date until ok returns.
    replay_completeOnce, after a replay: replayed (events replayed), snapshots (stations sent as current state instead), last_event_id.
    displacedYour account opened a stream beyond its allowance and this, your oldest, connection is being closed.
    revokedThe daily account check found this stream is no longer permitted (key disabled or deleted, plan no longer includes the service, or too many stations for the plan). message says which; the connection is then closed.
    Event: daily_rain
    event: daily_rain
    id: 192
    data: {
      "id": "192",
      "event": "daily_rain",
      "station_code": "KORD",
      "name": "Chicago O'Hare",
      "timezone": "America/Chicago",
      "market_date": "2026-10-26",
      "window_start_utc": "2026-10-26T06:00:00Z",
      "window_end_utc": "2026-10-27T06:00:00Z",
      "observed_total": 0,
      "final_minutes_precip": null,
      "qualifying": false,
      "trace_present": false,
      "trace_hours_utc": [],
      "hourly_utc": [],
      "current_hour_precip": 0,
      "current_hour_obs_time_utc": "2026-10-26 21:37:00",
      "potential_precip": null,
      "potential_bucket_utc": null,
      "boundary_remark": null,
      "opening_carry": null,
      "opening_carry_source": null,
      "final_minutes_source": null,
      "boundary_split": null,
      "cli": {
        "amount": 0,
        "trace": false,
        "final": false,
        "as_of": "4:00 PM",
        "issued_at_utc": "2026-10-26 21:37:00",
        "resolves_yes": false
      },
      "market_status": "dry",
      "computed_at_utc": "2026-10-26T21:38:19Z",
      "timestamp": "2026-10-26T21:38:19Z"
    }

    Every field between name and computed_at_utc is identical to the station entry of the REST response; see Response Fields, Understanding the Data and Rain at the Day Boundary. The push event adds:

    FieldTypeDescription
    idstringEvent id (an integer as a string), also sent as the SSE id: line.
    eventstringAlways daily_rain.
    station_codestringThe station this state belongs to.
    timestampdatetimeWhen this state was first emitted. On a snapshot it stays the original emission time, while computed_at_utc shows the most recent recomputation (which confirmed nothing had changed).
    snapshotbooleanPresent and true only on connect snapshots and replay catch-up states.

    REST Endpoints

    The same service answers two authenticated REST calls, useful for a one-off read or to seed state without opening a stream. They return the same current state the stream would snapshot, with the same values as the REST endpoint.

    Latest
    GET https://wethr.net:3446/v1/latest?stations=KORD,KDTW

    stations takes a comma-separated list or ALL (station_code / station_codes are accepted as aliases). The response matches the REST endpoint's shape, with each station entry also carrying its id, station_code and timestamp:

    {
      "stations": { "KORD": { "id": "192", "station_code": "KORD", "name": "Chicago O'Hare", "...": "..." } },
      "count": 1,
      "units": "inches",
      "trace_threshold": 0.005,
      "producer_status": "ok",
      "last_event_id": "223",
      "timestamp": "2026-10-26T23:56:06Z"
    }

    last_event_id is the newest event id at the time of the call: open the stream with it as last_event_id to receive every change after this read without a snapshot.

    Stations
    GET https://wethr.net:3446/v1/stations

    The roster: stations is an array of {station_code, name, timezone, std_offset, has_data}, plus count and timestamp.

    Health
    GET https://wethr.net:3446/health

    No authentication. status is ok while rain updates are flowing and degraded when they are not, with producer_status, stations, stations_with_data, last_event_id and timestamp.

    Error Responses
    StatusMeaning
    400Missing stations or an unknown station code (the body lists valid_stations).
    401Missing or invalid API key.
    403Key disabled, or not a Developer or Enterprise key.
    429Rate limit exceeded, reconnecting within 2 seconds of a displacement, or all of your stream allowance in use. Honor Retry-After.
    503Authentication temporarily unavailable; retry shortly.

    Client Examples

    cURL: Watch the Raw Stream
    curl -N -H "Authorization: Bearer <YOUR_API_KEY>" \
      "https://wethr.net:3446/v1/stream?stations=KORD,KDTW"
    JavaScript: Every Market, with Automatic Resume
    const API_KEY = '<YOUR_API_KEY>';
    const state = {};   // station_code -> latest daily_rain payload
    
    // EventSource reconnects on its own and sends Last-Event-ID, so missed events are replayed.
    const es = new EventSource(`https://wethr.net:3446/v1/stream?stations=ALL&api_key=${API_KEY}`);
    
    es.addEventListener('daily_rain', (e) => {
      const st = JSON.parse(e.data);
      const prev = state[st.station_code];
      state[st.station_code] = st;
      if (!st.snapshot && prev && prev.market_date === st.market_date && prev.market_status !== st.market_status) {
        console.log(`${st.station_code} ${st.market_date}: ${prev.market_status} -> ${st.market_status}` +
                    ` (observed ${st.observed_total}", open ${st.current_hour_precip ?? 'n/a'})`);
      }
    });
    es.addEventListener('status', (e) => console.warn('rain feed', JSON.parse(e.data).status));
    es.addEventListener('displaced', () => es.close());   // another of your streams took this slot
    es.addEventListener('revoked', () => es.close());     // key or plan no longer permits this stream
    Python: Stream with Manual Resume
    import json, time, requests
    
    API_KEY = '<YOUR_API_KEY>'
    last_id = None
    
    while True:
        headers = {'Authorization': f'Bearer {API_KEY}'}
        if last_id:
            headers['Last-Event-ID'] = last_id
        try:
            with requests.get('https://wethr.net:3446/v1/stream', params={'stations': 'ALL'},
                              headers=headers, stream=True, timeout=(10, 90)) as r:
                r.raise_for_status()
                event = None
                for line in r.iter_lines(decode_unicode=True):
                    if line.startswith('event:'):
                        event = line[6:].strip()
                    elif line.startswith('data:') and event == 'daily_rain':
                        st = json.loads(line[5:])
                        last_id = st['id']
                        print(st['station_code'], st['market_date'], st['market_status'],
                              st['observed_total'], st['current_hour_precip'])
        except requests.RequestException as exc:
            print('reconnecting:', exc)
        time.sleep(5)

    Monthly Precipitation API REST BETA

    GET /api/v2/precipitation.php
    ⚠️ Beta Notice: This API is currently in beta testing. While functional, you may encounter bugs or unexpected behavior. Data accuracy is not guaranteed during this phase. Please report any issues to help us improve the service.

    Returns current month precipitation totals for a station, combining official CLI (Climate Report) data with live ASOS observations. All date/time calculations use Local Standard Time (no DST adjustment) year-round, matching NWS climate reporting standards.

    🏷️ Market rules:

    Totals follow NWS climate-report conventions (Local Standard Time days, trace counted as zero), the basis of the Kalshi, Polymarket.com (the international exchange) and Polymarket US rain markets.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_codeYesStation identifier (see supported stations below)

    Note: This endpoint always returns data for the current month. Historical month data is not available via this API.

    Supported Stations

    KABQ, KATL, KAUS, KBNA, KBOS, KCLL, KCLT, KCMH, KDCA, KDEN, KDFW, KDJT, KDTW, KEWR, KHOU, KIAH, KIND, KJAX, KLAS, KLAX, KLEX, KLGA, KMDW, KMIA, KMKE, KMSP, KMSY, KNYC, KOKC, KORD, KPHL, KPHX, KPIT, KPVD, KSAN, KSAT, KSDF, KSEA, KSFO, KSGF, KSTL, KTPA, KTTN

    Example Request

    GET /api/v2/precipitation.php?station_code=KAUS

    Example Response

    {
        "station_code": "KAUS",
        "station_name": "Austin",
        "timezone": "America/Chicago",
        "timezone_offset_hours": -6,
        "today_local_date": "2025-06-15",
        "month": 6,
        "year": 2025,
        "official_mtd": 1.45,
        "official_is_final": true,
        "today_precip": 0.13,
        "total_mtd": 1.58,
        "has_trace": false,
        "last_trace_time": null,
        "cli_date": "2025-06-14",
        "cli_issued_at": "2025-06-15 05:15:00",
        "today_hourly_max": {
            "2025-06-15 08": 0.05,
            "2025-06-15 09": 0.08
        },
        "final_mtd": 1.45,
        "final_cli_date": "2025-06-14",
        "pending_precip": 0,
        "potential_precip": null,
        "live_days": [
            {"date": "2025-06-15", "precip": 0.13, "source": "engine", "today": true}
        ],
        "method": "cli_final_plus_period_engine",
        "timestamp": "2025-06-15T21:30:00Z",
        "units": "inches"
    }

    Response Fields

    FieldTypeDescription
    station_codestringStation identifier
    station_namestringHuman-readable station name
    timezonestringPHP timezone identifier
    timezone_offset_hoursintegerFixed UTC offset for Local Standard Time (e.g., -6 for CST)
    today_local_datestringCurrent date in station's Local Standard Time (YYYY-MM-DD)
    monthintegerCurrent month (1-12)
    yearintegerCurrent year
    official_mtddecimalMonth-to-date total through yesterday. Normally the newest final Climate Report (CLI). While yesterday's final report is still pending (typically midnight to 1–4 AM local standard time), yesterday's rain is counted from observations and included here, and official_is_final is false.
    official_is_finalboolean|nulltrue when official_mtd is entirely final Climate Report data. false in the window after a new day begins but before yesterday's final report is issued; during that window official_mtd includes pending_precip and can still change slightly when the final arrives. null when the value came from the legacy climate pipeline, which does not record the distinction.
    pending_precipdecimalThe part of official_mtd counted from observations because its final report has not arrived yet (normally only yesterday, overnight). Computed by the Daily Rain engine; if a preliminary report for that day shows more, the preliminary value is used. 0 when official_is_final is true.
    today_precipdecimalToday's precipitation (local standard day) from the Daily Rain engine, including the open period since the last hourly report
    total_mtddecimalCombined total: official_mtd + today_precip
    potential_precipdecimal|nullRain at the start of today that cannot yet be assigned to today or yesterday (stations without a 1-minute feed, such as KNYC). Never included in the totals. See Daily Rain API.
    live_daysarrayOne entry per day counted from observations: date, precip, source (engine or cli_prelim), today
    has_tracebooleanWhether trace precipitation was reported today with no measurable amount in that hour
    last_trace_timestring|nullTime of last trace report (Local Standard Time)
    cli_datestring|nullDate of the most recent CLI report (preliminary or final) before today
    cli_issued_atstring|nullTimestamp when that CLI report was issued
    today_hourly_maxobjectToday's rain by Local Standard Time hour ("YYYY-MM-DD HH"): the amount in the hourly reporting period that ended in that hour. Name kept for compatibility. Empty array when no rain.
    final_mtddecimalMonth-to-date from final Climate Reports only, through final_cli_date
    final_cli_datestring|nullDate of the newest final Climate Report this month
    methodstringCalculation method identifier, currently cli_final_plus_period_engine
    timestampstringAPI response timestamp (UTC, ISO 8601)
    unitsstringAlways inches

    Understanding the Data

    • Official (CLI): The official_mtd value is the total through yesterday, from the newest final NWS Daily Climate Report (CLI), typically issued between 1 and 5 AM local time. Before yesterday's final report arrives, yesterday is counted from observations (pending_precip) so the total does not dip overnight.
    • Live: today_precip and pending_precip come from the same engine as the Daily Rain API. It adds up the station's hourly accumulation periods and splits the period that crosses midnight Local Standard Time, so rain that falls after the last hourly report but before midnight is counted on that day. On the last day of the month this keeps late rain in the month it fell in.
    • Trace: When has_trace is true, precipitation was detected but was too small to measure (<0.01"). Trace amounts are not included in the totals.
    • Hourly: The today_hourly_max object shows today's rain in each hourly reporting period, keyed by the hour the period ended.

    cURL Example

    curl -G "https://wethr.net/api/v2/precipitation.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KAUS"

    Python Example

    import requests
    
    response = requests.get(
        'https://wethr.net/api/v2/precipitation.php',
        params={'station_code': 'KAUS'},
        headers={'Authorization': f'Bearer {api_key}'}
    )
    data = response.json()
    
    print(f"Month-to-Date: {data['total_mtd']}\"")
    print(f"  Official (CLI): {data['official_mtd']}\"")
    print(f"  Today (Live):   {data['today_precip']}\"")
    if data['has_trace']:
        print(f"  Trace detected at {data['last_trace_time']}")

    Forecasts

    Forecasts API REST

    GET /api/v2/forecasts.php

    Retrieves model forecast data for a location within a time range.

    Which models cover each station is listed on Forecast Models, and how far back each model's history goes at every station is on Forecast Model History. Check it to see how far back a backtest can reach for a given city.

    Parameters

    ParameterRequiredDescription
    location_nameYesLocation identifier (e.g., KMDW)
    start_valid_timeConditionalStart of forecast range (ISO 8601). Required unless a run filter is specified.
    end_valid_timeConditionalEnd of forecast range (ISO 8601). Required unless a run filter is specified.
    model Conditional Filter by model: AIFS (6-hour steps; no precipitation or gusts), AROME-HD-15, ARPEGE, ARPEGE-EU, ECMWF-HRES, ECMWF-IFS, GEFS, GEM-GDPS, GEM-HRDPS, GFS, GFS-MOS, HRRR, HRRR-EXT, ICON, JMA, LAV-MOS, NAM, NAM-MOS, NAM4KM, NBM, NBM-PoP (rain chance only, see precipitation_probability), NBS-MOS, RAP, RRFS, UKMO. NAM, NAM-MOS and NAM4KM were retired by NOAA on November 3, 2026: they return rows for dates through that day only and are no longer part of run=latest. Ensemble series: REFS (the whole group: REFS-MEAN + REFS-M01–REFS-M05) or any one of those names. Optional. Omit it to get every deterministic model; ensemble series are only returned when requested (see include).
    run No Filter results to a single model run. Accepts:
    • latest: resolves to the most recent run for the specified model + location_name. Without a model, returns the most recent run of every model (one run per model).
    • An ISO 8601 timestamp matching a specific run_time (e.g., 2026-04-20T13:00:00Z).
    When any run filter is specified, the start_valid_time / end_valid_time window becomes optional (omit to receive every forecast hour the run produced; supply it to filter the run's output to a subset). Omit the parameter entirely for default behavior (returns all runs intersecting the requested window).
    include NEW No Set to ensembles to add the REFS ensemble series to a request that has no model (all models). Not needed when you ask for model=REFS or a single REFS series directly. See Ensembles (REFS).
    mode No Set to daily to receive a per-model, per-day high/low summary instead of raw hourly rows. Days are bucketed by the station's local time, and a day is returned only when the model run covers it completely. See Daily Summary Mode. Omit for default (raw hourly) output.
    tz_mode No Day-boundary convention for mode=daily. Ignored in all other modes. Accepts:
    • civil (default): local wall-clock time, adjusting for DST. Day boundaries follow the local civil day (23, 24, or 25 hours across DST transitions). Matches WU / Polymarket resolution.
    • standard: Local Standard Time year-round, no DST adjustment. Every day is exactly 24 hours. Matches NWS climate reporting and Kalshi temperature market resolution.

    Example Request

    GET /api/v2/forecasts.php?location_name=KMDW&start_valid_time=2025-06-15T18:00:00Z&end_valid_time=2025-06-15T20:00:00Z&model=HRRR

    Latest Run Mode

    Passing run=latest returns every forecast hour of the most recent run for a given model and location_name, without requiring the caller to know the model's run schedule or forecast horizon. This is the recommended way to retrieve "the latest HRRR for KAUS" and similar real-time lookups.

    Behavior:

    • model is optional. With a model, you get that model's most recent run. Without one, you get the most recent run of every model in a single response (each model resolved on its own schedule, so run_time differs by model; read it from each row). This is the recommended way to fetch "all models" for a station: it is far smaller than an all-model time window, which returns every run that overlaps the window.
    • start_valid_time and end_valid_time are optional. Omit them to receive every forecast hour the run produced (F00 through the model's maximum lead time). Supply them to filter the run's output to a specific window (e.g., "latest HRRR, but only the next 6 hours").
    • When a single model is requested, the response includes an X-Run-Time header containing the resolved run's initialization time (UTC), so clients can confirm which cycle they received without parsing rows. All-model and model=REFS responses omit it, since each row carries its own run_time.
    • If no runs exist for the specified model/location, the endpoint returns an empty array ([]) with HTTP 200.
    • Cadence caveat for HRRR-EXT: its runs exist only for synoptic cycles (00/06/12/18z), so run=latest resolves to the most recent of those: up to ~6 hours older than the latest HRRR run. Check the X-Run-Time header when comparing the two series.

    Example Request: Latest HRRR Run (All Forecast Hours)

    GET /api/v2/forecasts.php?location_name=KAUS&model=HRRR&run=latest

    Example Request: Latest Run of Every Model

    GET /api/v2/forecasts.php?location_name=KAUS&run=latest

    Example Request: Specific Run by Timestamp

    Retrieve a specific historical run by passing an ISO 8601 timestamp to run. The window is optional; omit it to get every forecast hour the run produced:

    GET /api/v2/forecasts.php?location_name=KAUS&model=HRRR&run=2026-04-20T13:00:00Z

    Ensembles (REFS) NEW

    REFS is the operational short-range ensemble built on the RRFS model, at 3 km resolution over CONUS. It is served as six series, each shaped exactly like any other model's rows:

    • REFS-MEAN: the official REFS ensemble mean, an equal-weight average of every forecast available for that hour: the five REFS members and the RRFS control run from the latest cycle and from the cycle six hours earlier, plus HRRR from both cycles. That is 14 forecasts out to hour 42, 13 for hours 43–48, 12 for hours 49–53, and the latest cycle's six for hours 54–60. Wind gusts and pressure are not provided for the mean (null).
    • REFS-M01 – REFS-M05: the five REFS members of the latest cycle.
    • REFS-MIN / REFS-MAX: the ensemble range, the lowest and highest value at each hour across all the forecasts behind REFS-MEAN (both cycles, as listed above). REFS-MEAN always falls between them. Every numeric field is its own minimum or maximum, so the range of temperature, dew point, wind speed, gusts, cloud cover, precipitation and pressure can each be read from these rows; wind_direction_deg and weather_code are null (a minimum or maximum direction is not meaningful). These rows are computed by Wethr.net rather than stored, so id and inserted_at are null. A value needs at least two forecasts and is otherwise null.

    Behavior:

    • Runs at 00, 06, 12 and 18z, hourly out to 60 hours.
    • model=REFS returns all eight series (mean, five members, and the range). With run=latest, all six come from the same cycle: the newest cycle in which every series is complete, so the mean and members never mix cycles while a new one is still arriving.
    • Ensemble series are opt-in. A request without a model does not return them unless you add include=ensembles. This keeps existing all-model requests unchanged.
    • The five members alone span less than the full set of forecasts behind the mean, so the mean can sit slightly outside the members' spread. Use REFS-MIN / REFS-MAX for the true range.
    • REFS-MIN / REFS-MAX come only with the whole group (model=REFS or include=ensembles), in raw mode. They are not returned for a single series such as model=REFS-MEAN, and are not part of mode=daily.

    Example Request: Latest REFS (mean + members, one cycle)

    GET /api/v2/forecasts.php?location_name=KATL&model=REFS&run=latest

    Example Request: Latest Run of Every Model, Including Ensembles

    GET /api/v2/forecasts.php?location_name=KATL&run=latest&include=ensembles

    Response Size Limit

    A single response returns at most 20,000 rows, ordered by valid_time. If a response reaches that limit, it carries the header X-Wethr-Truncated: true and the latest valid times are missing. Narrow the window, request one model, or use run=latest, which returns one run per model and stays well under the limit.

    Daily Summary Mode

    Passing mode=daily collapses the hourly forecast into a per-model, per-day high and low, bucketed by the station's local time. Instead of one row per forecast hour, you get one row per model per day. This is intended for daily temperature brackets and model backtesting, where the unit of interest is the day's extreme rather than the hourly trace.

    Behavior:

    • Local-time days. Each forecast hour (stored in UTC) is converted to the station's local time using its IANA timezone, then grouped by local calendar day. The day boundary convention is controlled by tz_mode (civil, the default, or standard).
    • Complete days only. A day is returned only when the model run fully covers it, that is, the run's forecast hours span the entire local day from midnight to midnight. Partial days at the start of a run (which begins mid-day) and at the end of its forecast horizon are omitted. A single run that fully covers several days returns one row per covered day.
    • Run selection. By default, each model is summarized at its latest run, so model is optional (omit it to summarize every available model; supply it to restrict to one). To summarize a specific historical run instead (for example, when backtesting), pass that run's timestamp via run (e.g., run=2026-06-01T12:00:00Z); the summary then reflects only that run.
    • All models included. No deterministic model is filtered out except NBM-PoP, which is a rain-chance series with no temperatures (ensemble series are opt-in, as in raw mode: add model=REFS or include=ensembles). Gridded models (e.g., GFS, HRRR, RRFS) and statistical guidance (e.g., GFS-MOS, NBS-MOS) are summarized alike. Because guidance products are often issued at coarser intervals, their high/low is derived from fewer points; the points_used field reports how many forecast points contributed to each day so you can account for sampling resolution. Among gridded models, HRRR-EXT is notable here: its +48-hour horizon makes it the highest-resolution model that reliably produces a fully-covered next-day row.
    • Response headers. An X-Run-Signature header identifies the set of runs used to build the summary, so the cached response rotates automatically when a newer run lands.
    • If no fully-covered day exists for the station (for example, when stored runs do not yet extend far enough), the endpoint returns an empty array ([]) with HTTP 200.
    • If the station's timezone is not configured in the catalog, the endpoint returns HTTP 422 rather than silently bucketing in UTC.

    Example Request: Daily High/Low, All Models

    GET /api/v2/forecasts.php?location_name=KMDW&mode=daily

    Example Request: Single Model, Standard-Time Days

    GET /api/v2/forecasts.php?location_name=KMDW&mode=daily&model=GFS&tz_mode=standard

    Daily Summary Fields

    FieldTypeDescription
    modelstringForecast model name
    datestringLocal calendar day (YYYY-MM-DD) in the station's time
    timezonestringIANA timezone used for bucketing (e.g., America/Chicago)
    tz_modestringDay-boundary convention applied: civil or standard
    run_timedatetimeModel run the summary was derived from (UTC)
    points_usedintegerNumber of forecast points that contributed to this day's high/low
    high_fdecimalDay's maximum temperature (Fahrenheit)
    low_fdecimalDay's minimum temperature (Fahrenheit)
    high_cdecimalDay's maximum temperature (Celsius)
    low_cdecimalDay's minimum temperature (Celsius)

    Note: Fahrenheit fields are present for US stations and Celsius fields for international stations, mirroring the native units of the underlying forecast data; a field is omitted for a day when the source model did not provide that unit.

    Example Response

    [
        {
            "model": "GFS",
            "date": "2026-06-02",
            "timezone": "America/Chicago",
            "tz_mode": "civil",
            "run_time": "2026-06-01 06:00:00",
            "points_used": 24,
            "high_f": 73.1,
            "low_f": 56.4,
            "high_c": 22.8,
            "low_c": 13.5
        },
        {
            "model": "NAM4KM",
            "date": "2026-06-02",
            "timezone": "America/Chicago",
            "tz_mode": "civil",
            "run_time": "2026-06-01 12:00:00",
            "points_used": 24,
            "high_f": 71.3,
            "low_f": 55.1,
            "high_c": 21.8,
            "low_c": 12.8
        }
    ]

    Tip: For backtesting which model is most accurate at a given lead time, pin a historical run with run and read the returned date values against that run's run_time: the gap between them is the lead time, and a single run covering multiple days lets you score day+1, day+2, and beyond from one response.

    Forecast Data Model

    FieldTypeDescription
    idintegerUnique record identifier
    modelstringForecast model name
    location_namestringLocation identifier
    latitudedecimalLatitude
    longitudedecimalLongitude
    run_timedatetimeModel run time (UTC)
    valid_timedatetimeForecast valid time (UTC)
    forecast_hourintegerLead time in hours
    temperature_kdecimalTemperature (Kelvin)
    temperature_fdecimalTemperature (Fahrenheit)
    temperature_cdecimalTemperature (Celsius)
    relative_humiditydecimalRelative humidity (%)
    dew_point_fdecimalDew point (Fahrenheit)
    dew_point_cdecimalDew point (Celsius)
    apparent_temp_fdecimalApparent ("feels like") temperature (Fahrenheit)
    apparent_temp_cdecimalApparent ("feels like") temperature (Celsius)
    wind_speed_mphdecimalWind speed (mph)
    wind_speed_kmhdecimalWind speed (km/h)
    wind_direction_degintegerWind direction (degrees, 0–360)
    wind_gusts_mphdecimalWind gusts (mph)
    wind_gusts_kmhdecimalWind gusts (km/h)
    cloud_coverdecimalTotal cloud cover (%). For HRRR's 15-minute rows, cloud cover is hourly-resolution data and is populated only on top-of-hour timestamps (null on :15/:30/:45 rows).
    precipitation_mmdecimalPrecipitation (millimeters). For HRRR, HRRR-EXT, and most other models this is the true accumulation over the preceding hour. On HRRR's 15-minute rows it is hourly-resolution data like cloud cover: populated only on top-of-hour timestamps (null on :15/:30/:45 rows, and on FH00; nothing has accumulated at analysis time). Exception: RRFS reports the precipitation rate at the valid time expressed as an hourly equivalent (mm/h); rate values indicate intensity and should not be summed for exact storm totals.
    precipitation_indecimalPrecipitation (inches): same per-model semantics as precipitation_mm
    precipitation_probabilityintegerChance (%) of at least 0.01 in of precipitation in the 6 hours ending at valid_time. Filled only on NBM-PoP rows; null for every other model.
    weather_codeintegerWMO weather interpretation code
    pressure_msl_hpadecimalMean sea-level pressure (hPa)
    surface_pressure_hpadecimalSurface pressure (hPa)
    inserted_atdatetimeTimestamp when this forecast record was ingested into the database (UTC). Useful as a freshness indicator for weighting or staleness calculations.

    Note: The extended fields (humidity, dew point, apparent temperature, wind, cloud cover, precipitation, weather code, and pressure) are populated where the source model provides them. A field will be null for any model/run that does not supply that variable, so clients should treat all extended fields as nullable. The temperature fields are present for all models.

    Model cadence & coverage: HRRR is sub-hourly: a new run every hour with valid_time rows every 15 minutes (FH00–18). All extended fields ride the 15-minute rows except cloud_cover and precipitation_mm/precipitation_in, which are hourly-resolution and appear only on top-of-the-hour rows. HRRR-EXT (hourly rows, FH00–48, synoptic cycles) and RRFS (hourly rows, 3-hourly cycles) populate the full extended set including cloud cover and precipitation.

    NBM-PoP rows: the NBM chance of precipitation, as its own series. Runs at 00, 06, 12 and 18 UTC, with rows every 6 hours out to about 3 days. Each row carries only precipitation_probability; temperature, wind, humidity, cloud, precipitation amount and pressure are null (use NBM or NBS-MOS for those).

    Example Response

    [
        {
            "id": 123456,
            "model": "HRRR",
            "location_name": "KMDW",
            "latitude": 41.786,
            "longitude": -87.752,
            "run_time": "2025-06-15 18:00:00",
            "valid_time": "2025-06-15 19:00:00",
            "forecast_hour": 1,
            "temperature_k": 299.82,
            "temperature_f": 80.0,
            "temperature_c": 26.5,
            "relative_humidity": 55.0,
            "dew_point_f": 62.5,
            "dew_point_c": 16.9,
            "apparent_temp_f": 82.4,
            "apparent_temp_c": 28.0,
            "wind_speed_mph": 11.5,
            "wind_speed_kmh": 18.5,
            "wind_direction_deg": 210,
            "wind_gusts_mph": 18.2,
            "wind_gusts_kmh": 29.3,
            "cloud_cover": 40.0,
            "precipitation_mm": 0.0,
            "precipitation_in": 0.0,
            "weather_code": 2,
            "pressure_msl_hpa": 1014.2,
            "surface_pressure_hpa": 1009.8,
            "inserted_at": "2025-06-15 18:42:13",
            "precipitation_probability": null
        },
        {
            "id": 123457,
            "model": "HRRR",
            "location_name": "KMDW",
            "latitude": 41.786,
            "longitude": -87.752,
            "run_time": "2025-06-15 18:00:00",
            "valid_time": "2025-06-15 20:00:00",
            "forecast_hour": 2,
            "temperature_k": 300.37,
            "temperature_f": 81.0,
            "temperature_c": 27.2,
            "relative_humidity": 53.0,
            "dew_point_f": 62.1,
            "dew_point_c": 16.7,
            "apparent_temp_f": 83.1,
            "apparent_temp_c": 28.4,
            "wind_speed_mph": 12.1,
            "wind_speed_kmh": 19.5,
            "wind_direction_deg": 215,
            "wind_gusts_mph": null,
            "wind_gusts_kmh": null,
            "cloud_cover": 35.0,
            "precipitation_mm": 0.0,
            "precipitation_in": 0.0,
            "weather_code": 2,
            "pressure_msl_hpa": 1014.0,
            "surface_pressure_hpa": 1009.6,
            "inserted_at": "2025-06-15 18:42:13",
            "precipitation_probability": null
        }
    ]

    Tip: The run_time field represents the model initialization cycle (e.g., 18:00:00 for an 18z run). Combined with inserted_at, you can determine both which cycle a forecast belongs to and how recently it was ingested, useful for staleness decay or freshness-weighted blending across models. Both fields are in UTC.

    Client Examples

    cURL: Forecast Range

    curl -G "https://wethr.net/api/v2/forecasts.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "location_name=KMDW" \
      --data-urlencode "start_valid_time=2025-06-15T18:00:00Z" \
      --data-urlencode "end_valid_time=2025-06-15T20:00:00Z" \
      --data-urlencode "model=HRRR"

    cURL: Latest Run (All Forecast Hours)

    curl -G "https://wethr.net/api/v2/forecasts.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "location_name=KAUS" \
      --data-urlencode "model=HRRR" \
      --data-urlencode "run=latest"

    cURL: Daily High/Low Summary (All Models)

    curl -G "https://wethr.net/api/v2/forecasts.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "location_name=KMDW" \
      --data-urlencode "mode=daily"

    Python: Latest Run

    import requests
    
    response = requests.get(
        'https://wethr.net/api/v2/forecasts.php',
        params={'location_name': 'KAUS', 'model': 'HRRR', 'run': 'latest'},
        headers={'Authorization': f'Bearer {api_key}'}
    )
    forecasts = response.json()
    resolved_run = response.headers.get('X-Run-Time')
    print(f"Latest HRRR run: {resolved_run} ({len(forecasts)} forecast hours)")

    NWS Forecasts API REST BETA

    GET /api/v2/nws_forecasts.php
    ⚠️ Beta Notice: This API is currently in beta testing. While functional, you may encounter bugs or unexpected behavior. Please report any issues to help us improve the service.

    Returns NWS hourly temperature forecasts for a station. Forecasts are sourced from the National Weather Service API and stored with version tracking as they update throughout the day.

    ⚠️ Critical: Local Standard Time Convention
    All dates and hours in this API use Local Standard Time year-round (no Daylight Saving Time adjustment). This means:
    • During DST months, the "day" boundaries are shifted by 1 hour compared to civil time
    • Hour 0 always represents midnight Standard Time, not midnight local civil time
    • This convention matches NWS climate reporting and Kalshi temperature market resolution

    If you are using a different resolution source that uses civil time (with DST), these forecasts may not align correctly with your day boundaries.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_codeYesStation identifier
    date No Forecast date in YYYY-MM-DD format. Defaults to today. Can request up to 2 days in the future or 365 days (1 year) in the past.
    mode No latest (default): Returns only the most recent forecast version for the requested date
    history: Returns all forecast versions for the requested date (useful to see how the forecast evolved)

    Example Requests

    # Today's latest forecast
    GET /api/v2/nws_forecasts.php?station_code=KAUS
    
    # Tomorrow's latest forecast
    GET /api/v2/nws_forecasts.php?station_code=KAUS&date=2025-06-16
    
    # Today's forecast history (all versions)
    GET /api/v2/nws_forecasts.php?station_code=KAUS&date=2025-06-15&mode=history

    Example Response (mode=latest)

    {
        "station_code": "KAUS",
        "station_name": "Austin",
        "timezone": "America/Chicago",
        "timezone_offset_hours": -6,
        "forecast_date": "2025-06-15",
        "version": 12,
        "hourly_temps": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, 94, 95, 95, 94, 92, 89, 85, 82, 79, 77, 75],
        "high": 95,
        "low": 75,
        "hourly_data": {
            "pop": [null, null, ..., 0, 0, 20, 20, ...],
            "rh": [null, null, ..., 27, 30, 35, ...],
            "dp_f": [null, null, ..., 62, 63, 64, ...],
            "ws_mph": [null, null, ..., 5, 5, 10, ...],
            "wd_deg": [null, null, ..., 157.5, 180, 180, ...],
            "sf": [null, null, ..., "Mostly Clear", "Partly Cloudy", ...],
            "sc": [null, null, ..., 12, 24, 20, ...]
        },
        "hourly_data_fields": {
            "pop": "probability of precipitation (%)",
            "rh": "relative humidity (%)",
            "dp_f": "dew point (F)",
            "ws_mph": "wind speed (mph)",
            "wd_deg": "wind direction (degrees)",
            "sf": "short forecast text",
            "sc": "sky (cloud) cover (%)"
        },
        "published_at": "2025-06-15T17:55:43Z",
        "published_ts": 1750009543,
        "timestamp": "2025-06-15T21:30:00Z",
        "units": "fahrenheit",
        "time_convention": "local_standard_time"
    }

    Example Response (mode=history)

    {
        "station_code": "KAUS",
        "station_name": "Austin",
        "timezone": "America/Chicago",
        "timezone_offset_hours": -6,
        "forecast_date": "2025-06-15",
        "total_versions": 3,
        "forecasts": [
            {
                "version": 1,
                "hourly_temps": [null, null, null, null, null, null, 71, 74, 78, 82, ...],
                "high": 94,
                "low": 71,
                "hourly_data": { "pop": [...], "rh": [...], "dp_f": [...], "ws_mph": [...], "wd_deg": [...], "sf": [...] },
                "published_at": "2025-06-15T09:12:05Z",
                "published_ts": 1749978725
            },
            {
                "version": 2,
                "hourly_temps": [null, null, null, null, null, null, null, null, null, null, null, null, 91, 93, ...],
                "high": 95,
                "low": 77,
                "hourly_data": { "pop": [...], "rh": [...], "dp_f": [...], "ws_mph": [...], "wd_deg": [...], "sf": [...] },
                "published_at": "2025-06-15T14:38:41Z",
                "published_ts": 1749998321
            }
        ],
        "timestamp": "2025-06-15T21:30:00Z",
        "units": "fahrenheit",
        "time_convention": "local_standard_time"
    }

    Response Fields

    FieldTypeDescription
    station_codestringStation identifier
    station_namestringHuman-readable station name
    timezonestringPHP timezone identifier
    timezone_offset_hoursintegerFixed UTC offset for Local Standard Time
    forecast_datestringForecast date (YYYY-MM-DD) in Local Standard Time
    versionintegerForecast version number (latest mode only)
    hourly_tempsarrayArray of 25 temperatures (indices 0-24, where 24 = midnight next day). Values are null for hours that had already passed when the forecast was issued.
    highinteger|nullForecasted high temperature, calculated as the maximum of all non-null values in hourly_temps
    lowinteger|nullForecasted low temperature, calculated as the minimum of all non-null values in hourly_temps
    hourly_dataobject|nullAdditional NWS forecast details as 25-slot arrays parallel to hourly_temps (same index = same hour, null for past hours): pop (probability of precipitation %), rh (relative humidity %), dp_f (dew point °F), ws_mph (wind speed mph), wd_deg (wind direction degrees), sf (short forecast text), sc (sky/cloud cover %, from the NWS gridpoint layer). null for forecast versions captured before this data was collected.
    hourly_data_fieldsobject|nullLegend describing each key in hourly_data
    published_atstring|nullUTC timestamp (ISO 8601) when this forecast version was captured from the NWS. This is Wethr's ingestion time for the version; because versions are detected by frequent polling, it also closely approximates when the NWS published it.
    published_tsinteger|nullUnix epoch equivalent of published_at
    total_versionsintegerNumber of forecast versions available (history mode only)
    forecastsarrayArray of all forecast versions (history mode only)
    unitsstringAlways fahrenheit
    time_conventionstringAlways local_standard_time

    Understanding the Time Convention

    The hourly_temps array contains 25 values representing hours 0 through 24:

    • Index 0: Midnight (00:00) Local Standard Time
    • Index 12: Noon (12:00) Local Standard Time
    • Index 24: Midnight (00:00) next day: included for continuity

    Null Values for Past Hours

    The NWS API only provides forecasts for future hours. Hours that have already occurred when the forecast was fetched will have null values. For example, if a forecast is fetched at 2:00 PM, indices 0-13 will typically be null while indices 14-24 will contain forecasted temperatures.

    When using mode=history, earlier forecast versions will have more non-null values since they were fetched when more hours were still in the future.

    Example during Daylight Saving Time

    In Austin (CST/CDT), during summer when CDT is in effect:

    • Index 0 represents midnight Central Standard Time (which is 1:00 AM CDT civil time)
    • The "day" in this API runs from 1:00 AM to 1:00 AM civil time during DST months

    cURL Example

    curl -G "https://wethr.net/api/v2/nws_forecasts.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KAUS" \
      --data-urlencode "date=2025-06-15"

    Python Example

    import requests
    
    response = requests.get(
        'https://wethr.net/api/v2/nws_forecasts.php',
        params={'station_code': 'KAUS', 'mode': 'latest'},
        headers={'Authorization': f'Bearer {api_key}'}
    )
    data = response.json()
    
    print(f"Forecast for {data['forecast_date']} (version {data['version']})")
    print(f"High: {data['high']}°F / Low: {data['low']}°F")
    print(f"Hourly: {data['hourly_temps']}")

    Model Accuracy API REST DEV+

    GET /api/v2/model_accuracy.php
    🔒 Developer & Enterprise Only: This endpoint requires a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a 403 Access Denied response.

    Returns per-model forecast accuracy metrics for a station, including MAE (Mean Absolute Error), bias, and RMSE across configurable time windows. Data is computed daily from verified high or low temperature observations compared against raw model output. You can query either the daily high (default) or daily low via the extreme parameter.

    All 118 stations in the Model Accuracy roster (US and international) are supported. Data is updated once daily and cached server-side for performance.

    📐 About the bias field (read this before integrating):

    The bias field returned by this endpoint is computed as actual − forecast. Mathematically, this value represents the correction factor: the number you would add to the model's forecast to match the average actual on these days.

    • Positive bias = the model under-predicted (forecast was lower than what actually occurred). The model "ran cold."
    • Negative bias = the model over-predicted (forecast was higher than what actually occurred). The model "ran warm."

    If you prefer the conventional bias measure used in most forecast verification literature (where positive means a warm-running model), simply negate the value: conventional_bias = -bias. Both representations describe the same underlying error in opposite sign conventions. The field name and value are preserved as-is for backward compatibility with existing integrations.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_code Yes ICAO station identifier (e.g., KORD, EGLC)
    extreme No Which daily extreme to query. Values: high (default), low. Determines whether the response describes daily high or daily low temperature accuracy.
    window No Time window for accuracy metrics. Values: 7d (default), 14d, 30d, 90d
    model No Comma-separated model filter (case-sensitive). Example: GFS,HRRR,ECMWF-IFS. Omit for all models.
    run_time No Comma-separated run time filter. Example: 00z,12z. Omit for all run times.
    lead_time No Comma-separated lead-time bucket filter. Lead time is the gap between when a model run was issued and when the actual extreme occurred. Valid bucket labels: 0-3h, 3-6h, 6-12h, 12-18h, 18-24h. Example: 0-3h,3-6h. Omit for all buckets.
    include No Comma-separated list of optional data sections to include: trends, daily_detail. See Optional Includes.

    Available Models: AROME-HD-15, ARPEGE, ARPEGE-EU, ECMWF-HRES, ECMWF-IFS, GEFS, GEM-GDPS, GEM-HRDPS, GFS, GFS-MOS, HRRR, HRRR-EXT, ICON, JMA, LAV-MOS, NAM, NAM-MOS, NAM4KM, NBM, NBS-MOS, NWS, RAP, RRFS, UKMO. NAM, NAM-MOS and NAM4KM were retired by NOAA on November 3, 2026; they stay in accuracy windows that include earlier days. A model appears in responses once it has sufficient verified history in the requested window; recently added models (e.g., HRRR-EXT) may be absent until enough data accumulates.

    Note: Not all models have data for all run times or all stations. The response will only include models and runs that have available data within the requested window.

    Example Requests

    # Default: high temperature, all models, 7-day window, core metrics only
    GET /api/v2/model_accuracy.php?station_code=KORD
    
    # Low temperature accuracy
    GET /api/v2/model_accuracy.php?station_code=KORD&extreme=low
    
    # Specific models and window
    GET /api/v2/model_accuracy.php?station_code=KMIA&window=30d&model=GFS,HRRR,ECMWF-IFS
    
    # Filter by run time
    GET /api/v2/model_accuracy.php?station_code=KDTW&window=14d&model=GFS&run_time=12z,18z
    
    # Filter by lead time (only forecasts issued within 6 hours of the actual extreme)
    GET /api/v2/model_accuracy.php?station_code=KAUS&window=30d&lead_time=0-3h,3-6h
    
    # Low temperature with daily detail
    GET /api/v2/model_accuracy.php?station_code=KAUS&extreme=low&window=7d&include=daily_detail
    
    # Include trend data and daily detail
    GET /api/v2/model_accuracy.php?station_code=KAUS&window=7d&include=trends,daily_detail

    Example Response (Default: No Includes)

    {
        "station": "KDTW",
        "city": "Detroit, MI",
        "extreme_type": "high",
        "computed_at": "2026-03-15T02:15:23.286094",
        "window": "7d",
        "models": ["HRRR", "GFS", "ECMWF-IFS"],
        "days_available": 6,
        "ensemble": {
            "mae": 3.94,
            "bias": 3.94,
            "rmse": 4.77,
            "n": 6
        },
        "per_model": {
            "HRRR": {"mae": 1.79, "bias": 1.61, "rmse": 2.17, "n": 6},
            "GFS": {"mae": 3.32, "bias": 2.88, "rmse": 4.19, "n": 6},
            "ECMWF-IFS": {"mae": 3.83, "bias": 3.17, "rmse": 4.53, "n": 6}
        },
        "per_model_run": {
            "HRRR": {
                "13z": {"mae": 1.77, "bias": 1.17, "rmse": 2.37, "n": 6},
                "16z": {"mae": 1.14, "bias": 0.75, "rmse": 1.32, "n": 4},
                "18z": {"mae": 0.78, "bias": 0.23, "rmse": 0.82, "n": 4}
            },
            "GFS": {
                "06z": {"mae": 3.5, "bias": 3.5, "rmse": 4.41, "n": 6},
                "12z": {"mae": 3.87, "bias": 3.25, "rmse": 5.11, "n": 5},
                "18z": {"mae": 2.85, "bias": 2.85, "rmse": 3.32, "n": 2}
            },
            "ECMWF-IFS": {
                "06z": {"mae": 4.33, "bias": 4.0, "rmse": 5.4, "n": 6},
                "12z": {"mae": 3.71, "bias": 2.57, "rmse": 4.26, "n": 5}
            }
        },
        "per_model_lead": {
            "HRRR": {
                "0-3h":   {"mae": 1.21, "bias": 0.45, "rmse": 1.58, "n": 12},
                "3-6h":   {"mae": 1.46, "bias": 0.83, "rmse": 1.79, "n": 14},
                "6-12h":  {"mae": 1.92, "bias": 1.34, "rmse": 2.31, "n": 22},
                "12-18h": {"mae": 2.41, "bias": 1.97, "rmse": 2.88, "n": 18}
            },
            "GFS": {
                "0-3h":   {"mae": 2.83, "bias": 2.20, "rmse": 3.41, "n": 6},
                "3-6h":   {"mae": 3.05, "bias": 2.55, "rmse": 3.78, "n": 8},
                "6-12h":  {"mae": 3.51, "bias": 3.02, "rmse": 4.22, "n": 14},
                "12-18h": {"mae": 4.17, "bias": 3.81, "rmse": 4.93, "n": 12}
            },
            "ECMWF-IFS": {
                "6-12h":  {"mae": 3.78, "bias": 3.10, "rmse": 4.45, "n": 7},
                "12-18h": {"mae": 4.21, "bias": 3.55, "rmse": 4.89, "n": 9}
            }
        }
    }

    Note: This example shows a model=HRRR,GFS,ECMWF-IFS filtered response. Without the model filter, all 24 tracked models would be returned.

    Response Fields

    Top-Level Fields

    FieldTypeDescription
    stationstringICAO station code
    citystringHuman-readable city name
    extreme_typestringWhich extreme this response describes: high or low
    computed_atstringISO 8601 timestamp of when the accuracy data was last computed
    windowstringTime window requested (7d, 14d, 30d, 90d)
    modelsarrayList of model names included in this response (affected by model filter)
    days_availableintegerNumber of days with valid data in this window

    ensemble

    Aggregate accuracy metrics across all models for the requested window.

    FieldTypeDescription
    maedecimalMean Absolute Error (°F): average distance between forecast and actual, ignoring direction
    biasdecimalMean signed error, computed as actual − forecast. Mathematically equivalent to a correction factor: adding this value to the model's forecast yields the average actual on these days. Positive = forecast was too low, model "ran cold" (under-predicted). Negative = forecast was too high, model "ran warm" (over-predicted). To get the conventional bias measure (positive = warm-running model), negate this value: conventional_bias = -bias.
    rmsedecimalRoot Mean Square Error: like MAE but penalizes large misses more heavily
    nintegerNumber of valid forecast-observation pairs

    per_model

    Object keyed by model name. Each value contains the same mae, bias, rmse, n fields as the ensemble, but scoped to that specific model. For each day in the window, the model's most recent qualifying run before the actual extreme is used, i.e. the freshest forecast available. Sample sizes here equal the number of days in the window.

    per_model_run

    Object keyed by model name, then by run time label (e.g., 00z, 06z, 12z, 18z). Each run time entry contains mae, bias, rmse, n for that specific model + run time combination.

    Run time labels are in UTC (e.g., 12z = 12:00 UTC model initialization). Available run times vary by model: for example, HRRR may have 13z, 16z, 18z while GFS has 06z, 12z, 18z. Unlike per_model, every qualifying run is counted here, so sample sizes are typically larger than the per-model table.

    per_model_lead

    Object keyed by model name, then by lead-time bucket label. Lead time is the gap between when a model run was issued and when the actual extreme occurred. This breakdown shows how forecast accuracy varies with how far in advance the prediction was made.

    Bucket labels (in order): 0-3h, 3-6h, 6-12h, 12-18h, 18-24h. Generally, shorter lead times produce more accurate forecasts. Useful for evaluating how much weight to assign a given model run based on how recently it was issued.

    Each bucket entry contains mae, bias, rmse, n for that specific model + lead-time combination. Like per_model_run, every qualifying run contributes one data point per bucket, so the same run can appear in this breakdown and the run-time breakdown.


    Optional Includes

    By default, the response contains only the core metrics (per_model, per_model_run, per_model_lead, ensemble) for the requested window. Use the include parameter to add heavier data sections. All optional includes respect the model filter: only data for requested models is returned.

    trends

    Rolling 7-day MAE and bias over time, keyed by model name. Each entry is an array of data points:

    {
        "trends": {
            "HRRR": [
                {"date": "2025-12-25", "mae_7d": 0.39, "bias_7d": -0.39, "n": 2},
                {"date": "2025-12-26", "mae_7d": 0.55, "bias_7d": -0.10, "n": 3},
                ...
            ],
            "GFS": [ ... ]
        }
    }

    Typically contains ~80 data points per model. Useful for charting model performance over time.

    Note on bias_7d: uses the same convention as the bias field (actual − forecast, equivalent to a correction factor). Negate it if you want the conventional bias measure.

    daily_detail

    Last 30 days of actual vs. predicted temperatures for each model, including which run time was used. The actual-temperature field name depends on which extreme you queried: actual_high when extreme=high, actual_low when extreme=low.

    {
        "daily_detail": [
            {
                "date": "2026-03-14",
                "actual_high": 41,
                "models": {
                    "HRRR": 41.5,
                    "GFS": 40.5,
                    "ECMWF-IFS": 39.7
                },
                "run_times": {
                    "HRRR": "18z",
                    "GFS": "18z",
                    "ECMWF-IFS": "12z"
                }
            },
            ...
        ]
    }

    Payload Size Reference

    Approximate response sizes for a typical station (19 models):

    RequestSize
    Default (no includes)~4 KB
    2 models filtered, no includes~400 bytes
    All includes, no model filter~120 KB

    Client Examples

    cURL: Default (7-Day, All Models)

    curl -G "https://wethr.net/api/v2/model_accuracy.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KORD"

    cURL: Filtered by Model and Run Time

    curl -G "https://wethr.net/api/v2/model_accuracy.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KDTW" \
      --data-urlencode "window=30d" \
      --data-urlencode "model=GFS,HRRR,ECMWF-IFS" \
      --data-urlencode "run_time=12z,18z"

    cURL: Low Temperature Accuracy

    curl -G "https://wethr.net/api/v2/model_accuracy.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KAUS" \
      --data-urlencode "extreme=low" \
      --data-urlencode "window=30d"

    cURL: Filter by Lead Time

    curl -G "https://wethr.net/api/v2/model_accuracy.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KORD" \
      --data-urlencode "window=30d" \
      --data-urlencode "lead_time=0-3h,3-6h"

    cURL: With Trend Data

    curl -G "https://wethr.net/api/v2/model_accuracy.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KAUS" \
      --data-urlencode "window=90d" \
      --data-urlencode "model=HRRR,NBM" \
      --data-urlencode "include=trends"

    Python: Compare Models Across Windows

    import requests
    
    api_key = 'YOUR_API_KEY'
    headers = {'Authorization': f'Bearer {api_key}'}
    
    for window in ['7d', '14d', '30d', '90d']:
        resp = requests.get(
            'https://wethr.net/api/v2/model_accuracy.php',
            params={
                'station_code': 'KORD',
                'window': window,
                'model': 'GFS,HRRR,ECMWF-IFS'
            },
            headers=headers
        )
        data = resp.json()
        print(f"\n--- {window} ({data['days_available']} days) ---")
        for model, stats in data['per_model'].items():
            print(f"  {model}: MAE={stats['mae']:.1f}° Bias={stats['bias']:+.1f}° (n={stats['n']})")

    JavaScript: Fetch with Daily Detail

    const params = new URLSearchParams({
        station_code: 'KMIA',
        window: '30d',
        model: 'HRRR,NBM,GFS',
        include: 'daily_detail'
    });
    
    fetch(`/api/v2/model_accuracy.php?${params}`, {
        headers: { 'Authorization': `Bearer ${apiKey}` }
    })
    .then(res => res.json())
    .then(data => {
        console.log(`Station: ${data.station} (${data.city}) - ${data.extreme_type}`);
        console.log(`Ensemble MAE: ${data.ensemble.mae}°F`);
    
        // Show each model's performance
        for (const [model, stats] of Object.entries(data.per_model)) {
            console.log(`  ${model}: MAE=${stats.mae}° Bias=${stats.bias > 0 ? '+' : ''}${stats.bias}°`);
        }
    
        // The actual-temperature field name depends on extreme_type
        const actualField = data.extreme_type === 'low' ? 'actual_low' : 'actual_high';
    
        // Show daily predictions vs actual
        data.daily_detail.forEach(day => {
            const preds = Object.entries(day.models)
                .map(([m, p]) => `${m}=${p}°`)
                .join(', ');
            console.log(`  ${day.date}: Actual=${day[actualField]}° | ${preds}`);
        });
    });

    Pacing API REST BETA DEV+

    GET /api/v2/pacing.php
    🔒 Developer & Enterprise Only: This endpoint requires a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a 403 Forbidden response.
    ⚠️ Beta Notice: This API is currently in beta testing. While functional, you may encounter bugs, response shape changes, or unexpected behavior as we iterate. Default parameter values, in particular, may be revised. Please report any issues to help us improve the service.

    Returns pacing data for a station's contract day: how the most recent actual observation is running versus each weather model's forecast at the same moment. This is the same calculation shown on the Wethr.net dashboard, computed server-side and exposed as a single key-authenticated call.

    For each model, pacing is defined as actual − model, evaluated at the time of the most recent observation. The model's forecast temperature is linearly interpolated to that exact moment (between the two bracketing forecast points), so the comparison is like-for-like rather than snapped to the nearest forecast hour. A positive pace means actuals are running warmer than the model; a negative pace means cooler.

    Because a single observation resolves to a range of possible true temperatures, pace is reported as a low/high pair (pace_low, pace_high) plus a midpoint (pace) and a human-readable pace_string. The range derives from the precision of the underlying METAR reading: a whole-degree Celsius observation carries an implied uncertainty of ±0.5°C, while a tenths-precision (T-group) reading is treated as exact. The endpoint converts that uncertainty band into the station's reporting unit and keeps the integer degrees that fall within it. For a US station, a 26°C reading becomes 25.5–26.5°C → 77.9–79.7°F → lowest_possible: 78, highest_possible: 79. When only one integer degree falls inside the band, the range collapses to that single value (lowest_possible == highest_possible). This matches the range calculation used on the Wethr.net dashboard.

    📐 Contract-day window & the mode parameter:

    Pacing is always measured within a single contract day. The mode parameter controls how that day's boundaries are drawn, mirroring the resolution sources on the dashboard. nws (default) follows Standard Time year-round, shifting the window +1h during DST so it continues to align with NWS climate-day boundaries (this shift is surfaced as nws_dst_shift in the response). wunderground follows local clock time year-round. The date, when omitted, resolves to "today" in the station's own timezone.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_code Yes Target station identifier. Must exist in the station catalog with a valid timezone. Examples: KTPA, KMDW, EGLC.
    date No Contract day in YYYY-MM-DD format, interpreted in the station's local time. Defaults to the current day in the station's timezone.
    mode No Contract-day window convention: nws (default, Standard Time year-round with a +1h DST shift) or wunderground (local clock time year-round). See the note above.
    models No Comma-separated list of model names to restrict the response to (max 40). Omitted = all available models. Example: GFS,HRRR,ECMWF-IFS. Include NWS in the list to keep the NWS row when filtering.
    include_nws No If true (default), an NWS pacing row is added, computed from the latest NWS hourly forecast. Set to false to omit it.

    Available models: AROME-HD-15, ARPEGE, ARPEGE-EU, ECMWF-HRES, ECMWF-IFS, GEFS, GEM-GDPS, GEM-HRDPS, GFS, GFS-MOS, HRRR, HRRR-EXT, ICON, JMA, LAV-MOS, NAM, NAM-MOS, NAM4KM, NBM, NBS-MOS, RAP, RRFS, UKMO, plus the synthetic NWS row. NAM, NAM-MOS and NAM4KM were retired by NOAA on November 3, 2026 and appear only for contract days through that date. Only models with a forecast run covering the contract day appear in a given response; the model set returned therefore varies by station and day.

    Reference observation: pacing is anchored to the most recent observation within the contract-day window that is at or before the current time. If no such observation exists yet (e.g., early in the contract day), reference_observation is null, every model's pace fields are null, and a top-level note explains why. Model run times are still listed in that case.

    Units: US stations report in Fahrenheit (unit: "F"); international stations report in their native Celsius (unit: "C"). All temperatures and pace values in a response use the station's native unit.

    NWS row normalization: the NWS row is placed on the same observation-time, full-range basis as every other model so all rows are directly comparable. (The dashboard's NWS display uses a slightly different reference point; this endpoint normalizes it for consistency.)

    Caching: identical requests (same station + parameters) are served from a 60-second server-side cache.

    Example Requests

    # Defaults: today in the station's timezone, NWS mode, all models, NWS row on
    GET /api/v2/pacing.php?station_code=KTPA
    
    # Specific contract day
    GET /api/v2/pacing.php?station_code=KMDW&date=2026-05-29
    
    # Wunderground (local-clock) window convention
    GET /api/v2/pacing.php?station_code=KMDW&mode=wunderground
    
    # Restrict to a few models, drop the NWS row
    GET /api/v2/pacing.php?station_code=KTPA&models=GFS,HRRR,ECMWF-IFS&include_nws=false

    Example Response

    {
        "station": {
            "station_code": "KTPA",
            "station_name": "TAMPA",
            "city": "Tampa",
            "state": "FL",
            "country": "US",
            "elevation_m": 11,
            "site_type": null,
            "timezone": "America/New_York",
            "latitude": 27.9619,
            "longitude": -82.5403
        },
        "contract_day": {
            "date": "2026-05-29",
            "mode": "nws",
            "unit": "F",
            "is_metric": false,
            "window_start_utc": "2026-05-29 05:00:00",
            "window_end_utc": "2026-05-30 05:00:00",
            "nws_dst_shift": true
        },
        "reference_observation": {
            "observation_time_utc": "2026-05-29 20:24:00",
            "observation_time_local": "2026-05-29 16:24:00",
            "local_hour": 16.4,
            "temperature": 87.8,
            "lowest_possible": 87,
            "highest_possible": 88,
            "precision_level": null,
            "unit": "F"
        },
        "filters": {
            "requested_models": null,
            "include_nws": true
        },
        "count": 20,
        "models": {
            "GFS": {
                "run_time_utc": "2026-05-29 12:00:00",
                "model_temp": 89.4,
                "pace_low": -2.4,
                "pace_high": -1.4,
                "pace": -1.9,
                "pace_string": "-2.4 to -1.4"
            },
            "HRRR": {
                "run_time_utc": "2026-05-29 19:00:00",
                "model_temp": 87.5,
                "pace_low": -0.5,
                "pace_high": 0.5,
                "pace": 0,
                "pace_string": "-0.5 to +0.5"
            },
            "ECMWF-IFS": {
                "run_time_utc": "2026-05-29 12:00:00",
                "model_temp": 86.7,
                "pace_low": 0.3,
                "pace_high": 1.3,
                "pace": 0.8,
                "pace_string": "+0.3 to +1.3"
            },
            "NWS": {
                "run_time_utc": null,
                "version": 5,
                "model_temp": 89,
                "pace_low": -2,
                "pace_high": -1,
                "pace": -1.5,
                "pace_string": "-2.0 to -1.0"
            }
        }
    }

    Truncated for brevity: the full models map contains one entry per available model (here, count: 20). Every model row has the identical shape shown for GFS above; only the NWS row differs, carrying a version field and a null run_time_utc.

    Response Fields

    station

    Catalog metadata for the requested station.

    FieldTypeDescription
    station_codestringStation identifier.
    station_namestringFull station name.
    city, state, countrystring|nullLocation descriptors.
    elevation_mdecimal|nullElevation in meters.
    site_typestring|nullSite classification, when available.
    timezonestringIANA timezone used to resolve the contract day.
    latitude, longitudedecimal|nullCoordinates.

    contract_day

    The window the pacing was computed over.

    FieldTypeDescription
    datestringContract day (YYYY-MM-DD), in the station's local time.
    modestringWindow convention applied: nws or wunderground.
    unitstringTemperature unit for this response: F or C.
    is_metricbooleanWhether the station reports in metric (Celsius).
    window_start_utcdatetimeInclusive start of the contract-day window (UTC).
    window_end_utcdatetimeExclusive end of the contract-day window (UTC).
    nws_dst_shiftbooleanWhether the +1h NWS DST shift was applied to the window.

    reference_observation

    The most recent actual observation that pacing is measured against. null when no observation is available in the window yet (see note).

    FieldTypeDescription
    observation_time_utcdatetimeObservation timestamp (UTC).
    observation_time_localdatetimeObservation timestamp in the station's local time.
    local_hourdecimalFractional local hour of the observation (e.g., 16.4 = 16:24). This is the moment each model forecast is interpolated to.
    temperaturedecimalObserved temperature in the station's native unit.
    lowest_possibleintegerLowest possible true temperature implied by the reading's precision. Lower bound of the pace range.
    highest_possibleintegerHighest possible true temperature implied by the reading's precision. Upper bound of the pace range.
    precision_levelinteger|nullPrecision indicator for the reading. 1 denotes an exact-precision value (lowest_possible == highest_possible); null denotes a whole-degree reading resolved to a range.
    unitstringUnit of the observation: F or C.

    models

    A map keyed by model name. Each entry reports the interpolated model temperature and the resulting pace. When a model has no forecast points within the window, its model_temp and all pace fields are null (the run_time_utc is still listed).

    FieldTypeDescription
    run_time_utcdatetime|nullModel run the forecast came from (UTC). Always null for the NWS row.
    versionintegerNWS row only. Version of the NWS hourly forecast used.
    model_tempdecimal|nullModel forecast temperature interpolated to the observation's local_hour, in the station's native unit.
    pace_lowdecimal|nulllowest_possible − model_temp.
    pace_highdecimal|nullhighest_possible − model_temp.
    pacedecimal|nullMidpoint of pace_low and pace_high.
    pace_stringstring|nullHuman-readable pace, signed (e.g., "+0.3 to +1.3", or a single value when low and high coincide).

    filters & count

    FieldTypeDescription
    filters.requested_modelsarray|nullThe normalized model filter applied. null when all models were returned.
    filters.include_nwsbooleanWhether the NWS row was requested.
    countintegerNumber of model rows in models.
    notestringPresent only when no reference observation was available; explains why pace values are null.

    Client Examples

    cURL: Default (All Models, Today)

    curl -G "https://wethr.net/api/v2/pacing.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KTPA"

    cURL: Specific Day, Selected Models

    curl -G "https://wethr.net/api/v2/pacing.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "date=2026-05-29" \
      --data-urlencode "models=GFS,HRRR,ECMWF-IFS" \
      --data-urlencode "include_nws=false"

    Python: Rank Models by How Warm/Cool They Are Running

    import requests
    
    api_key = 'YOUR_API_KEY'
    headers = {'Authorization': f'Bearer {api_key}'}
    
    resp = requests.get(
        'https://wethr.net/api/v2/pacing.php',
        params={'station_code': 'KTPA'},
        headers=headers
    )
    data = resp.json()
    
    ref = data.get('reference_observation')
    if not ref:
        print(data.get('note', 'No pacing available yet.'))
    else:
        unit = data['contract_day']['unit']
        print(f"Reference: {ref['temperature']}°{unit} "
              f"at {ref['observation_time_local']} "
              f"(range {ref['lowest_possible']}–{ref['highest_possible']})")
    
        # Rank by midpoint pace: most positive = actuals warmest vs model
        rows = [(name, m['pace']) for name, m in data['models'].items()
                if m.get('pace') is not None]
        rows.sort(key=lambda r: r[1], reverse=True)
    
        print("\nModels running COOLEST vs actuals (actuals warmer) at top:")
        for name, pace in rows:
            sign = '+' if pace >= 0 else ''
            print(f"  {name:12s} {sign}{pace:.1f}°{unit}")

    JavaScript: Show the Consensus Pace

    const params = new URLSearchParams({ station_code: 'KTPA' });
    
    fetch(`/api/v2/pacing.php?${params}`, {
        headers: { 'Authorization': `Bearer ${apiKey}` }
    })
    .then(res => res.json())
    .then(data => {
        if (!data.reference_observation) {
            console.log(data.note || 'No pacing available yet.');
            return;
        }
        const unit = data.contract_day.unit;
        const paces = Object.values(data.models)
            .map(m => m.pace)
            .filter(p => p !== null);
    
        if (paces.length === 0) {
            console.log('No model paces to summarize.');
            return;
        }
        const avg = paces.reduce((a, b) => a + b, 0) / paces.length;
        const verdict = avg > 0 ? 'WARMER than models'
                      : avg < 0 ? 'COOLER than models'
                      : 'on pace with models';
        console.log(
            `${data.station.station_code}: actuals running ` +
            `${avg.toFixed(1)}°${unit} ${verdict} ` +
            `(consensus of ${paces.length} models)`
        );
    });

    Markets

    Hourly Index API (Kalshi Weather Index) PUSH REST NEW BETA DEV+

    Connection rules shared by every stream (allowances, reconnecting, replay, port-443 addresses) are in Streaming Basics.

    GET https://wethr.net:3445/v1/...
    🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Professional and Testing tier keys receive a 403.
    ⚠️ Read this first: the estimate is ours, and you use it at your own risk.

    The estimate values in this API are Wethr.net’s own calculation. We recompute Kalshi’s published Weather Index methodology from our own, faster observation feed so that you can see, a few minutes early, the value Kalshi will most likely publish. It is not Kalshi data, it is not the settlement value, and it can be wrong. Kalshi publishes each minute about five minutes after it ends; Kalshi’s value is the only one that settles a market, and if the two disagree, Kalshi’s is correct by definition.

    This product is in beta: event shapes, fields and endpoints may change without notice, and the service may be interrupted or withdrawn. The estimate is provided “as is”, without warranty of any kind, and is not financial, trading or investment advice. Any decision you make on the basis of it, including any trade placed on Kalshi or any other venue, is yours alone, and you accept all resulting risk and loss. Do not build anything that cannot tolerate the estimate being wrong, late, stale or absent. Use of this API is subject to the Wethr.net API Terms you accepted when your key was issued.

    Overview & What the Estimate Is

    Kalshi’s hourly temperature markets (the HS series) settle on the Kalshi Weather Index: a per-minute blend of several airport stations around a city, offset-corrected with a weekly calibration record, and published by Kalshi about five minutes after each minute ends. This API gives you three kinds of data for each city:

    • Estimate: Wethr.net’s live recomputation of the forming minute, usually available 2–3 minutes before Kalshi publishes it. Ours, not theirs. Always carried in fields named estimate_f / estimate_c, never value_f.
    • Official: every canonical minute Kalshi publishes, and each hour’s settlement with the minute Kalshi selected and the market results. Always carried in value_f / settle_f.
    • Context: per-station inclusion state (never temperatures), feed status transitions, the weekly calibration (offsets and Bc), and our measured accuracy.

    What this API never provides: the raw station observations behind the estimate, from any source. Stations appear only as inclusion states. Strike probabilities or any other trading-model output are not part of this API.

    All times are UTC (ISO 8601, Z suffix). Temperatures in °F carry two decimals, matching Kalshi’s index precision. The base URL is https://wethr.net:3445: a dedicated service on its own port; HTTPS is required. If your network only allows outbound HTTPS on the standard port (443), use https://wethr.net/windex-api as the base URL instead (for example https://wethr.net/windex-api/v1/now?city=nyc). Paths, parameters, API keys, rate limits, responses and the stream all work the same on both addresses.

    City Directory

    Cities are addressed by the city key below. Kalshi publishes index feeds for more cities than it currently lists markets for; has_market tells you which have a live series today. The live list, with each city’s current feed status, is always available from /v1/cities.

    cityLabelTimezoneKalshi seriesMarketMembers
    chicagoChicagoAmerica/ChicagoKXTEMPCHIHSYes5
    dfwDallas-Fort WorthAmerica/Chicagonone yetNo5
    greater-bostonBostonAmerica/New_Yorknone yetNo5
    houstonHoustonAmerica/Chicagonone yetNo5
    kansas-cityKansas CityAmerica/Chicagonone yetNo5
    la-coastalLos AngelesAmerica/Los_AngelesKXTEMPLAXHSYes5
    miamiMiamiAmerica/New_YorkKXTEMPMIAHYes5
    nycNew YorkAmerica/New_YorkKXTEMPNYCHSYes8
    puget-soundSeattleAmerica/Los_Angelesnone yetNo5
    sf-baySF Bay AreaAmerica/Los_Angelesnone yetNo7

    Timing & Cadence

    • Minute t is the index minute. Kalshi publishes its canonical value for t at roughly t + 5 minutes (official_expected_at on every estimate).
    • Our estimate for t first appears seconds after t ends and is re-emitted whenever it changes as station receipts land. age_s tells you how old the minute is when you receive an estimate; the first estimates of a minute are built from the stations that have already reported and may still change.
    • Settlement for the hour ending at H uses the last canonical minute at or before H, looking back at most 60 minutes. It is determined about five minutes after the hour; we emit settlement when Kalshi’s selection is known.
    • Calibration (offsets, members, Bc) changes weekly, effective Monday 00:00 UTC.

    Authentication & Rate Limits

    Use your existing API key exactly as with the other v2 endpoints: Authorization: Bearer <key>, an X-Api-Key header, or ?api_key=. Requests count against your account's shared rate limit, the same budget as every other Wethr.net API (Developer 300/min and 100,000/day; Enterprise 1,200/min and 500,000/day). A stream connection counts as one request; events within it are free. Responses carry X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day; a 429 carries Retry-After in seconds. Stream allowances and what happens at the limit are described in Streaming Basics.

    Streaming (SSE) & Events

    GET https://wethr.net:3445/v1/stream
    ParameterRequiredDescription
    citiesYesComma-separated city keys (nyc,chicago) or ALL. Unknown keys return 400 with the known list.
    last_event_idNoResume after a disconnect: replays every stored event with an id greater than this value for the requested cities, in id order, then sends replay_complete with the count. Also accepted as the standard Last-Event-ID header. The replay store holds the most recent 720 events per city for 24 hours.
    snapshotNoOn a fresh connection with no replay, the server first sends the current estimate and status for each requested city, tagged "snapshot": true with id "0", so a new client is usable immediately. Pass snapshot=0 to suppress.

    Heartbeat comments (: hb) arrive every 25 seconds. Event ids are strings holding a single increasing integer sequence shared by all cities; store the last id you processed and pass it back on reconnect. Snapshot events have id "0" and must not be stored as a resume point.

    EventWhen it is sentWhose value
    estimateOur value for the forming minute changed: the value itself, its status, the contributor count, or any station’s inclusion state. At most once per poller pass (a few seconds).Wethr.net
    officialKalshi published a canonical minute (about t + 5 min), or changed a minute’s status.Kalshi
    settlementAn hour’s settlement was determined: the selected minute, the settle value, market results, and our estimate for that minute with the difference.Kalshi (+ our diff)
    statusThe city’s feed state changed between normal, degraded, unavailable and stale.Wethr.net
    calibrationKalshi’s weekly calibration record changed.Kalshi
    replay_completeOnce, after a replay finishes: {"replayed": N}.n/a

    Event: estimate

    event: estimate
    data: {
      "id": "1048", "event": "estimate", "city": "nyc",
      "minute_utc": "2026-09-19T17:06:00Z",
      "estimate_f": 68.45, "estimate_c": 20.25,
      "status": "normal",
      "contributors": 8, "members": 8,
      "age_s": 154,
      "official_expected_at": "2026-09-19T17:11:00Z",
      "stations": {
        "KLGA1M": { "state": "included", "input": "primary" },
        "KHPN1M": { "state": "pending" },
        "KTEB1M": { "state": "excluded", "reason": "kalshi_receipt_history" }
      },
      "accuracy_24h": { "n": 1433, "exact_pct": 99.3, "within_0_2f_pct": 99.51, "mae_f": 0.002 },
      "basis": "wethr estimate: our recomputation of the Kalshi Weather Index methodology from faster inputs. Not Kalshi data; can differ from the official value.",
      "timestamp": "2026-09-19T17:08:34Z"
    }
    FieldTypeDescription
    idstringGlobal event id (integer as a string). "0" on connect snapshots.
    citystringCity key (see directory).
    minute_utcstringThe index minute this estimate is for.
    estimate_f / estimate_cnumber | nullOur value for the minute, °F to 2 dp and °C to 3 dp. null when status is unavailable.
    statusstringnormal (every member included from its primary 1-minute input), degraded (a member missing or on METAR fallback), unavailable (quorum not met: fewer than 4 stations or under 80% of roster weight).
    contributors / membersintegerStations included in this estimate / stations on the roster.
    age_sintegerSeconds since minute_utc began at the time of emission.
    official_expected_atstringminute_utc + 5 minutes: when Kalshi is expected to publish this minute.
    stationsobjectPer roster member: state is included (with input = primary 1-minute or fallback hourly METAR), pending (not received yet), missing, excluded (we predict Kalshi will not count it; reason = kalshi_receipt_history) or rejected (failed a quality check; reason given). Never contains temperatures.
    accuracy_24hobjectTrailing 24-hour score of our final estimate for each minute against the value Kalshi published: n minutes compared, exact_pct matched to the penny, within_0_2f_pct within 0.2°F, mae_f mean absolute error.
    basisstringConstant disclaimer text, present on every estimate.
    snapshotbooleanPresent and true only on the connect snapshot.
    timestampstringWhen the event was emitted.

    Event: official

    event: official
    data: { "id": "1052", "event": "official", "city": "nyc", "minute_utc": "2026-09-19T17:03:00Z",
            "value_f": 68.45, "status": "normal", "contributors": 8,
            "config_version": "nyc-temperature-v1.0-cal-20260914", "timestamp": "2026-09-19T17:08:33Z" }

    value_f is Kalshi’s published value for the minute (null when Kalshi published the minute as unavailable). status is Kalshi’s: normal, degraded or unavailable. contributors is the number of stations Kalshi blended. config_version names the calibration record in force.

    Event: settlement

    event: settlement
    data: { "id": "1101", "event": "settlement", "city": "nyc", "hour_utc": "2026-09-19T17:00:00Z",
            "settle_f": 68.00, "status": "normal", "selected_minute_utc": "2026-09-19T17:00:00Z",
            "event_ticker": "KXTEMPNYCHS-26SEP1913", "series_ticker": "KXTEMPNYCHS",
            "estimate_f": 68.00, "estimate_diff_f": 0.00,
            "markets": [ { "ticker": "KXTEMPNYCHS-26SEP1913-T67.99", "subtitle": "68° or above", "floor_strike": 67.99, "cap_strike": null, "result": "yes" } ],
            "timestamp": "2026-09-19T17:05:32Z" }
    FieldTypeDescription
    hour_utcstringThe hour being settled (its end, on the hour).
    settle_fnumber | nullKalshi’s settlement value: the value of the selected minute.
    statusstringStatus of the selected minute (normal / degraded), or unavailable if no canonical minute qualified.
    selected_minute_utcstring | nullThe canonical minute Kalshi selected (last at or before the hour, max 60 min back).
    event_ticker / series_tickerstring | nullKalshi event and series tickers, when the city has a market.
    estimate_f / estimate_diff_fnumber | nullOur final estimate for the selected minute and its difference from settle_f (estimate minus settle). This is your running, per-hour accuracy check.
    marketsarrayMarket results Kalshi recorded for the event: ticker, subtitle, floor_strike, cap_strike, result (yes / no). Empty until results are available.

    Event: status

    event: status
    data: { "id": "1160", "event": "status", "city": "chicago", "status": "stale", "previous": "normal",
            "reason": "no poller update for >150 s", "timestamp": "2026-09-19T18:02:10Z" }
    statusMeaningWhat to do
    normalEvery roster member is included from its primary input.Full confidence, subject to the accuracy figures.
    degradedAt least one member is missing, excluded, or on METAR fallback.Lower confidence; check stations on the estimate.
    unavailableQuorum not met; the estimate is null.No estimate exists; Kalshi will likely publish the minute as unavailable too.
    staleOur pipeline has not refreshed this city for more than 150 seconds.Stop using the last estimate. It is no longer live. Wait for a return to normal / degraded.

    previous is the prior state (null on a connect snapshot) and reason is a short plain-language explanation.

    Event: calibration

    event: calibration
    data: { "id": "2210", "event": "calibration", "city": "nyc",
            "version": "nyc-temperature-v1.0-cal-20260921", "effective_from_utc": "2026-09-21T00:06:00Z",
            "members": ["KCDW1M","KEWR1M","KFRG1M","KHPN1M","KISP1M","KLGA1M","KSMQ1M","KTEB1M"],
            "offsets_c": { "KLGA1M": 1.0, "KEWR1M": 1.25, "KTEB1M": 1.0, "KCDW1M": -0.25, "KHPN1M": -1.25, "KFRG1M": 0.0, "KSMQ1M": -1.25, "KISP1M": -0.25 },
            "b_c": 0.0313, "timestamp": "2026-09-21T00:06:40Z" }

    offsets_c are Kalshi’s per-station calibration offsets in °C and b_c is their roster-weighted mean. The index is the mean over included members of (temp − offset) + Bc: with every member reporting the offsets cancel and the index equals the plain station average; an offset only changes the value when its station is missing.

    REST Endpoints

    All REST endpoints take query parameters, require the same authentication, and return generated_at. City-scoped endpoints return 400 with the known list for an unknown city.

    Cities

    GET https://wethr.net:3445/v1/cities

    Every published city with its current feed status. No parameters.

    {
      "cities": [
        {
          "city": "houston",
          "label": "Houston",
          "timezone": "America/Chicago",
          "series_ticker": null,
          "has_market": false,
          "members": [
            "KCXO1M",
            "KDWH1M",
            "KHOU1M",
            "KIAH1M",
            "KSGR1M"
          ],
          "config_version": "houston-temperature-v1.0-cal-20260914",
          "status": "normal"
        },
        {
          "city": "nyc",
          "label": "New York",
          "timezone": "America/New_York",
          "series_ticker": "KXTEMPNYCHS",
          "has_market": true,
          "members": [
            "KCDW1M",
            "KEWR1M",
            "KFRG1M",
            "KHPN1M",
            "KISP1M",
            "KLGA1M",
            "KSMQ1M",
            "KTEB1M"
          ],
          "config_version": "nyc-temperature-v1.0-cal-20260914",
          "status": "normal"
        }
      ],
      "count": 10,
      "generated_at": "2026-09-19T17:35:16Z"
    }

    status is the live feed state (see the status event). has_market is true when a Kalshi series is listed for the city.

    Now

    GET https://wethr.net:3445/v1/now?city=nyc

    A complete snapshot for one city: the current estimate (identical in shape to the estimate event), the latest official minute, what would settle the coming hour right now, the hour’s index range, and the current calibration.

    {
      "city": {
        "city": "nyc",
        "label": "New York",
        "timezone": "America/New_York",
        "series_ticker": "KXTEMPNYCHS",
        "has_market": true,
        "members": [
          "KCDW1M",
          "KEWR1M",
          "KFRG1M",
          "KHPN1M",
          "KISP1M",
          "KLGA1M",
          "KSMQ1M",
          "KTEB1M"
        ],
        "config_version": "nyc-temperature-v1.0-cal-20260914",
        "status": "normal"
      },
      "feed_status": "normal",
      "estimate": {
        "minute_utc": "2026-09-19T17:32:00Z",
        "estimate_f": 68.68,
        "estimate_c": 20.375,
        "status": "normal",
        "contributors": 8,
        "members": 8,
        "age_s": 196,
        "official_expected_at": "2026-09-19T17:37:00Z",
        "stations": {
          "KCDW1M": {
            "state": "included",
            "input": "primary"
          },
          "KEWR1M": {
            "state": "included",
            "input": "primary"
          },
          "KFRG1M": {
            "state": "included",
            "input": "primary"
          },
          "KHPN1M": {
            "state": "included",
            "input": "primary"
          },
          "KISP1M": {
            "state": "included",
            "input": "primary"
          },
          "KLGA1M": {
            "state": "included",
            "input": "primary"
          },
          "KSMQ1M": {
            "state": "included",
            "input": "primary"
          },
          "KTEB1M": {
            "state": "included",
            "input": "primary"
          }
        },
        "accuracy_24h": {
          "n": 1433,
          "exact_pct": 100,
          "within_0_2f_pct": 100,
          "mae_f": 0
        },
        "basis": "wethr estimate: our recomputation of the Kalshi Weather Index methodology from faster inputs. Not Kalshi data; can differ from the official value."
      },
      "official_latest": {
        "minute_utc": "2026-09-19T17:29:00Z",
        "value_f": 68.68,
        "status": "normal",
        "contributors": 8
      },
      "next_settlement": {
        "hour_utc": "2026-09-19T18:00:00Z",
        "would_settle_as": {
          "value_f": 68.68,
          "minute_utc": "2026-09-19T17:29:00Z",
          "status": "normal"
        },
        "rule": "last canonical minute at or before the top of the hour, max 60 min back"
      },
      "hour_index_high_f": 68.68,
      "hour_index_low_f": 68,
      "calibration": {
        "version": "nyc-temperature-v1.0-cal-20260914",
        "effective_from_utc": "2026-09-14T00:06:00Z",
        "members": [
          "KCDW1M",
          "KEWR1M",
          "KFRG1M",
          "KHPN1M",
          "KISP1M",
          "KLGA1M",
          "KSMQ1M",
          "KTEB1M"
        ],
        "offsets_c": {
          "KLGA1M": 1,
          "KEWR1M": 1.25,
          "KTEB1M": 1,
          "KCDW1M": -0.25,
          "KHPN1M": -1.25,
          "KFRG1M": 0,
          "KSMQ1M": -1.25,
          "KISP1M": -0.25
        },
        "b_c": 0.0313
      },
      "generated_at": "2026-09-19T17:35:16Z",
      "payload_fetched_at": "2026-09-19T17:35:14+00:00"
    }
    FieldDescription
    feed_statusLive feed state for the city (normal / degraded / unavailable / stale).
    estimateOur current estimate; same fields as the event.
    official_latestThe most recent minute Kalshi has published, or null.
    next_settlementhour_utc of the coming settlement and would_settle_as: the canonical minute and value that would settle it if nothing newer publishes, per the selection rule stated in rule.
    hour_index_high_f / hour_index_low_fHighest and lowest official index values so far in the current hour.
    calibrationCurrent calibration record: version, effective_from_utc, members, offsets_c, b_c.
    payload_fetched_atWhen our pipeline last refreshed this city.

    History (official minutes)

    GET https://wethr.net:3445/v1/history?city=nyc&hours=6
    ParameterRequiredDescription
    cityYesCity key.
    hoursNoLook-back window, 1–168 (default 6).

    Official minutes only. kind is always "official". Estimates are deliberately not archived: they are ephemeral by design and only reachable live or through stream replay.

    {
      "city": "nyc",
      "hours": 1,
      "kind": "official",
      "count": 57,
      "minutes": [
        {
          "minute_utc": "2026-09-19T17:30:00Z",
          "value_f": null,
          "status": "incomplete",
          "contributors": null,
          "config_version": "nyc-temperature-v1.0-cal-20260914"
        },
        {
          "minute_utc": "2026-09-19T17:31:00Z",
          "value_f": null,
          "status": "incomplete",
          "contributors": null,
          "config_version": "nyc-temperature-v1.0-cal-20260914"
        },
        {
          "minute_utc": "2026-09-19T17:32:00Z",
          "value_f": null,
          "status": "incomplete",
          "contributors": null,
          "config_version": "nyc-temperature-v1.0-cal-20260914"
        }
      ],
      "generated_at": "2026-09-19T17:35:16Z"
    }

    Each minute carries value_f (Kalshi’s), status (normal, degraded, unavailable, or incomplete for minutes Kalshi has not yet published), contributors and config_version.

    Hours (settlements)

    GET https://wethr.net:3445/v1/hours?city=nyc&days=2
    ParameterRequiredDescription
    cityYesCity key.
    daysNoLook-back window, 1–31 (default 2).
    {
      "city": "nyc",
      "days": 1,
      "series_ticker": "KXTEMPNYCHS",
      "count": 24,
      "hours": [
        {
          "hour_utc": "2026-09-19T17:00:00Z",
          "settle_f": 68,
          "status": "normal",
          "selected_minute_utc": "2026-09-19T17:00:00Z",
          "determined_utc": "2026-09-19T17:05:32Z",
          "event_ticker": "KXTEMPNYCHS-26SEP1913",
          "estimate_f": 68,
          "estimate_diff_f": 0,
          "markets": []
        }
      ],
      "generated_at": "2026-09-19T17:35:16Z"
    }

    Same fields as the settlement event, plus determined_utc, the time Kalshi’s selection became known. estimate_f / estimate_diff_f compare our final estimate for the selected minute with the settle value.

    Accuracy

    GET https://wethr.net:3445/v1/accuracy?city=nyc

    How well our estimate has tracked Kalshi, measured continuously and reported without adjustment.

    {
      "city": "nyc",
      "what_is_measured": "Our final estimate for each minute (as of the t+5 publish deadline) vs the value Kalshi published for that minute. Settlement rows compare our estimate for the selected minute vs the hour settlement.",
      "estimate_vs_official": {
        "last_24h": {
          "n": 1433,
          "exact_pct": 100,
          "within_0_2f_pct": 100,
          "mae_f": 0,
          "max_abs_diff_f": 0
        },
        "last_7d": {
          "n": 9732,
          "exact_pct": 99.41,
          "within_0_2f_pct": 99.73,
          "mae_f": 0.001,
          "max_abs_diff_f": 0.47
        },
        "last_30d": {
          "n": 14196,
          "exact_pct": 98.35,
          "within_0_2f_pct": 99.18,
          "mae_f": 0.003,
          "max_abs_diff_f": 0.68
        }
      },
      "settlements_30d": {
        "n": 239,
        "exact_pct": 97.49,
        "mae_f": 0.007
      },
      "known_failure_modes": [
        "Kalshi-side receipt outages: their blend freezes on stale station values while our feed keeps moving; the first minutes of an outage and the recovery minute are the least predictable.",
        "Single-minute sensor flaps at one member that Kalshi does or does not include.",
        "Inclusion flips: a station Kalshi has been excluding starts being included again (or vice versa) before our trailing classifier catches up.",
        "Quorum edges: minutes with 4-5 contributors can publish or go unavailable on one late receipt."
      ],
      "generated_at": "2026-09-19T17:35:16Z"
    }
    FieldDescription
    estimate_vs_officialFor the trailing 24 h, 7 d and 30 d: n minutes compared, exact_pct matched to the penny, within_0_2f_pct within 0.2°F, mae_f mean absolute error, max_abs_diff_f largest miss. The comparison uses our final estimate for each minute, as of Kalshi’s publish deadline, against the value Kalshi published.
    settlements_30dThe same comparison at hour level: our estimate for each selected minute against the settle value.
    known_failure_modesThe situations in which the estimate is most likely to miss (listed below).

    Calibration

    GET https://wethr.net:3445/v1/calibration?city=nyc

    The current weekly calibration record and recent history, with the formula that turns offsets into the index.

    {
      "city": "nyc",
      "current": {
        "version": "nyc-temperature-v1.0-cal-20260914",
        "effective_from_utc": "2026-09-14T00:06:00Z",
        "members": [
          "KCDW1M",
          "KEWR1M",
          "KFRG1M",
          "KHPN1M",
          "KISP1M",
          "KLGA1M",
          "KSMQ1M",
          "KTEB1M"
        ],
        "offsets_c": {
          "KLGA1M": 1,
          "KEWR1M": 1.25,
          "KTEB1M": 1,
          "KCDW1M": -0.25,
          "KHPN1M": -1.25,
          "KFRG1M": 0,
          "KSMQ1M": -1.25,
          "KISP1M": -0.25
        },
        "b_c": 0.0313
      },
      "history": [
        {
          "version": "nyc-temperature-v1.0-cal-20260914",
          "effective_from_utc": "2026-09-14T00:06:00Z",
          "offsets_c": {
            "KLGA1M": 1,
            "KEWR1M": 1.25,
            "KTEB1M": 1,
            "KCDW1M": -0.25,
            "KHPN1M": -1.25,
            "KFRG1M": 0,
            "KSMQ1M": -1.25,
            "KISP1M": -0.25
          },
          "b_c": 0.0313,
          "seen_at": "2026-09-14T00:09:27Z"
        }
      ],
      "how_offsets_work": "index_c = mean over included members of (temp_c - offset_m) + B_c, where B_c is the roster average of all offsets. With every member reporting the offsets cancel and the index equals the plain station average; an offset only changes the value when its station is missing.",
      "generated_at": "2026-09-19T17:35:16Z"
    }

    Health

    GET https://wethr.net:3445/health

    No authentication. Returns status, uptime_seconds, stream_clients, last_event_id and, per city, the live feed status and payload_age_s.

    Accuracy & Known Limitations

    We score ourselves continuously: for every minute, our final estimate as of Kalshi’s publish deadline is compared with the value Kalshi published. Live figures per city are in /v1/accuracy, on every estimate event, and on every settlement. Across the market cities the estimate has matched Kalshi to the penny on roughly 98–99% of minutes over the last 30 days and on about 97% of hour settlements. Those are measurements of the past, not guarantees about the next minute, and the misses are not random. They cluster in situations you can watch for:

    • Kalshi-side receipt outages. When Kalshi stops receiving a station, their blend freezes on its last value while our feed keeps moving. We emulate their frozen state from their own audit rows, but the first minutes of an outage and the recovery minute are the least predictable.
    • Inclusion flips. A station Kalshi has been excluding (or carrying as a METAR fallback) starts being included again, or vice versa, before our trailing classifier catches up. Watch stations for excluded and pending states.
    • Single-minute sensor flaps at one member that Kalshi does or does not count.
    • Quorum edges. Minutes with four or five contributors can publish or go unavailable on one late receipt.
    • Early estimates of a minute. The first estimates emitted for a minute are built from the stations that have reported so far and can change as the rest arrive. A small age_s with pending stations means a value that may still move.
    • Our own pipeline. A status of stale means we have not refreshed in over 150 seconds and the estimate you hold is no longer live. Treat degraded as lower confidence than normal. Our upstream observation feeds can themselves be delayed or wrong.
    • Methodology changes. If Kalshi changes its index methodology, calibration cadence or publication timing, the estimate may be wrong until we adapt. We track their published calibration records automatically but cannot anticipate rule changes.

    Nothing in this API changes what settles a market. If our estimate and Kalshi’s official value disagree, Kalshi’s value is correct by definition.

    Error Responses

    • 400 Bad Request: missing or unknown city / cities; the response includes known, the list of valid keys
    • 401 Unauthorized: missing or invalid API key
    • 403 Forbidden: key disabled, or tier is not Developer / Enterprise
    • 404 Not Found: unknown path; the response lists the valid endpoints
    • 405 Method Not Allowed: only GET (and OPTIONS) are accepted
    • 429 Too Many Requests: rate limit exceeded; Retry-After header in seconds
    • 500 Internal Error / 503: internal failure, or authentication temporarily unavailable
    {
      "error": "Missing or unknown city. See /v1/cities",
      "known": ["chicago", "dfw", "greater-boston", "houston", "kansas-city", "la-coastal", "miami", "nyc", "puget-sound", "sf-bay"]
    }

    Terms, Risk & Disclaimer

    • The estimate is an estimate. It is Wethr.net’s own calculation and is not produced, endorsed or verified by Kalshi. Only Kalshi’s published values settle Kalshi markets.
    • Provided “as is”. We make no warranty, express or implied, as to the accuracy, timeliness, completeness or availability of any estimate, official value, settlement, accuracy statistic or other data in this API, and we may change, suspend or withdraw the API without notice while it is in beta and thereafter.
    • Not advice. Nothing here is financial, investment or trading advice, or a recommendation to trade any market.
    • Your risk. You alone decide how to use this data. Any trade, position or other decision you make in reliance on it is at your sole risk, and you accept full responsibility for any resulting loss. Wethr.net is not liable for losses arising from the use of, or inability to use, this API or its data, including losses caused by an estimate that was wrong, late, stale, missing or later revised.
    • Redistribution. Data from this API is licensed for your own use under your API key’s tier and the Wethr.net API Terms; it may not be resold or republished as a live feed.
    • Third-party terms. Market tickers and results are reproduced from Kalshi’s public data for reference; your use of Kalshi is governed by Kalshi’s own terms.

    Client Examples

    # Snapshot for one city
    curl -s "https://wethr.net:3445/v1/now?city=nyc" -H "Authorization: Bearer YOUR_API_KEY"
    
    # Live stream for two cities (curl -N disables buffering)
    curl -N "https://wethr.net:3445/v1/stream?cities=nyc,chicago" -H "Authorization: Bearer YOUR_API_KEY"
    
    # Resume after a disconnect
    curl -N "https://wethr.net:3445/v1/stream?cities=nyc,chicago" -H "Authorization: Bearer YOUR_API_KEY" -H "Last-Event-ID: 1048"
    // Live estimate + official minutes for New York and Chicago, with automatic resume
    let lastEventId = null;
    
    function connect() {
        const url = new URL('https://wethr.net:3445/v1/stream');
        url.searchParams.set('cities', 'nyc,chicago');
        url.searchParams.set('api_key', 'YOUR_API_KEY');
        if (lastEventId) url.searchParams.set('last_event_id', lastEventId);
    
        const es = new EventSource(url);
        const track = (d) => { if (d.id !== '0') lastEventId = d.id; };   // snapshots carry id "0"
        es.addEventListener('estimate', (e) => {
            const d = JSON.parse(e.data); track(d);
            console.log(`${d.city} ${d.minute_utc} ESTIMATE ${d.estimate_f}°F (${d.status}, ${d.contributors}/${d.members}) - Kalshi due ${d.official_expected_at}`);
        });
        es.addEventListener('official', (e) => { const d = JSON.parse(e.data); track(d); console.log(`${d.city} ${d.minute_utc} OFFICIAL ${d.value_f}°F`); });
        es.addEventListener('settlement', (e) => { const d = JSON.parse(e.data); track(d); console.log(`${d.city} ${d.hour_utc} SETTLED ${d.settle_f}°F (our estimate ${d.estimate_f}, diff ${d.estimate_diff_f})`); });
        es.addEventListener('status', (e) => { const d = JSON.parse(e.data); track(d); if (d.status === 'stale') console.warn(`${d.city}: feed stale - the last estimate is no longer live`); });
        es.addEventListener('calibration', (e) => { const d = JSON.parse(e.data); track(d); console.log(`${d.city} calibration ${d.version} effective ${d.effective_from_utc}`); });
        es.onerror = () => { es.close(); setTimeout(connect, 3000); };
    }
    connect();

    Stations

    Nearby Stations API REST BETA DEV+

    GET /api/v2/nearby.php
    🔒 Developer & Enterprise Only: This endpoint requires a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a 403 Access Denied response.
    ⚠️ Beta Notice: This API is currently in beta testing. While functional, you may encounter bugs, response shape changes, or unexpected behavior as we iterate. Default parameter values, in particular, may be revised. Please report any issues to help us improve the service.

    Returns weather stations near a target station along with each station's latest observation. Two operating modes:

    • Radius mode (default): given a target station and a radius, returns every station within that radius whose most recent observation is fresher than the max_age_minutes cutoff, sorted by ascending distance.
    • Explicit list mode: given a comma-separated list of station codes in the neighbors parameter, returns the latest observation for each (still filtered by max_age_minutes, still sorted by distance from the target). The radius is ignored in this mode.

    The target station's own observation can optionally be embedded in the response. Bearing from the target to each neighbor is included by default. All catalogued stations are eligible: both ICAO stations and mesonet/CWOP sites.

    ⏱ About the default max_age_minutes=10:

    The default freshness cutoff is deliberately tight. Many METAR stations report only at the top of the hour, and mesonet stations push at variable intervals, so a 10-minute window will often yield count: 0 even at busy locations. This is correct behavior, not a failure. If you want broader coverage, raise the cutoff (e.g., max_age_minutes=30 for typical use; 60 or higher for sparse rural areas). The maximum allowed is 1440 (24 hours), matching the rolling data retention window.

    Endpoint & Parameters

    ParameterRequiredDescription
    station_code Yes Target station identifier. Must exist in the station catalog with valid coordinates. Examples: KORD, EGLC, KMDW.
    radius_km No Search radius in kilometers. Default 10. Maximum 32.2 (≈ 20 mi). Ignored when neighbors is provided.
    radius_mi No Search radius in miles. Alternative to radius_km. Internally converted (1 mi ≈ 1.60934 km). Maximum 20 (equivalent to the 32.2 km cap). Ignored when neighbors is provided.
    neighbors No Comma-separated list of station codes to look up directly (max 25). When present, switches the endpoint into explicit list mode: radius/limit are ignored and only the listed stations are returned. Example: KORD,KDPA,KPWK,KGYY.
    max_age_minutes No Maximum age in minutes for a station's most recent observation to be eligible. Default 10. Range 5–1440. See the note above.
    limit No Maximum number of neighbors to return (sorted nearest-first). Default 25. Range 1–100. Ignored when neighbors is provided.
    include_target No If true, the target station's own most recent observation is embedded under target.observation. Default false.
    include_bearing No If true (default), each neighbor includes bearing_deg (0–359, true north) and bearing_compass (16-point label). Set to false to omit these fields.

    Distance calculation: a bounding-box prefilter narrows candidates by latitude/longitude indexes, then the haversine formula computes exact great-circle distance in kilometers. Both distance_km and distance_mi are always returned. Neighbors are always sorted by ascending distance_km regardless of mode.

    Caching: identical requests (same target + parameters) are served from a 60-second server-side cache.

    Example Requests

    # Defaults: 10 km radius, 10 min freshness, up to 25 neighbors, bearing on
    GET /api/v2/nearby.php?station_code=KMDW
    
    # Wider sweep with longer freshness window
    GET /api/v2/nearby.php?station_code=KMDW&radius_km=50&max_age_minutes=60
    
    # Imperial radius
    GET /api/v2/nearby.php?station_code=KORD&radius_mi=20&max_age_minutes=30
    
    # Top 5 nearest stations only
    GET /api/v2/nearby.php?station_code=KATL&radius_km=100&limit=5&max_age_minutes=60
    
    # Include target's own observation
    GET /api/v2/nearby.php?station_code=KMDW&radius_km=25&include_target=true&max_age_minutes=60
    
    # Explicit list mode - look up specific stations
    GET /api/v2/nearby.php?station_code=KMDW&neighbors=KORD,KDPA,KPWK,KGYY&max_age_minutes=60

    Example Response (Radius Mode)

    {
        "target": {
            "station_code": "KMDW",
            "station_name": "Chicago Midway International Airport",
            "city": "Chicago",
            "state": "IL",
            "country": "US",
            "elevation_m": 188.0,
            "site_type": "airport",
            "timezone": "America/Chicago",
            "latitude": 41.786,
            "longitude": -87.7524
        },
        "filters": {
            "mode": "radius",
            "radius_km": 25,
            "radius_mi": 15.53,
            "max_age_minutes": 60,
            "limit": 25,
            "include_target": false,
            "include_bearing": true,
            "requested_neighbors": null
        },
        "count": 2,
        "neighbors": [
            {
                "station_code": "KORD",
                "station_name": "Chicago O'Hare International Airport",
                "city": "Chicago O'Hare",
                "state": "IL",
                "country": "US",
                "elevation_m": 201.0,
                "site_type": "airport",
                "timezone": "America/Chicago",
                "latitude": 41.9786,
                "longitude": -87.9047,
                "distance_km": 24.4,
                "distance_mi": 15.16,
                "age_seconds": 184,
                "bearing_deg": 323,
                "bearing_compass": "NW",
                "observation": {
                    "observation_time": "2026-05-19 04:12:00",
                    "temperature_c": 19.0,
                    "temperature_f": 66.2,
                    "dew_point_c": 13.0,
                    "dew_point_f": 55.4,
                    "previous_temperature_c": 18.9,
                    "previous_temperature_f": 66.02,
                    "wind_direction": "250",
                    "wind_speed_kt": 11.0,
                    "wind_speed_mph": 12.66,
                    "wind_speed_mps": 5.66,
                    "wind_speed_kmh": 20.37,
                    "wind_gust_kt": null,
                    "wind_gust_mph": null,
                    "wind_gust_mps": null,
                    "wind_gust_kmh": null,
                    "relative_humidity": 68.42
                }
            },
            {
                "station_code": "KPWK",
                "...": "(truncated for brevity)"
            }
        ]
    }

    Response Fields

    Top-Level Structure

    FieldTypeDescription
    targetobjectCatalog metadata for the target station. Includes observation sub-object only when include_target=true.
    filtersobjectEcho of how the request was resolved (defaults filled in). Useful for confirming what the server actually used.
    countintegerNumber of neighbors returned (zero is valid).
    neighborsarrayStations matching the query, sorted by ascending distance_km.

    target

    Catalog metadata for the station you queried. Always present (404 returned if the station does not exist or has no coordinates).

    FieldTypeDescription
    station_codestringEchoed station identifier.
    station_namestring|nullFull station name from catalog.
    citystring|nullCity. May be null for mesonet/CWOP stations.
    statestring|nullState/region.
    countrystring|nullISO country (e.g., US).
    elevation_mdecimal|nullElevation in meters.
    site_typestring|nulle.g. airport, mesonet, cwop.
    timezonestring|nullIANA time zone (e.g., America/Chicago).
    latitudedecimalDecimal degrees.
    longitudedecimalDecimal degrees.
    age_secondsinteger|nullOnly present when include_target=true. Seconds since the target's most recent observation.
    observationobject|nullOnly present when include_target=true. Same shape as a neighbor's observation (see below).

    neighbors[]

    Each entry includes catalog metadata, distance/bearing information, and the latest observation.

    FieldTypeDescription
    station_codestringStation identifier.
    station_namestring|nullFull station name.
    city, state, countrystring|nullCatalog location metadata. Mesonet/CWOP stations may have nulls.
    elevation_mdecimal|nullElevation in meters.
    site_typestring|nullCatalog site type.
    timezonestring|nullIANA time zone.
    latitude, longitudedecimalDecimal degrees.
    distance_kmdecimalGreat-circle distance to the target, kilometers.
    distance_midecimalGreat-circle distance to the target, miles.
    bearing_degintegerCompass bearing from target to neighbor, 0–359 degrees from true north. Only present when include_bearing=true (default).
    bearing_compassstring16-point compass label (N, NNE, NE, …). Only present when include_bearing=true.
    age_secondsintegerSeconds since this neighbor's most recent observation.
    observationobjectThe latest observation. See fields below.

    neighbors[].observation

    All temperatures are returned in both Celsius and Fahrenheit. Wind speed and gust are returned in four units (knots, mph, m/s, km/h). Source values are assumed to be stored in knots per METAR/ICAO convention.

    FieldTypeDescription
    observation_timestringUTC timestamp of the observation, YYYY-MM-DD HH:MM:SS.
    temperature_cdecimal|nullAir temperature in Celsius. null if missing, out of sane range (-60 to 60 °C), or sentinel.
    temperature_fdecimal|nullAir temperature in Fahrenheit.
    dew_point_cdecimal|nullDew point in Celsius. Nulled if greater than temperature (physically impossible) plus tolerance.
    dew_point_fdecimal|nullDew point in Fahrenheit.
    previous_temperature_cdecimal|nullThe prior observed temperature for this station, Celsius. Useful for delta calculations.
    previous_temperature_fdecimal|nullSame in Fahrenheit.
    wind_directionstring|nullWind direction in degrees true, as a string, normally zero-padded to three digits (e.g., "288", "036"; "000" = calm). "VRB" = variable. A few non-airport networks report unpadded degrees (e.g., "50") or "NA". null when no wind direction was reported.
    wind_speed_ktdecimal|nullWind speed in knots.
    wind_speed_mphdecimal|nullWind speed in miles per hour.
    wind_speed_mpsdecimal|nullWind speed in meters per second.
    wind_speed_kmhdecimal|nullWind speed in kilometers per hour.
    wind_gust_ktdecimal|nullPeak gust in knots. Nulled if less than steady wind speed (data error).
    wind_gust_mphdecimal|nullPeak gust in miles per hour.
    wind_gust_mpsdecimal|nullPeak gust in meters per second.
    wind_gust_kmhdecimal|nullPeak gust in kilometers per hour.
    relative_humiditydecimal|nullComputed from temperature and dew point using the August-Roche-Magnus formula. Percent (0–100).

    filters

    A faithful echo of how the request resolved. Fields are null when not applicable (e.g., radius_km is null in explicit-list mode).

    FieldTypeDescription
    modestringEither radius or explicit_list.
    radius_km, radius_midecimal|nullEffective radius (both units). Null in explicit-list mode.
    max_age_minutesintegerFreshness cutoff applied.
    limitinteger|nullResult cap applied. Null in explicit-list mode.
    include_targetbooleanWhether the target's own observation was embedded.
    include_bearingbooleanWhether bearing fields were included on neighbors.
    requested_neighborsarray|nullThe deduplicated, normalized neighbor list. Null in radius mode.

    Client Examples

    cURL: Default Radius Search

    curl -G "https://wethr.net/api/v2/nearby.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW"

    cURL: Wider Radius with Freshness Window

    curl -G "https://wethr.net/api/v2/nearby.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KORD" \
      --data-urlencode "radius_km=50" \
      --data-urlencode "max_age_minutes=60" \
      --data-urlencode "limit=10"

    cURL: Explicit Neighbor List

    curl -G "https://wethr.net/api/v2/nearby.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "neighbors=KORD,KDPA,KPWK,KGYY" \
      --data-urlencode "max_age_minutes=60"

    Python: Detect Temperature Outliers

    import requests
    import statistics
    
    api_key = 'YOUR_API_KEY'
    headers = {'Authorization': f'Bearer {api_key}'}
    
    resp = requests.get(
        'https://wethr.net/api/v2/nearby.php',
        params={
            'station_code': 'KMDW',
            'radius_km': 50,
            'max_age_minutes': 60,
            'include_target': 'true'
        },
        headers=headers
    )
    data = resp.json()
    
    # Collect every available temperature in the cluster
    temps = []
    if data['target'].get('observation', {}).get('temperature_f') is not None:
        temps.append(('KMDW (target)', data['target']['observation']['temperature_f']))
    for n in data['neighbors']:
        t = n.get('observation', {}).get('temperature_f')
        if t is not None:
            temps.append((n['station_code'], t))
    
    if len(temps) >= 3:
        values = [t for _, t in temps]
        median = statistics.median(values)
        stdev  = statistics.stdev(values)
        print(f"Cluster median: {median:.1f}°F  stdev: {stdev:.2f}")
        for code, t in temps:
            flag = " ← outlier" if abs(t - median) > 2 * stdev else ""
            print(f"  {code:8s} {t:5.1f}°F{flag}")

    JavaScript: Find Closest Reporting Neighbor

    const params = new URLSearchParams({
        station_code: 'KMDW',
        radius_km: '50',
        max_age_minutes: '30',
        limit: '1'
    });
    
    fetch(`/api/v2/nearby.php?${params}`, {
        headers: { 'Authorization': `Bearer ${apiKey}` }
    })
    .then(res => res.json())
    .then(data => {
        if (data.count === 0) {
            console.log('No nearby station reported recently enough.');
            return;
        }
        const n = data.neighbors[0];
        console.log(
            `Closest fresh: ${n.station_code} ` +
            `(${n.city || 'unknown'}) - ` +
            `${n.distance_km.toFixed(1)} km ${n.bearing_compass}, ` +
            `${n.age_seconds}s old, ` +
            `${n.observation.temperature_f}°F, ` +
            `wind ${n.observation.wind_direction || '?'} ${n.observation.wind_speed_kt || 0} kt`
        );
    });

  • ⚠️ API Version 1 (Deprecated): This version is deprecated and frozen: it will not receive new fields, data, or features. It remains available and operational so existing integrations keep working and is not being taken down. New development should use API v2, which is actively maintained and offers expanded features, additional data fields, and broader station support. Base URL: https://wethr.net/api/v1/

    Introduction Deprecated

    The Wethr.net API v1 provides access to weather observation data and model forecasts. This version supports 24 US stations with all temperatures in Fahrenheit.

    Base URL: https://wethr.net/api/v1/


    Authentication Deprecated

    Include your API key in the request header:

    Authorization: Bearer <YOUR_API_KEY>

    Or:

    X-API-Key: <YOUR_API_KEY>

    Rate Limiting Deprecated

    TierRequests/MinuteRequests/Day
    Professional605,000
    Developer30050,000
    Enterprise30050,000

    Error Responses Deprecated

    • 400 Bad Request: Invalid parameters
    • 401 Unauthorized: Invalid API key
    • 429 Too Many Requests: Rate limit exceeded
    • 500 Server Error: Internal error

    Observations API Deprecated

    GET /api/v1/observations.php

    Mode: Latest Observation

    Returns the most recent observation.

    GET /api/v1/observations.php?station_code=KMDW&mode=latest

    Example Response

    {
        "station_code": "KMDW",
        "temperature": 26.7,
        "observation_time": "2025-06-15T18:53:00Z",
        "lowest_probable_f": 80,
        "highest_probable_f": 80,
        "dsm_high_f": 83,
        "relative_humidity": 55.2
    }

    Mode: Wethr High

    Returns the calculated trading-day high. Logic is determined automatically by station type.

    GET /api/v1/observations.php?station_code=KMDW&mode=wethr_high

    Example Response

    {
        "station_code": "KMDW",
        "date": "2025-06-15",
        "wethr_high": 83,
        "time_of_high_utc": "2025-06-15 20:53:00",
        "calculation_logic": "standard"
    }

    Mode: History

    Retrieves observations over a time range (max 24 hours).

    GET /api/v1/observations.php?station_code=KMDW&start_time=2025-06-15T00:00:00Z&end_time=2025-06-15T12:00:00Z

    Observation Data Model

    FieldTypeDescription
    station_codestringStation identifier
    observation_timedatetimeUTC timestamp
    temperaturedecimalTemperature (Celsius)
    temperature_fdecimalTemperature (Fahrenheit). 1 decimal place; 2 decimal places on T-group rows from native-tenths stations (currently KBKF, whose sensor reports true tenths of a °C: 23.6 °C = 74.48 °F settles as 74). Such rows carry native_tenths: true.
    lowest_probable_fintegerMin probable temp (°F)
    highest_probable_fintegerMax probable temp (°F)
    dew_pointdecimalDew point (Celsius)
    relative_humiditydecimalRelative humidity (%)
    cli_high / cli_high_fdecimal/intCLI report high
    dsm_high / dsm_high_fdecimal/intDSM report high
    six_hour_highdecimal6-hour high (Celsius)
    wind_speeddecimalWind speed (knots)
    visibilitydecimalVisibility (miles)

    Forecasts API Deprecated

    GET /api/v1/forecasts.php

    Parameters

    ParameterRequiredDescription
    location_nameYesLocation identifier
    start_valid_timeYesStart of range (ISO 8601)
    end_valid_timeYesEnd of range (ISO 8601)
    modelNoModel filter

    Available Models: AIFS (6-hour steps; no precipitation or gusts), ARPEGE, ECMWF-IFS, GEFS, GEM-GDPS, GEM-HRDPS, GFS, GFS-MOS, HRRR, ICON, JMA, LAV-MOS, NAM, NAM-MOS, NAM4KM, NBM, NBS-MOS, RAP, UKMO. NAM, NAM-MOS and NAM4KM were retired by NOAA on November 3, 2026: data for dates through that day only.

    Example Request

    GET /api/v1/forecasts.php?location_name=KMDW&start_valid_time=2025-06-15T18:00:00Z&end_valid_time=2025-06-15T20:00:00Z&model=HRRR

    Forecast Data Model

    FieldTypeDescription
    modelstringModel name
    location_namestringLocation
    run_timedatetimeModel run time
    valid_timedatetimeForecast valid time
    forecast_hourintegerLead time (hours)
    temperature_kdecimalTemp (Kelvin)
    temperature_fdecimalTemp (Fahrenheit)
    temperature_cdecimalTemp (Celsius)

    Client Examples Deprecated

    cURL: Latest Observation

    curl -G "https://wethr.net/api/v1/observations.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "mode=latest"

    cURL: Wethr High

    curl -G "https://wethr.net/api/v1/observations.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "mode=wethr_high"

    cURL: History

    curl -G "https://wethr.net/api/v1/observations.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "station_code=KMDW" \
      --data-urlencode "start_time=2025-06-15T00:00:00Z" \
      --data-urlencode "end_time=2025-06-15T12:00:00Z"

    cURL: Forecasts

    curl -G "https://wethr.net/api/v1/forecasts.php" \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      --data-urlencode "location_name=KMDW" \
      --data-urlencode "start_valid_time=2025-06-15T18:00:00Z" \
      --data-urlencode "end_valid_time=2025-06-15T20:00:00Z" \
      --data-urlencode "model=HRRR"
Top