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 want Use Today's high or low as it forms, under a market's resolution rules Observations API ( mode=wethr_high), or the Observations Push API to be told the moment it changesEvery new observation the moment it arrives Observations Push API DSM and Climate Report (CLI) values Observations API ( observation_type) or the Observations Push API events1-minute observations Historical 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 day 1-Minute Observation Coverage API Observations from stations that are not market stations HF-METAR API (5-minute, about 1,000 US stations) or Nearby Stations (latest reading only) Whether it has rained today at a daily rain market Daily Rain API (REST, or the push stream for each change) Rain so far this month Monthly Precipitation API Model forecasts Forecasts API; NWS forecasts are in the NWS Forecasts API Which model has been most accurate Model Accuracy API How today is running against the models Pacing API Kalshi's hourly temperature index before Kalshi publishes it Hourly Index API API Catalog
API What it gives you Address Observations Observations API RESTObservations 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_lowalerts. 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:3444orwethr.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_statussummary. Current day only. The push stream sends each change as it happens.REST /api/ v2/ daily_rain.php
Pushwethr.net:3446orwethr.net/rain-api Monthly Precipitation API RESTMonth-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 RESTModel 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 RESTNWS 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:3445orwethr.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 thewethr.net/…-apiaddress 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
API Professional Developer Enterprise 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
Tier Requests/Minute Requests/Day Professional 60 5,000 Developer 300 100,000 Enterprise 1,200 500,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 carryX-RateLimit-Remaining-MinuteandX-RateLimit-Remaining-Day; every429carriesRetry-Afterin seconds.Stream allowances
Tier Simultaneous streams per account, per push service Stations per stream Professional 1 (Observations Push API only) 5 Developer 2 Unlimited Enterprise 10 Unlimited 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'sts_lst, or a Climate Report'sas_of). - Two formats appear, both UTC:
2026-10-26 21:37:00(most REST fields, no zone marker) and2026-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=wuandlogic=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 with400and the list of valid stations.
Streaming Basics
Every push service uses Server-Sent Events (SSE): an ordinary HTTPS
GETthat stays open while the server writes events to it. Any SSE client works, including the browser'sEventSource,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 increasingid:.curl -N -H "X-Api-Key: $KEY" "https://wethr.net:3446/v1/stream?stations=KORD,KDTW"Reconnecting and replay
- Store the last
idyou processed and send it back when you reconnect, as theLast-Event-IDheader (whichEventSourcesends automatically) or thelast_event_idparameter. 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-Afteron a429.
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
displacedevent; 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 with429until one of yours closes. A client that receivesdisplacedshould 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
revokedevent (with amessagesaying why) and is closed. If your plan's allowance went down, your oldest extra streams receivedisplaced. Do not reconnect automatically afterrevoked; 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-apiandhttps://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 Push HF-METAR Daily Rain Push Hourly Index Stream address :3443/api/ v2/ stream :3444/v1/ stream :3446/v1/ stream :3445/v1/ stream Port-443 address Not yet /hfmetar-api/ v1/ stream /rain-api/ v1/ stream /windex-api/ v1/ stream Tiers Professional, Developer, Enterprise Developer, Enterprise Developer, Enterprise Developer, Enterprise API key X-API-Keyheader or?api_key=Authorization: Bearer,X-Api-Keyheader or?api_key=Subscribe with stations=(Professional: up to 5)stations=orALLstations=orALLcities=orALLKeep-alive heartbeatevent, 30 scomment line, 30 s heartbeatevent, 25 scomment line, 25 s Replay window Last 50 events per station Last 48 events per station (about 4 h) Last 300 events per station, 24 h Last 720 events per city, 24 h Current state on connect No No Yes (snapshot, real event ids) Yes (snapshot, id "0")Also has REST No (use the REST APIs) /,v1/ latest /,v1/ history /v1/ stations /,v1/ latest /v1/ stations /,v1/ now /,v1/ history /and morev1/ hours
Supported Stations
Station coverage by API
API Stations Observations, Observations Push The 140 market stations listed below Forecasts, Pacing Every market station, plus the other stations we run models for; for a station without model data, Forecasts returns an empty array ( 200) and Pacing returns404NWS Forecasts 98 US stations Model Accuracy 118 stations, US and international Daily Rain 37 daily rain market stations (list) Monthly Precipitation 43 US stations (list) 1-Minute Coverage 94 US stations with a 1-minute feed (list) HF-METAR About 1,000 US ASOS stations (live list from /v1/stations)1-Minute Archive About 960 US stations, back to 2000 (stations) Hourly Index Cities, not stations: the Kalshi index cities in the City Directory Nearby Stations Any station in our catalog within 20 miles, airport and non-airport Market stations
US Stations (Fahrenheit)
Code Location Timezone KABQAlbuquerque America/Denver KAFWFort Worth Alliance America/Chicago KAPCNapa America/Los_Angeles KARRAurora America/Chicago KATLAtlanta America/New_York KAUSAustin America/Chicago KBEDBedford America/New_York KBFISeattle Boeing Field America/Los_Angeles KBKFAurora Buckley SFB America/Denver KBNANashville America/Chicago KBOSBoston Logan America/New_York KCCRConcord America/Los_Angeles KCDWCaldwell America/New_York KCLLCollege Station America/Chicago KCLTCharlotte America/New_York KCMHColumbus America/New_York KCXOConroe America/Chicago KDALDallas Love Field America/Chicago KDCAWashington DC America/New_York KDENDenver America/Denver KDFWDallas America/Chicago KDJTWest Palm Beach America/New_York KDPAWest Chicago America/Chicago KDTODenton America/Chicago KDTWDetroit America/Detroit KDWHTomball America/Chicago KEWRNewark America/New_York KFLLFort Lauderdale America/New_York KFRGFarmingdale America/New_York KFXEFort Lauderdale Executive America/New_York KHHRHawthorne America/Los_Angeles KHOUHouston America/Chicago KHPNWhite Plains America/New_York KHWDHayward America/Los_Angeles KIAHHouston Intercontinental America/Chicago KINDIndianapolis America/Indiana/Indianapolis KISPIslip America/New_York KIXDOlathe New Century America/Chicago KJAXJacksonville America/New_York KLASLas Vegas America/Los_Angeles KLAXLos Angeles America/Los_Angeles KLEXLexington America/New_York KLGANew York LaGuardia America/New_York KLGBLong Beach America/Los_Angeles KLVKLivermore America/Los_Angeles KLXTLee's Summit America/Chicago KMCIKansas City America/Chicago KMDWChicago Midway America/Chicago KMIAMiami America/New_York KMKCKansas City Downtown America/Chicago KMKEMilwaukee America/Chicago KMSPMinneapolis America/Chicago KMSYNew Orleans America/Chicago KNYCNew York Central Park America/New_York KOAKOakland America/Los_Angeles KOJCOlathe Executive America/Chicago KOKCOklahoma City America/Chicago KOLMOlympia America/Los_Angeles KOPFOpa-locka America/New_York KORDChicago O'Hare America/Chicago KORHWorcester America/New_York KOWDNorwood America/New_York KPAEEverett America/Los_Angeles KPHLPhiladelphia America/New_York KPHXPhoenix America/Phoenix KPITPittsburgh America/New_York KPMPPompano Beach America/New_York KPVDProvidence America/New_York KPWKWheeling America/Chicago KRBDDallas Executive America/Chicago KSANSan Diego America/Los_Angeles KSATSan Antonio America/Chicago KSDFLouisville America/Kentucky/Louisville KSEASeattle America/Los_Angeles KSFOSan Francisco America/Los_Angeles KSGFSpringfield America/Chicago KSGRSugar Land America/Chicago KSJCSan Jose America/Los_Angeles KSMOSanta Monica America/Los_Angeles KSMQSomerville America/New_York KSNASanta Ana America/Los_Angeles KSTLSt. Louis America/Chicago KTANTaunton America/New_York KTEBTeterboro America/New_York KTIWTacoma America/Los_Angeles KTPATampa America/New_York KTTNTrenton America/New_York International Stations (Celsius)
Code Location Timezone CYHCVancouver Harbour America/Vancouver CYULMontréal-Trudeau International Airport America/Toronto CYYZToronto Pearson International Airport America/Toronto EBBRBrussels Airport Europe/Brussels EDDBBerlin Brandenburg Airport Europe/Berlin EDDFFrankfurt Airport Europe/Berlin EDDMMunich Airport Europe/Berlin EFHKHelsinki-Vantaa Airport Europe/Helsinki EGLCLondon City Airport Europe/London EGLLLondon Heathrow Airport Europe/London EHAMAmsterdam Schiphol Airport Europe/Amsterdam EPWAWarsaw Chopin Airport Europe/Warsaw FACTCape Town/DF Malan Airport Africa/Johannesburg LEMDMadrid Barajas Airport Europe/Madrid LFPBParis Le Bourget Airport Europe/Paris LFPGParis Charles de Gaulle Airport Europe/Paris LFPOParis Orly Airport Europe/Paris LIMCMilan Malpensa Airport Europe/Rome LLBGBen Gurion Airport Asia/Jerusalem LSGGGeneva Airport Europe/Zurich LTACEsenboğa International Airport Europe/Istanbul LTFMIstanbul Airport Europe/Istanbul MMMXMexico City International Airport America/Mexico_City MPMGMarcos Gelabert Airport America/Panama NZWNWellington International Airport Pacific/Auckland OEJNJeddah/King Abdulaziz Airport Asia/Riyadh OMDBDubai Intl Airport Asia/Dubai OPKCKarachi International Airport Asia/Karachi RCSSTaipei Songshan Airport Asia/Taipei RJTTTokyo Haneda Airport Asia/Tokyo RKPKGimhae International Airport Asia/Seoul RKSIIncheon International Airport Asia/Seoul RPLLNinoy Aquino International Airport Asia/Manila SAEZMinistro Pistarini International Airport (Ezeiza) America/Argentina/Buenos_Aires SBGRSão Paulo–Guarulhos International Airport America/Sao_Paulo UUWWMoscow Vnukovo Airport Europe/Moscow VABBChhatrapati Shivaji Maharaj Intl Airport Asia/Kolkata VHHHHong Kong Intl Airport Asia/Hong_Kong VHKOHong Kong Observatory Asia/Hong_Kong VILKChaudhary Charan Singh International Airport Asia/Kolkata WMKKKuala Lumpur International Airport Asia/Kuala_Lumpur WSSSSingapore Changi Airport Asia/Singapore YSSYSydney Kingsford Smith Airport Australia/Sydney ZBAABeijing Capital Airport Asia/Shanghai ZGGGGuangzhou/Baiyun Airport Asia/Shanghai ZGSZShenzhen Bao'an Airport Asia/Shanghai ZHCCZhengzhou Asia/Shanghai ZHHHWuhan Tianhe Airport Asia/Shanghai ZSJNJinan Asia/Shanghai ZSPDShanghai Pudong Airport Asia/Shanghai ZSQDQingdao/Tsingtao Airport Asia/Shanghai ZUCKChongqing Jiangbei Airport Asia/Shanghai ZUUUChengdu Shuangliu Airport Asia/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-10orB-fsti2), which radius searches return, were rejected with a 400 when sent back asstation_codeor inneighbors. Every code the endpoint returns is now accepted in both. Thewind_directionfield 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=awcresponses and the pushawcblock now list those reports inconflicts, and the new opt-inawc_revisionpush 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 ofrun=latestand of any day after that. See Forecasts API.
October 2026
- Forecasts:
model=AROME-HD-15fixed: Filtering the Forecasts API byAROME-HD-15returned "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 onNBM-PoProws: the chance (%) of at least 0.01 in of precipitation in the 6 hours ending atvalid_time. Before this change those rows carried the chance as a fraction inprecipitation_in(0.23 meant 23%, not 0.23 in), along with temperature and other values repeated fromNBS-MOS. Those fields are nownullonNBM-PoProws, andmode=dailyno 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=ALLfor 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=awcapplies 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 anawcblock, andnew_high/new_lowevents fire withlogic: "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_mtdis still the total through yesterday andofficial_mtd + today_precipis 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_finalevent (and again if the National Weather Service later corrects it, withis_corset), everydsmevent now carriesis_finalandis_cor, and the REST observation modes (history, andlatestwithobservation_type=dsm_high|dsm_low) return its high and low as rows flaggeddsm_is_finalon 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, andrun=latestno longer requires amodel: 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_statussummary) 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_finalevent 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. Everycliandcli_finalevent now carries anis_finalflag, andfor_datealways names the day the values belong to. Existingclilisteners are unaffected: same-day preliminary reports keep arriving ascli, andcli_finalis 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 °Csentinel). Windows follow the resolution source (nwsstandard-time day,wu/awclocal calendar day) using the same rules aswethr_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/historymodes) 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 carryinserted_at(UTC), and NWS forecast versions carrypublished_at/published_ts, the capture time of each version. Useful for latency analysis, staleness decay, and freshness-weighted blending. - True HRRR Precipitation Accumulations:
HRRRprecipitation is now the model's true 1-hourAPCPaccumulation, populated on top-of-the-hour rows (like cloud cover) andnullon 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.HRRRandHRRR-EXTnow report identical precipitation semantics at overlapping hours. - Expanded Model Variables: The
HRRR,HRRR-EXT, andRRFSseries 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_loware now computed from chain-confirmed observations only, so they track as closely as possible what those resolution sources are likely to display, while newpotential_high/potential_lowfields additionally include not-yet-confirmed observations, with adivergenceobject flagging when the two differ. Individual observations carry aconfirmationstatus inlatest/historymodes, and Pushobservationevents carry the potential values inside eachwublock. See Preliminary Observations & Potential High/Low. - Source Attribution for Wethr High/Low: Both the REST
wethr_highmode 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), Pushobservationevents (nested per logic), and Pushnew_high/new_lowalerts. 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 asHRRR. Because it reaches +48 hours, it is the highest-resolution model in the catalog with reliable next-day coverage; combine withmode=dailyfor per-day highs/lows. Note its latest run may be up to ~6 hours older than the latest hourlyHRRRrun. - Data Quality Warnings: The
wethr_highmode and the Pushobservationevent now include adata_qualityobject that flags missing temperature readings (the-999sentinel) in the trading-day window. It is keyed per resolution mode and escalates tocriticalwhen 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. Atz_modeparameter selects the day-boundary convention (civilfor WU/Polymarket resolution,standardfor NWS/Kalshi). Only fully-covered days are returned; pin a historical run viarunfor backtesting. - Latest Run Mode for Forecasts: The Forecasts API now accepts a
runparameter (latestor ISO 8601 timestamp). Userun=latest&model=HRRRto retrieve every forecast hour of the most recent run without needing to specify a time window, ideal for real-time model lookups. Responses include anX-Run-Timeheader 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_highmode now also returnswethr_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
logicparameter required forwethr_highmode (nwsorwu) - Observation Type Filter: Filter
latestmode bydsm_high,dsm_low,cli_high,cli_low - Units Indicator: All responses include a
unitsfield - 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.
ObservationsObservations API REST
GET/api/v2/observations.phpNote 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 theomolabel 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
Parameter Required Description station_codeYes Station identifier modeYes Set to latestobservation_typeNo Filter: dsm_high,dsm_low,cli_high,cli_low. Fordsm_high/dsm_lowthe 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 flaggeddsm_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_highExample 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
Parameter Required Description station_codeYes Station identifier modeYes Set to wethr_highlogicYes 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 ResolutionExample Request
GET /api/v2/observations.php?station_code=KMDW&mode=wethr_high&logic=nwsExample 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=wcomreturns 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 awcomblock (date,high_c/high_f,low_c/low_f, extreme times,obs_count).AviationWeather.gov Resolution (logic=awc) NEW
logic=awcreturns 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'sresolution_urllinks 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_lowcount 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 inpending_reportsand move onlypotential_high/potential_low(withpotential_high_time_utc/potential_low_time_utc), which equalwethr_high/wethr_lowwhen 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_rangegive the[lowest, highest]value each extreme could still settle at:potential_highis the top ofpotential_high_rangeandpotential_lowis the bottom ofpotential_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: ..." }conflictslists 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 towardwethr_high/wethr_low. Each entry hasobservation_time_utc,reason,awc_value,other_sources_valueandother_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).reasoniscorwhen aviationweather.gov shows a correction,revisedwhen it replaced its own earlier version of the report, which matched the other sources, anddifferswhen 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
awcblock:date,high_f/high_c,low_f/low_cand their_time_utcfields,potential_high_f/potential_high_c,potential_low_f/potential_low_cand their times,potential_high_range_f/potential_high_range_candpotential_low_range_f/potential_low_range_c(the[lowest, highest]pairs described above),units,obs_count,pending_reports,conflicts(each entry withobservation_time_utc,reason,awc_value_f/awc_value_candother_sources_value_f/other_sources_value_c) andresolution_url.new_high/new_lowevents fire withlogic: "awc"when the published value rises or falls, andawc_revisionevents fire when aviationweather.gov changes a report it already showed.Anomaly Flag
The
wethr_highresponse includes ananomalyboolean. It istruewhen 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_highresponse 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 finalwethr_high/wethr_low. Multiple sources routinely confirm the same extreme; all of them are listed. Wheneverwethr_high(orwethr_low) is non-null, its sources array contains at least one entry.Four fields carry the attribution:
Field Type Description wethr_high_sourcesarray of strings Sources confirming the current high, ordered by when each first confirmed it (earliest first). Empty array when wethr_highisnull.wethr_low_sourcesarray of strings Sources confirming the current low, same ordering. wethr_high_source_detailobject Per-source detail, keyed by source label in the same order as the array. Each entry holds first_confirmed_utcandcount. Empty object{}when there are no sources.wethr_low_source_detailobject Same, for the low. Source Labels
Label Source Applies To metarStandard METAR or SPECI report High & Low hf_metarHigh-frequency (~5 minute) METAR High & Low omoOne Minute Observations High & Low (NWS logic only) six_hour_highMETAR 6-hour maximum temperature group High only (NWS logic) six_hour_lowMETAR 6-hour minimum temperature group Low only (NWS logic) dsmDaily Summary Message official high/low High & Low (NWS logic) cliClimatological Report official high/low High & 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 nevermetar8, 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 asmetar8(and re-attributes asmetaronce 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. Forsix_hour_high/six_hour_lowit is the time of the report carrying the 6-hour group (which may be hours after the extreme occurred). Fordsm/cliit 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. Foromothis is the number of one-minute observations at the extreme (e.g.,"count": 12means twelve 1-minute readings confirmed it; a direct measure of how long the station sat at the extreme). Formetar/hf_metarit is the number of individual reports confirming. Forsix_hour_high/six_hour_lowa value above 1 means the extreme was equaled in more than one 6-hour window. Fordsm/clia value above 1 means a corrected reissue repeated the same figure.
Counts compare within a source type, not across types. An
omocount of 12 and adsmcount 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'slowest_probablevalue must equal the Wethr High; for the low, itshighest_probablemust 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 meansomoandhf_metarconfirm 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 bydsmorcliwith no observation source is worth attention, particularly in combination with theanomalyflag.Data Quality
The
wethr_highresponse includes adata_qualityobject 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 reportedwethr_high/wethr_lowunderstated. This object tells you when coverage was incomplete.For
logic=nwson 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-999sentinel). Thebasisfield says which applies.It is keyed by the
logicyou requested (nwsorwu), since each mode scans its own time window. When the day's observations are complete,okistrueandwarningsis 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_missingwarning 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 because26°Crounds to79°F, while25.6°Crounds to78°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_lowsubstantially 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)
Field Type Description potential_high/potential_lowinteger|null High/low including not-yet-confirmed observations. Always at least as extreme as the confirmed value: potential_high ≥ wethr_highandpotential_low ≤ wethr_low. Can be non-nullwhile the confirmed value is stillnull(e.g., early in a day when only unconfirmed observations exist).potential_high_time_utc/potential_low_time_utcdatetime|null UTC observation time of the reading that set the potential extreme (not its ingest time). Ties update to the latest occurrence, matching time_of_high_utcsemantics.divergenceobject {"high": bool, "low": bool}:truewhen 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=nwsresponses carry the same fields withpotential_*mirroring the confirmed values anddivergencealwaysfalse/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
latestandhistoryresponses includes aconfirmationfield:"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), ornull(not applicable, e.g. high-frequency or product-only rows). A row's status upgrades frompreliminarytoconfirmedin 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
modeis omitted.Parameters
Parameter Required Description station_codeYes Station identifier start_timeYes Start of range (ISO 8601 UTC) end_timeYes End 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
Field Type Description idinteger Unique record identifier station_codestring Station identifier observation_timedatetime UTC timestamp temperaturedecimal Temperature in Celsius (raw) temperature_displaydecimal Temperature in station's native units lowest_probableinteger Min probable temp (native units) highest_probableinteger Max probable temp (native units) unitsstring fahrenheitorcelsiusprecision_levelinteger Data precision (1 = exact) confirmationstring|null confirmed,preliminary, ornull: whether a standard distribution source has delivered this observation. See Preliminary Observations.dew_pointdecimal Dew point (Celsius) relative_humiditydecimal Relative humidity (%) wind_directionstring Wind direction wind_speeddecimal Wind speed (knots) wind_gustdecimal Wind gust (knots) visibilitydecimal Visibility (statute miles) altimeterdecimal Altimeter setting in hectopascals (hPa). Divide by 33.8639 to convert to inches of mercury (inHg). sea_level_pressuredecimal Sea level pressure in hectopascals (hPa). Reported in METAR remarks when available; may be nullfor observations without an SLP group.six_hour_highdecimal 6-hour high (Celsius) six_hour_lowdecimal 6-hour low (Celsius) cli_high/cli_lowdecimal CLI report values (US only) dsm_high/dsm_lowdecimal DSM report values (US only) metar_received_atdatetime|null UTC timestamp when Wethr first ingested this observation from a routine METAR/SPECI source. nullwhen the row arrived via another pipeline only.hfmetar_received_atdatetime|null UTC timestamp when Wethr first ingested this observation from the accelerated high-frequency feed. Often minutes ahead of the standard distribution chain. dsm_received_atdatetime|null UTC 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|null UTC timestamp when a CLI report's values were attached to this row (US only). May be hours after the observation itself. cli_time_missingNEW1 | absent Present, 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 asMMin the CLI). Such a row has no observation of its own: itsobservation_timeis 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_finalNEW0 | 1 | absent On a cli_time_missingrow:1when the value comes from the final Climate Report for that day,0when it comes from a same-day preliminary report.dsm_is_finalNEW1 | absent Present, 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_timeis the time of occurrence the report states for that high or low,dsm_valid_throughis the end of the covered day, anddsm_received_atis 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_corNEW0 | 1 | absent On a dsm_is_finalrow:1when 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_dateNEWstring | absent On a dsm_is_finalrow: 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.*_displayinteger Values in station's native units *_finteger Values in Fahrenheit (backward compat) Ingestion timestamps: the four
*_received_atfields 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 thelatestandhistorymodes (not bywethr_high, whose per-sourcefirst_confirmed_utcvalues 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_KEYTier Max Stations Simultaneous Streams per User Professional 5 1 Developer Unlimited 2 Enterprise Unlimited 10 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
Parameter Required Description stationsYes Comma-separated station codes (e.g., KAUS,KMDW,KLAX)api_keyYes Your API key last_event_idNo Resume from a specific event ID (for reconnection) Connection Lifecycle
- Client connects with station list and API key
- Server validates credentials and station limits
- Server sends
connectedevent with subscribed stations - Server streams events as they occur
- Server sends periodic
heartbeatevents (every 30s) - On disconnect, client can reconnect with
last_event_idto replay missed events
Event Types
Event Description Frequency connectedConnection established Once on connect heartbeatKeep-alive signal Every 30 seconds observationNew weather observation (METAR/HF-METAR/SPECI) Every 1-5 minutes per station dsmDaily Summary Message released Varies by station cliPreliminary Climate Report for the current local day Varies by station, typically afternoon and evening cli_finalNEWFinal 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_finalNEWEnd-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_revisionNEWaviationweather.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 detected As conditions change new_lowNew temperature low detected As conditions change Which day a report covers:dsmandclievents carry reports for the station's current local day, issued while that day is still in progress.cli_finalcarries the final Climate Report for a day that has already ended, normally the previous local day, published in the early morning hours;dsm_finalcarries 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, withis_corset. In every case thefor_datefield names the day the values belong to. Attribute values byfor_date, never by the event's publishtimestamp.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, thewethr_highandwethr_lowvalues included innew_highandnew_lowevents already incorporate OMO data: if a one minute observation results in a new high or low, these events fire in real time. Thewethr_highandwethr_lowfields withinobservationevents 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 theomolabel 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
Field Type Always Present Description station_codestring Yes ICAO station identifier (e.g., KAUS)eventstring Yes Always "observation"for this event typetimezonestring Yes IANA timezone identifier for the station (e.g., America/Chicago)local_datestring Yes Current local date at the station in YYYY-MM-DDformatproductstring Yes Source product: ASOS-HR(hourly METAR, including international hourly feeds),ASOS-HFM(5-minute HF-METAR), orASOS-SPECI(special observation)observation_time_utcstring Yes UTC timestamp of the observation as reported by the station (ISO 8601) temperature_celsiusnumber | null Yes Observed temperature in Celsius (2 decimal places when source is precise, otherwise rounded). nullif rejected: seesuspect_temperature.temperature_fahrenheitnumber | null Yes Observed temperature in Fahrenheit (1 decimal place; 2 decimal places for native-tenths stations, see native_tenths).nullif rejected.native_tenthsboolean Yes truewhen 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 carrytemperature_fahrenheitto 2 decimals so the value is never mistaken for a half-degree.temperature_precisionstring Yes Source 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 whetherlowest_probable/highest_probableare a single value or a range.dew_point_celsiusnumber | null Yes Dew point in Celsius. nullif dew point depression exceeds 12°C (treated as suspect).dew_point_fahrenheitnumber | null Yes Dew point in Fahrenheit lowest_probable_finteger | null Yes Lower bound of the rounding-uncertainty range for the current observation's temperature in °F. When temperature_precisionis"integer", this is the lowest value that could have rounded to the reported temperature. When precision is"decimal", this equalshighest_probable_f. Not the day's low: seewethr_lowfor that.highest_probable_finteger | null Yes Upper bound of the rounding-uncertainty range for the current observation in °F. See lowest_probable_f.lowest_probable_cinteger | null Yes Lower bound of the rounding-uncertainty range in °C highest_probable_cinteger | null Yes Upper bound of the rounding-uncertainty range in °C wind_directioninteger | null Yes Wind direction in degrees (0–360). nullwhen calm or variable.wind_speed_mphinteger | null Yes Sustained wind speed in miles per hour (converted from knots) wind_speed_kmhinteger | null Yes Sustained wind speed in kilometers per hour wind_gust_mphinteger | null Yes Wind gust speed in mph. nullwhen no gust was reported or when the gust value failed validation (e.g., gust less than sustained speed).wind_gust_kmhinteger | null Yes Wind gust speed in km/h visibility_milesnumber | null Yes Visibility in statute miles. Values reported as "10+" in METAR are normalized to 10.0.altimeter_hpanumber | null Yes Altimeter setting in hectopascals (mb-equivalent) sea_level_pressure_mbnumber | null Yes Sea level pressure in millibars (only present in hourly METARs that include the SLP group) precipitation_inchesnumber | null Yes Precipitation amount reported in this observation, in inches. Typically the hourly precipitation group from a METAR. wethr_highobject Yes Day's high temperature computed two ways. See Wethr High/Low below. wethr_lowobject Yes Day's low temperature computed two ways. See Wethr High/Low below. high_valid_through_utcstring | null Yes UTC timestamp through which the wethr_highis considered locked in.nullmeans the high is still based on preliminary observations and may change. See Valid Through below.low_valid_through_utcstring | null Yes UTC timestamp through which the wethr_lowis considered locked inanomalyboolean Yes Set to truewhen 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 | null Yes nullin the normal case. When this observation's temperature failed plausibility checks, this object holds the rejected value and reason, andtemperature_celsius/temperature_fahrenheitarenull. See Data Quality Flags.data_qualityobject Yes Per-resolution-mode report of missing temperature readings ( -999) in the day's window, keyednwsandwu. Each holdsokand awarningsarray. See Data Quality Flags.cloud_layersobject Yes Cloud cover layers reported in the observation. See Cloud Layers below for structure. six_hour_high_celsiusnumber Conditional 6-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_finteger Conditional 6-hour maximum in Fahrenheit (rounded). Present when six_hour_high_celsiusis.six_hour_low_celsiusnumber Conditional 6-hour minimum temperature in Celsius. Same presence rules as six_hour_high_celsius.six_hour_low_finteger Conditional 6-hour minimum in Fahrenheit twentyfour_hour_high_celsiusnumber Conditional 24-hour maximum temperature in Celsius. Present only on the 00z and 12z synoptic observations that report the 24-hour group. twentyfour_hour_high_finteger Conditional 24-hour maximum in Fahrenheit twentyfour_hour_low_celsiusnumber Conditional 24-hour minimum temperature in Celsius twentyfour_hour_low_finteger Conditional 24-hour minimum in Fahrenheit idstring Yes Unique monotonic event ID. Use this with last_event_idto replay missed events after reconnection.timestampstring Yes UTC 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_highandwethr_lowcontain two parallel calculations of the day's temperature extreme. You should choose the one that matches your settlement methodology.Logic Inputs Time Window nwsAll observations (METAR, SPECI, HF-METAR, OMO) plus official DSM/CLI reports once released Standard Time window (no DST adjustment), matching NWS climate reporting wuMETAR observations only Local 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, ornullif no extreme has been recorded yet today), plussourcesandsource_detail: which data sources have confirmed this extreme and how many times. See Source Attribution below.The
wublocks additionally carrypotential_value_f,potential_value_c,potential_time_utc, anddivergence: the not-yet-confirmed (accelerated-feed-inclusive) view of the WU high/low. Thenwsblocks intentionally omit these fields. See Preliminary & Potential Values below for the full reference.Valid Through (HVT / LVT)
high_valid_through_utcandlow_valid_through_utcindicate the time through which the high/low values are considered "locked in" based on official reports (DSM/CLI) and confirmed 6-hour extremes. Anullvalue means the extreme is still based on preliminary observations and may change. Once the official daily summary is released, these fields become non-nulland the wethr_high/wethr_low values for the trading day are final.Cloud Layers Object
The
cloud_layersobject summarizes the cloud cover groups reported in the METAR. It always has the following shape:Field Type Description countinteger | null Number of cloud layers reported (0–3). nullif the source did not report a cloud layer count.layersarray Ordered array of layer objects, lowest base first. May be empty (clear skies or no data). Each layer object contains:
Field Type Description height_ft_aglinteger | null Cloud base height in feet above ground level coveragestring | null Coverage 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 beVV(vertical visibility) in obscured conditions.A layer is included whenever either
height_ft_aglorcoverageis non-null, so consumers should not assume both fields are always populated on every layer.Data Quality Flags:
anomaly,suspect_temperature, anddata_qualityhelp 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_dateis the current local day andis_finalisfalse. The end-of-day DSM covering the whole completed day is delivered separately asdsm_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
Field Type Description station_codestring ICAO station identifier eventstring "dsm"for an intermediate (in-day) summary,"dsm_final"for the end-of-day summarytimezonestring IANA timezone identifier for the station for_datestring The climatological date this summary covers, in YYYY-MM-DDformat (local date)valid_through_utcstring UTC timestamp through which these values are considered final/locked in. For dsm_finalthis is the end of the covered climate day (local standard midnight).is_finalNEWboolean falsefor an intermediate summary,truefor the end-of-day summary (dsm_final).is_corNEWboolean truewhen 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 anotherdsm_finalwith the samefor_date.high_finteger | null Daily high temperature in Fahrenheit as reported in the DSM high_cnumber | null Daily high temperature in Celsius (2 decimal places) high_time_utcstring | null UTC timestamp at which the high occurred, when included in the DSM low_finteger | null Daily low temperature in Fahrenheit low_cnumber | null Daily low temperature in Celsius low_time_utcstring | null UTC timestamp at which the low occurred, when included in the DSM anomalyboolean truewhen the DSM high or low sits ≥5°F beyond the observations within ±20 min of its reported time. See Data Quality Flags.idstring Unique monotonic event ID timestampstring UTC 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 asdsm, withis_finalset totrueandvalid_through_utcat the end of the covered day. If the National Weather Service later corrects it (which can happen days later) anotherdsm_finalis sent with the samefor_dateandis_cor: true. Because this event arrives on a different calendar day than the one it describes, always readfor_dateto know which day the values belong to.dsm_finalis a separate event name, so existing listeners fordsmare 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
EventSourceAPI, 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_finalevent.{ "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
Field Type Description station_codestring ICAO station identifier eventstring "cli"for a preliminary report,"cli_final"for a final reporttimezonestring IANA timezone identifier for the station for_datestring The climatological date this report covers ( YYYY-MM-DDlocal). This is the day the values belong to, regardless of when the event is published.valid_through_utcstring UTC 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_finalNEWboolean falsefor a preliminary report (carries a "VALID AS OF" line),truefor the final report of a completed dayhigh_finteger | null Daily high temperature in Fahrenheit as reported in the CLI high_cnumber | null Daily high temperature in Celsius (1 decimal place, converted from the whole-degree Fahrenheit value the report prints) high_time_utcstring | null UTC timestamp at which the high occurred, when included in the CLI. nullwhen the report printedMMfor the time (the value is still reported and still belongs tofor_date)low_finteger | null Daily low temperature in Fahrenheit low_cnumber | null Daily low temperature in Celsius (1 decimal place) low_time_utcstring | null UTC timestamp at which the low occurred, when included in the CLI anomalyboolean truewhen the CLI high or low sits ≥5°F beyond the observations within ±20 min of its reported timeidstring Unique monotonic event ID timestampstring UTC 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, withis_finalset totrue. If the National Weather Service later issues a corrected final for that day, anothercli_finalis sent with the samefor_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 newestcli_finalfor a givenstation_codeandfor_dateas authoritative, and expect an occasional duplicate with identical values. Because this event arrives on a different calendar day than the one it describes, always readfor_dateto know which day the values belong to.cli_finalis a separate SSE event name, so it reaches only clients that listen for it; existingclilisteners 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
EventSourceAPI, 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: whenhigh_fis belowprev_high_f(orlow_faboveprev_low_f) the revision walked an extreme back. A revision that sets a new extreme also produces the usualnew_high/new_low. Likecli_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
Field Type Description observation_time_utcstring Time of the report that changed reasonstring cor(aviationweather.gov shows a correction),revised(it replaced its own earlier version), ordiffers(its version has differed from the other sources since it first appeared)conflictboolean truewhen aviationweather.gov's value now differs from the other sources' value for the report;falsewhen a change brought them back in linevalue_f/value_cinteger The report's value on aviationweather.gov now (the value that counts) prev_value_f/prev_value_cinteger | null Its previous value on aviationweather.gov; nullwhen the report just appeared thereother_sources_value_f/other_sources_value_cinteger | null The value the other sources show for the same report; nullwhen Wethr.net holds no other copydatestring The station's local market day high_f/high_c,low_f/low_cinteger The day's AviationWeather.gov high and low after the change, with high_time_utc/low_time_utcprev_high_f/prev_high_c,prev_low_f/prev_low_cinteger | null The 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
observationevents: 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
logicfield indicates which calculation triggered the alert (nws,wu,wcom, orawc). You may receive separate alerts for each logic if both detect a new extreme; for example, a single observation may produce onenew_highwithlogic: "nws"and a secondnew_highwithlogic: "wu".Field Reference: new_high / new_low
Field Type Description station_codestring ICAO station identifier eventstring Either "new_high"or"new_low"logicstring Which calculation methodology triggered this alert: "nws","wu","wcom"(international Kalshi stations), or"awc"(Polymarket.com stations). See Wethr High/Low.value_finteger The new extreme temperature in Fahrenheit value_cinteger The new extreme temperature in Celsius prev_value_finteger | null The prior extreme this replaced, in Fahrenheit. nullif this is the first extreme recorded today.prev_value_cinteger | null The prior extreme this replaced, in Celsius observation_time_utcstring UTC 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_utcandcount, keyed by source label. See Source Attribution.idstring Unique monotonic event ID timestampstring UTC 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_cuntil 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.wuandwethr_low.wu)Field Type Description potential_value_f/potential_value_cinteger | null The WU high/low including not-yet-confirmed observations. Always at least as extreme as the confirmed value_f/value_c; can be non-nullwhile the confirmed value is stillnull.potential_time_utcstring | null UTC observation time of the reading that set the potential extreme (not its ingest time). Ties update to the latest occurrence, matching time_utcsemantics.divergenceboolean truewhen the potential value differs from the confirmed value on this side. Unlike the REST response's singledivergenceobject, Push carries one boolean per block:wethr_high.wu.divergenceandwethr_low.wu.divergence.Streaming behavior
- Divergence opens in real time. When an accelerated-feed observation sets a new potential extreme, the very next
observationevent showsdivergence: truewith 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
observationevent simply shows the confirmedvalue_frisen (orvalue_c/low fallen) to meet the potential value, withdivergenceback tofalse. Clients tracking divergence should treat it as state derived from each event, not as an edge-triggered alert. nwsblocks never carry these fields. Accelerated-feed observations fully count toward NWS-logic values, so there is no preliminary concept there.new_high/new_lowalerts 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_highmode, computed by the same shared logic. The source labels, confirmation rules, ordering, andcountsemantics are documented in full under the Observations API: see Source Attribution. This section covers what is specific to Push delivery.Where the fields appear
observationevents:sourcesandsource_detailare 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 admitsmetar.- Potential High/Low fields: the
wublocks'potential_*anddivergencefields are documented under Preliminary & Potential Values above. new_high/new_lowevents:sourcesandsource_detailappear at the top level, since the event is already scoped to one extreme and one logic.dsm/dsm_final/cli/cli_finalevents: 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 asdsmorcliappearing in the nextobservationevent's sources.
Frozen vs. live attribution
A
new_high/new_lowevent'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. Theobservationevent'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 latestobservationevent; to ask "what triggered the alert," read thenew_high.One minor note for clients comparing feeds:
omocounts 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.
Field Event(s) Type Description anomalyobservation,dsm,dsm_final,cli,cli_finalboolean truewhen 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_temperatureobservationobject | null METAR temperature failed plausibility checks. When present, temperature_celsius/temperature_fahrenheitarenull. The rejected values and reason are preserved in this object. The implausible reading is excluded from all calculations: it will not affectwethr_high,wethr_low, or triggernew_high/new_lowalerts.data_qualityobservationobject Per-mode ( nws/wu) report of missing temperature readings (the-999sentinel) across the day's window. Each mode hasokand awarningsarray. Unlikesuspect_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
anomalyboolean compares each official DSM/CLI daily extreme against the observations recorded near the time that extreme is reported to have occurred. It is settruewhen:- 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_highmode. The 5°F threshold is applied as a temperature difference, so it is consistent across stations regardless of display units.suspect_temperature Object
Field Type Description raw_celsiusnumber The rejected temperature in Celsius raw_fahrenheitnumber The rejected temperature in Fahrenheit reasonstring Machine-readable reason code (currently: out_of_range)messagestring Human-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_temperaturefor transparency. Thewethr_highandwethr_lowvalues are unaffected, and nonew_lowalert was triggered.data_quality (Missing Temperature)
The
observationevent includes adata_qualityobject that reports gaps in the day's temperature observations. Unlikesuspect_temperature(a single rejected reading), this looks across the whole trading-day window and warns when temperature coverage was incomplete, which can leave the reportedwethr_high/wethr_lowunderstated.Gaps are counted on one of two bases, given by the
basisfield:minutes: thenwswindow 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-999sentinel, 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 (thewuwindow, and stations without a 1-minute feed). Counts readings the station logged as missing (the-999sentinel).
It is keyed per resolution mode (
nwsandwu) because each mode scans its own window. Each mode holds an envelope:Field Type Description okboolean truewhen no problems were found (thewarningsarray is empty)warningsarray Zero 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:
Field Type Description codestring Stable identifier: "temperature_data_missing"severitystring "warning"or"critical"(see escalation rules below)messagestring Human-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 alwaysreadings.missing_countinteger minutes: minutes in the window with no usable temperature from either feed.readings: missing (-999) temperature readings.longest_runinteger Length of the longest stretch of consecutive missing minutes (or readings) longest_run_minutesinteger Duration of that longest stretch, in minutes first_missing_utcstring UTC time of the first missing minute or reading ( YYYY-MM-DD HH:MM:SS)last_missing_utcstring UTC time of the last missing minute or reading activeboolean truewhen 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_runinteger Length of the current trailing stretch ( 0when not active)near_extremeboolean truewhen a gap falls near the reported high or low (i.e.near_highornear_low)near_highboolean truewhen a gap falls within ~60 minutes of the reported high's timenear_lowboolean truewhen a gap falls within ~60 minutes of the reported low's timemissing_runsarray minutesbasis only. Every missing stretch, oldest first:start_utcandend_utc(first and last missing minute, inclusive) andminutes.missing_runs_truncatedboolean minutesbasis only.trueif more than 500 stretches occurred and the list was cut (counts stay exact).as_of_utcstring minutesbasis only. When the gap record was computed (refreshed every minute).Severity. Any missing minute or reading produces at least a
warning. It escalates tocriticalwhen 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
basisisminutes) 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 iscritical; the WU window was complete. In the REST Observations API the same object appears, keyed by the singlelogicrequested 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_idparameter. Track theidfield 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.
GEThttps://wethr.net:3444/v1/...🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Professional and Testing tier keys will receive a403 Access Deniedresponse.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), usehttps://wethr.net/hfmetar-apias the base URL instead (for examplehttps://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>, anX-Api-Keyheader, 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-MinuteandX-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)
GEThttps://wethr.net:3444/v1/streamParameter Required Description stationsYes Comma-separated station codes ( KAUS,KDFW) orALLfor the full national feed.last_event_idNo Resume after a disconnect: replays missed events with an id greater than this value (also accepted via the standard Last-Event-IDheader, whichEventSourcesends automatically). Roughly 4 hours of events are retained per station. Areplay_completeevent marks the end of the replayed backlog.Each observation arrives as an
observationevent whose payload carriesid,station_code,observation_time,ingested_at, and adataobject (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
GEThttps://wethr.net:3444/v1/latestParameter Required Description stationsYes Comma-separated codes (max 500 per request) or ALL.max_age_minutesNo Only return observations no older than this many minutes. include_null_tempNo Set to 1to 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
GEThttps://wethr.net:3444/v1/historyParameter Required Description stationYes Exactly one station code, e.g. KAUS.hoursOne of Trailing window in hours (max 168). Use this or start/end.start,endOne of Explicit UTC range ( 2026-09-04or2026-09-04 16:00:00), max 31 days per request.limitNo Rows per page, default 1000, max 5000. Ascending by observation time. afterNo Cursor for paging: pass the next_aftervalue from the previous response.include_null_tempNo Set to 1to include archived observations without a valid temperature.The response includes
count,history_begins, the page ofobservations, andnext_after(nullon the final page).Station Directory
GEThttps://wethr.net:3444/v1/stationsLists 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
Field Units / Values Notes station_coden/a ICAO-style identifier. observation_timeUTC datetime Sensor observation time (5-minute marks). temperature,dew_point°C nullwhen not reported or failing quality bounds.wind_directiondegrees String: degrees true, VRB(variable),000(calm), ornull.wind_speed,wind_gustknots wind_gustisnullwhen no gust was reported.visibilitystatute miles 10means 10 or more (unlimited).altimeterhPa Converted from the reported inHg value. precipitationinches Accumulation since the previous 5-minute observation. 0is a measured zero;nullmeans not reported.cloud_layer_count,cloud_1..3_height,cloud_1..3_coverageft AGL / codes Up to three layers; coverage codes FEW/SCT/BKN/OVC/VV.received_atUTC datetime When 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=1where 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 a403 Access Deniedresponse.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, orawcand the window is computed with exactly the same rules asmode=wethr_highon 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
400together 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=nwsandlogic=wu; Polymarket.com stations also acceptlogic=awc. International stations have no one-minute feed, sologic=wcomis never valid here.Code Location Timezone Windows KABQAlbuquerque America/Denver nws, wu KACKNantucket America/New_York nws, wu KACYAtlantic City America/New_York nws, wu KAFWFort Worth Alliance America/Chicago nws, wu KAPCNapa America/Los_Angeles nws, wu KARRAurora America/Chicago nws, wu KATLAtlanta America/New_York nws, wu, awc KAUSAustin America/Chicago nws, wu, awc KBEDBedford America/New_York nws, wu KBFISeattle Boeing Field America/Los_Angeles nws, wu KBLMBelmar America/New_York nws, wu KBNANashville America/Chicago nws, wu KBOSBoston Logan America/New_York nws, wu KCCRConcord America/Los_Angeles nws, wu KCDWCaldwell America/New_York nws, wu KCLLCollege Station America/Chicago nws, wu KCLTCharlotte America/New_York nws, wu KCMHColumbus America/New_York nws, wu KCXOConroe America/Chicago nws, wu KDALDallas Love Field America/Chicago nws, wu, awc KDCAWashington DC America/New_York nws, wu KDENDenver America/Denver nws, wu, awc KDFWDallas America/Chicago nws, wu KDJTWest Palm Beach America/New_York nws, wu KDPAWest Chicago America/Chicago nws, wu KDTODenton America/Chicago nws, wu KDTWDetroit America/Detroit nws, wu KDWHTomball America/Chicago nws, wu KEWRNewark America/New_York nws, wu KFLLFort Lauderdale America/New_York nws, wu KFRGFarmingdale America/New_York nws, wu KFXEFort Lauderdale Executive America/New_York nws, wu KGEDGeorgetown America/New_York nws, wu KGONNew London America/New_York nws, wu KHHRHawthorne America/Los_Angeles nws, wu KHOUHouston America/Chicago nws, wu, awc KHPNWhite Plains America/New_York nws, wu KHVNNew Haven America/New_York nws, wu KHWDHayward America/Los_Angeles nws, wu KIAHHouston Intercontinental America/Chicago nws, wu KINDIndianapolis America/Indiana/Indianapolis nws, wu KISPIslip America/New_York nws, wu KIXDOlathe New Century America/Chicago nws, wu KJAXJacksonville America/New_York nws, wu KLASLas Vegas America/Los_Angeles nws, wu KLAXLos Angeles America/Los_Angeles nws, wu, awc KLEXLexington America/New_York nws, wu KLGANew York LaGuardia America/New_York nws, wu, awc KLGBLong Beach America/Los_Angeles nws, wu KLVKLivermore America/Los_Angeles nws, wu KLXTLee's Summit America/Chicago nws, wu KMCIKansas City America/Chicago nws, wu KMDWChicago Midway America/Chicago nws, wu KMIAMiami America/New_York nws, wu, awc KMJXToms River America/New_York nws, wu KMKCKansas City Downtown America/Chicago nws, wu KMKEMilwaukee America/Chicago nws, wu KMSPMinneapolis America/Chicago nws, wu KMSYNew Orleans America/Chicago nws, wu KMVYMartha's Vineyard America/New_York nws, wu KOAKOakland America/Los_Angeles nws, wu KOJCOlathe Executive America/Chicago nws, wu KOKCOklahoma City America/Chicago nws, wu KOLMOlympia America/Los_Angeles nws, wu KOPFOpa-locka America/New_York nws, wu KORDChicago O'Hare America/Chicago nws, wu, awc KORHWorcester America/New_York nws, wu KOWDNorwood America/New_York nws, wu KPAEEverett America/Los_Angeles nws, wu KPHLPhiladelphia America/New_York nws, wu KPHXPhoenix America/Phoenix nws, wu KPITPittsburgh America/New_York nws, wu KPMPPompano Beach America/New_York nws, wu KPVDProvidence America/New_York nws, wu KPWKWheeling America/Chicago nws, wu KRBDDallas Executive America/Chicago nws, wu KSANSan Diego America/Los_Angeles nws, wu KSATSan Antonio America/Chicago nws, wu KSDFLouisville America/Kentucky/Louisville nws, wu KSEASeattle America/Los_Angeles nws, wu, awc KSFOSan Francisco America/Los_Angeles nws, wu, awc KSGFSpringfield America/Chicago nws, wu KSGRSugar Land America/Chicago nws, wu KSJCSan Jose America/Los_Angeles nws, wu KSMOSanta Monica America/Los_Angeles nws, wu KSMQSomerville America/New_York nws, wu KSNASanta Ana America/Los_Angeles nws, wu KSTLSt. Louis America/Chicago nws, wu KTANTaunton America/New_York nws, wu KTEBTeterboro America/New_York nws, wu KTIWTacoma America/Los_Angeles nws, wu KTPATampa America/New_York nws, wu KTTNTrenton America/New_York nws, wu KWWDWildwood America/New_York nws, wu Parameters
Choose one window style: a resolution day (
logic+ optionaldate) or an explicit UTC range (start_time+end_time). Passing both returns400.Parameter Required Description station_codeYes A station on the one-minute roster (e.g. KMIA). Omit it to receive the roster in thesupported_stationsfield of the error response.logicYes (day mode) Resolution source whose day window to evaluate: nws,wu, orawc(Polymarket.com stations only; others return400).dateNo YYYY-MM-DD, the station-local day under the chosen logic. Defaults to the current day under that logic (fornwsthis 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_minutesNo true(default) returns the per-minute lists (missing_minutes,no_temperature_minutes,rejected,pending_minutes).falsereturns the summary andmissing_runsonly: a compact poll for dashboards.fleetNo Pass 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=1Fleet Feed Status
fleet=1returns 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.Field Type Description generated_atdatetime When the snapshot was built (UTC, ISO 8601). staleistrueif it is more than three minutes old.lag_allowance_secinteger Median 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_minutedatetime The latest minute that should have arrived by now (now minus the allowance). thresholdsobject live_secanddown_sec: a station islivewhen its latest minute is withinlive_sec,delayedup todown_sec, anddownbeyond it.networkobject state(live|issues|outage), counts (total,live,delayed,down) and, during anoutage(half or more of the roster down at once),cause(upstream|ingest),sinceandminutes_missing.stations[]array One 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[]array Open 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=nwson a given date covers exactly the minutes thatmode=wethr_high&logic=nwsevaluates for that date.logicWindow Notes nwsMidnight to midnight local standard time The 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 day Wunderground / Polymarket resolution. Follows the local clock year-round (23 or 25 hours on transition days). awcLocal calendar day AviationWeather.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_utcso 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:
State Meaning Where it appears okAn observation exists and its temperature (and any dew point / wind) passes the range checks. summary.okonly. 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_runspendingNo 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_minutesno_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_minutesrejectedAn observation was received with a temperature, but one or more values fail the physical-range checks below. The raw values are returned. summary.rejected,rejectedRange checks (
rules_versionv1) mirror the quality screen applied to the HF-METAR feed and the hourly-index range guard:Reason code Rule rawfields returnedtemperature_out_of_rangeTemperature outside −60 to 60 °C. This is how the station's -61missing-data sentinel surfaces.temperaturedew_point_out_of_rangeDew point outside −60 to 60 °C. dew_pointdew_point_exceeds_temperatureDew point more than 1.0 °C above the temperature (physically impossible). temperature,dew_pointwind_speed_out_of_range,wind_gust_out_of_rangeNegative, or above 200 knots. wind_speed/wind_gustMissing 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
missingshortly after it occurred may therefore turnokon a later request. Once a window's end is more than two hours in the past the response is marked"final": trueand will no longer change. Rejected and no-temperature minutes reflect what the station transmitted and are not corrected after the fact.Response Fields
Field Type Description station_codestring Station evaluated. cadencestring Always 1minin this release.timezonestring Station's IANA timezone used to build the day window. windowobject logicanddate(null in range mode),start_utc,end_utc(exclusive), and a human-readabledescription.generated_at_utcdatetime When this ledger was computed. Responses are cached for 60 seconds (one hour once final); theX-Cacheheader reportsHITorMISS.evaluated_through_utcdatetime Exclusive upper bound of the minutes that were evaluated: the window end, or the current minute for a window still in progress. window_completeboolean trueonce the window end has passed.finalboolean trueonce the window end is more than two hours old and the reconciliation pass can no longer change it.pending_grace_minutesinteger Age below which a minute with no observation is pendinginstead ofmissing.rules_versionstring Version of the range-check rule set that produced the rejectedentries.summaryobject Counts: expected,received,ok,missing,no_temperature,rejected,pending, pluscoverage_pct=okas a percentage of the evaluated (non-pending) minutes.expected = received + missing + pendingandreceived = ok + no_temperature + rejected.latestobject last_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), andminutes_since_last_ok: a direct "is this station live right now" signal.missing_runsarray Missing minutes collapsed into consecutive runs: {start_utc, end_utc, count}with an inclusiveend_utc. Always present, even withinclude_minutes=false.missing_minutesarray Every 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_sourceis how the minute reached us:stream(the real-time feed),poll(recovered by polling when the stream missed it) orbackfill(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.rawholds the offending values in native units (°C, knots).pending_minutesarray Minutes 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: missingstation_codeor a station without a one-minute feed (body includessupported_stations); missing or invalidlogic;awcon a station that is not a Polymarket.com station;wcom; baddate; 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 receive403.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) andclimate_date, the day the NWS climate report and daily temperature markets use. A daily high is oneGROUP 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_okand 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 hasnullfor the other file's fields.Column Type Description ts_utctimestamp The observation minute, UTC. ts_lsttimestamp The same minute in the station's local standard time (no daylight saving, all year). climate_datedate The 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_finteger One-minute average temperature and dew point, whole °F. precip_innumber Precipitation in that minute, inches (0.01 resolution). Raw and unedited: see Precipitation Totals. ptypestring Precipitation identifier as received: NPnone,Rrain,Ssnow,PorUPunknown, with-/+for light/heavy, plus sensor codes such as?0–?3andM. Not validated.lightninginteger 0 = none within 10 miles, 1 = 5 to 10 miles (VCTS), 2 = within 5 miles (TS). nullwhere the station has no sensor.station_pressure_inhgnumber Station pressure (not sea level), inches of mercury. frz_hzinteger Freezing-rain sensor frequency in Hz (about 40,000 when clear; it falls as ice builds up). wind_dir_2min,wind_speed_2min_ktinteger Two-minute average wind direction (degrees true) and speed (knots). gust_dir_5s,gust_speed_5s_ktinteger Peak five-second wind in the minute: direction and speed (knots). extinction_coefnumber Visibility sensor extinction coefficient (higher = lower visibility). temp_ok…visibility_okboolean Quality booleans, see Quality Columns. gap_filledboolean truewhen 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_visstring Raw flag letters: which fields the station itself bracketed as suspect, plus our parse notes. See Quality Columns. qc_temp_precip,qc_wind_visinteger Our QC bitmask for each half (0 = passed every check). Quality Columns
Raw values are never changed. Each
*_okcolumn istrueonly 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.Column false 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_verifiedfalsewhen 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:ttemperature,ddew point,rprecipitation,yprecip type,llightning,ppressure,zfreezing-rain sensor. Inflags_wind_vis:a/stwo-minute direction/speed,b/ggust direction/speed,evisibility. Either may also containx(impossible value removed),?(unreadable field),1(only one of temperature/dew point present, both left empty) orf(gap-filled minute, seegap_filled). Some stations flag their lightning field on every line;lalone 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.Parameter Required Description station_codeYes ICAO code, e.g. KORD. See Stations.yearYes YYYY, orallfor a zip of every year (Parquet only).formatNo parquet(default) orcsv(gzip-compressed.csv.gz; the first request for a file can take a few seconds while it is built).datasetNo merged(default, the one-minute rows) ormetar_hourly(hourly and special METARs for that UTC year:ts,report_typeFM-15 hourly / FM-16 special,metarraw text,precip_hinhourly precipitation in hundredths of an inch, 0 when none reported and null when the gauge was out,temp_c10tenths °C).Responses carry
ETag(the file's SHA-256) andContent-Length; sendIf-None-Matchto get a cheap304when 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_hourlySync Listing
?fileslists every downloadable year file (?files&station_code=KORDfor one station):station_code,year,bytes,sha256,rows,first_utc,last_utc,updated. Keep the listing from your last sync and download only files whosesha256changed.Range Queries
For a quick look without downloading a year: one station, up to 31 days per request, as JSON or CSV.
Parameter Required Description station_codeYes ICAO code. start_date,end_dateOne pair Climate dates, YYYY-MM-DD, both inclusive.end_datedefaults tostart_date.start_time,end_timeOne pair ISO 8601 (UTC unless an offset is given), start inclusive, end exclusive. formatNo json(default:columns+rowsarrays) orcsv.fieldsNo Comma-separated column subset, e.g. temp_f,temp_ok.ts_utcis 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:00ZLimits: 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
503withRetry-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
?stationsreturns every station (?stations&station_code=KORDfor 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) anddownloads(years available, last minute, total bytes). Retired stations stay in the archive.Error Responses
400invalid parameters (thedetailsfield says which),401missing or invalid key,403tier without access,404unknown station or station-year.429rate limit, range budget, or a range query of yours still running;503query workers busy. Both carryretry_after(seconds) and aRetry-Afterheader.
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.
PrecipitationDaily 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, themarket_statusvocabulary, 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, andwindow_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
Parameter Required Description station_codeOne of A single station identifier from the supported list below. Example: KORD.station_codesOne 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 a400that lists the valid stations.Codes are case-insensitive. Either parameter may be used; if both are present,
station_codeswins. 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.
Code Location Timezone Standard offset Day rolls at Market KABQAlbuquerque America/Denver UTC-7 07:00Z Kalshi KATLAtlanta America/New_York UTC-5 05:00Z Kalshi, Polymarket.com KAUSAustin America/Chicago UTC-6 06:00Z Kalshi KBOSBoston Logan America/New_York UTC-5 05:00Z Kalshi, Polymarket.com KCLLCollege Station America/Chicago UTC-6 06:00Z Kalshi KCMHColumbus America/New_York UTC-5 05:00Z Kalshi KDCAWashington DC America/New_York UTC-5 05:00Z Kalshi, Polymarket.com KDENDenver America/Denver UTC-7 07:00Z Kalshi KDFWDallas America/Chicago UTC-6 06:00Z Kalshi, Polymarket.com KDJTWest Palm Beach America/New_York UTC-5 05:00Z Kalshi KDTWDetroit America/Detroit UTC-5 05:00Z Kalshi KEWRNewark America/New_York UTC-5 05:00Z Kalshi KHOUHouston America/Chicago UTC-6 06:00Z Kalshi KIAHHouston Intercontinental America/Chicago UTC-6 06:00Z Polymarket.com KINDIndianapolis America/Indiana/Indianapolis UTC-5 05:00Z Kalshi KLASLas Vegas America/Los_Angeles UTC-8 08:00Z Kalshi KLAXLos Angeles America/Los_Angeles UTC-8 08:00Z Kalshi, Polymarket.com, Polymarket US KLEXLexington America/New_York UTC-5 05:00Z Kalshi KMDWChicago Midway America/Chicago UTC-6 06:00Z Polymarket.com, Polymarket US KMIAMiami America/New_York UTC-5 05:00Z Kalshi, Polymarket.com, Polymarket US KMKEMilwaukee America/Chicago UTC-6 06:00Z Kalshi KMSPMinneapolis America/Chicago UTC-6 06:00Z Kalshi KMSYNew Orleans America/Chicago UTC-6 06:00Z Kalshi, Polymarket.com KNYCNew York Central Park America/New_York UTC-5 05:00Z Kalshi, Polymarket.com, Polymarket US KOKCOklahoma City America/Chicago UTC-6 06:00Z Kalshi KORDChicago O'Hare America/Chicago UTC-6 06:00Z Kalshi KPHLPhiladelphia America/New_York UTC-5 05:00Z Kalshi, Polymarket.com, Polymarket US KPHXPhoenix America/Phoenix UTC-7 07:00Z Polymarket.com KPITPittsburgh America/New_York UTC-5 05:00Z Kalshi KPVDProvidence America/New_York UTC-5 05:00Z Kalshi KSATSan Antonio America/Chicago UTC-6 06:00Z Kalshi KSEASeattle America/Los_Angeles UTC-8 08:00Z Kalshi, Polymarket.com KSFOSan Francisco America/Los_Angeles UTC-8 08:00Z Kalshi, Polymarket.com, Polymarket US KSGFSpringfield America/Chicago UTC-6 06:00Z Kalshi KSTLSt. Louis America/Chicago UTC-6 06:00Z Kalshi KTPATampa America/New_York UTC-5 05:00Z Kalshi KTTNTrenton America/New_York UTC-5 05:00Z Kalshi Example Requests
GET /api/v2/daily_rain.php?station_code=KORD GET /api/v2/daily_rain.php?station_codes=KORD,KDTWExample 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
Field Type Description stationsobject One entry per requested station, keyed by station code, in the order requested. countinteger Number of station entries returned. unitsstring Always inches. Every amount in the response is in inches.trace_thresholddecimal The sentinel below which an amount is a trace ( 0.005). Observed amounts at or below it never count towardobserved_totalorqualifying.timestampdatetime Time the response was assembled (UTC, ISO 8601). Per-station entry
Field Type Description namestring Human-readable station name. timezonestring IANA timezone identifier of the station. market_datestring The market day being reported ( YYYY-MM-DD), in the station's Local Standard Time.window_start_utcdatetime Inclusive start of the market day (UTC). window_end_utcdatetime Exclusive end of the market day (UTC). observed_totaldecimal Measurable 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 anypotential_precip.final_minutes_precipdecimal|null Rain 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.nullwhen zero or not yet applicable.qualifyingboolean trueonceobserved_totalexceeds the trace threshold, i.e., measurable rain has been observed. A trace alone never qualifies.trace_presentboolean Whether any accumulation period reported a trace with no measurable amount. trace_hours_utcarray The UTC hours ( YYYY-MM-DD HH:00) whose period ended with only a trace.hourly_utcobject Measurable 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 toobserved_totallessfinal_minutes_precip. Serialized as an empty array ([]) when there are no entries.current_hour_precipdecimal|null The accumulator reading in the open period, i.e. rain since the most recent hourly METAR. Not yet part of observed_total; it moves intohourly_utcwhen the next hourly METAR closes the period.nullfor stations without a sub-hourly counter feed (currentlyKNYC).current_hour_obs_time_utcdatetime|null Observation time of the reading behind current_hour_precip.potential_precipdecimal|null Not 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, ormarket_status. Becomesnullonce the split is resolved and the confirmed share moves intohourly_utc.potential_bucket_utcstring|null The hourly_utckey the potential amount will land in if it proves to be today's.boundary_remarkstring|null What 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), ornullwhen no boundary split was needed.opening_carrydecimal|null The 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. nullwhen nothing carried.opening_carry_sourcestring|null Which 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), orspecial+cli.final_minutes_sourcestring|null Which reading established final_minutes_precip; same vocabulary asopening_carry_source.boundary_splitobject|null The 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; nullotherwise.cliobject|null The NWS Daily Climate Report for this market day (see below). nulluntil the first report of the day is issued.market_statusstring Convenience summary of where the market stands (see below). computed_at_utcdatetime When this station's entry was computed. Up to 15 seconds older than timestampbecause of the per-station cache.boundary_split
Mirrors the "Boundary split" evidence row on the dashboard. All amounts in inches.
Field Type Description first_perioddecimal Total rain reported in the first accumulation period of the day (the one the boundary falls inside), before splitting. lower_bounddecimal The least amount known to be yesterday's, from the latest SPECI before the boundary ( 0if none).lower_bound_sourcestring|null Source of lower_bound(special), ornull.counter_afterdecimal The first counter reading after the boundary, which caps how much could still be yesterday's. remarkstring|null Same value as boundary_remark.cli_yesterdaydecimal|null Yesterday's final CLI precipitation, once issued. cli_issued_utcdatetime|null Issuance time of that report. ours_yesterdaydecimal|null Our observed total for yesterday computed from the reports, excluding the unseen minutes before the boundary. shortfalldecimal|null cli_yesterday − ours_yesterday: exactly the rain that fell in the last minutes before the boundary and therefore belongs to yesterday.yesterday_unresolvedboolean truewhen yesterday's own opening boundary is still unresolved, in which case the shortfall cannot be trusted and the amount stays potential.resolved_bystring|null How the split was decided: remark,cli,special+cli, ornullwhile still pending.yesterday_sharedecimal The part of first_periodassigned to yesterday (so far: the lower bound while pending).today_sharedecimal The part of first_periodconfirmed as today's; this is whathourly_utcandobserved_totalcarry.potentialdecimal|null The 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.
Field Type Description amountdecimal Precipitation reported by the CLI for the market day, in inches. A trace is reported as 0.traceboolean Whether the report shows a trace ( T) rather than a measurable amount.finalboolean|null falsefor a same-day preliminary report (covering the day up toas_of),truefor the final report issued after the day ends.nullonly when the value came from the legacy climate pipeline, which cannot distinguish the two.as_ofstring|null The local time the report's figures run through, as printed in the report (e.g. 4:00 PM).nullfor a legacy-pipeline value.issued_at_utcdatetime|null Issuance time of the report (UTC). resolves_yesboolean amount > 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.
Value Condition 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_utckeys name the UTC hour each period ends in. - The open period. Rain since the latest hourly METAR is reported as
current_hour_precipand is deliberately kept out ofobserved_totalso nothing is counted twice. Expectobserved_totalto 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 intrace_hours_utcand flagged bytrace_presentbut never contribute toobserved_totalorqualifying. 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. Treatcli.final = trueas 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_totalandmarket_statusfor intraday tracking andclifor 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 asfinal_minutes_precipand subtracted from the new day's first period asopening_carry, with the source of each reading named. Nothing is ever pending. - Stations without a counter feed (
KNYCtoday; 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 aspotential_precipand kept out of every total and out ofmarket_status. It resolves in one of two ways: the hourly begin/end remarks settle it outright (boundary_remarkofafterorbefore), 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 intohourly_utcandobserved_total,potential_precipreturns tonull, andboundary_split.resolved_byrecords 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 treatpotential_precipas 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 sPush Stream (Daily Rain Push API) PUSH DEV+
Connection rules shared by every stream (allowances, reconnecting, replay, port-443 addresses) are in Streaming Basics.
GEThttps://wethr.net:3446/v1/...🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Every other tier receives a403. 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.phpand waiting out its 15-second cache, you hold one connection and receive adaily_rainevent 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_utcandcurrent_hour_obs_time_utcadvance 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 andmarket_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), usehttps://wethr.net/rain-apias the base URL instead (for examplehttps://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>, anX-Api-Keyheader, or?api_key=(browserEventSourceclients 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 carryX-RateLimit-Remaining-MinuteandX-RateLimit-Remaining-Day; a429carriesRetry-Afterin seconds.There is no station limit:
stations=ALLstreams the whole roster. Stream allowances and what happens at the limit are described in Streaming Basics.Streaming (SSE)
GEThttps://wethr.net:3446/v1/streamParameter Required Description stationsYes Comma-separated station codes ( KORD,KDTW) orALLfor the whole roster. Case-insensitive. Any unknown code fails the request with a400that lists the valid stations.last_event_idNo Resume 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 standardLast-Event-IDheader, whichEventSourcesends 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).snapshotNo On 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. Passsnapshot=0to 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.
Event When 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: statusisokorstale, withpreviousand a plain-languagereason.stalemeans no updates have been computed for more than 90 seconds; values you hold may be out of date untilokreturns.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). messagesays which; the connection is then closed.Event:
daily_rainevent: 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
nameandcomputed_at_utcis 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:Field Type Description idstring Event id (an integer as a string), also sent as the SSE id:line.eventstring Always daily_rain.station_codestring The station this state belongs to. timestampdatetime When this state was first emitted. On a snapshot it stays the original emission time, while computed_at_utcshows the most recent recomputation (which confirmed nothing had changed).snapshotboolean Present and trueonly 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
GEThttps://wethr.net:3446/v1/latest?stations=KORD,KDTWstationstakes a comma-separated list orALL(station_code/station_codesare accepted as aliases). The response matches the REST endpoint's shape, with each station entry also carrying itsid,station_codeandtimestamp:{ "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_idis the newest event id at the time of the call: open the stream with it aslast_event_idto receive every change after this read without a snapshot.Stations
GEThttps://wethr.net:3446/v1/stationsThe roster:
stationsis an array of{station_code, name, timezone, std_offset, has_data}, pluscountandtimestamp.Health
GEThttps://wethr.net:3446/healthNo authentication.
statusisokwhile rain updates are flowing anddegradedwhen they are not, withproducer_status,stations,stations_with_data,last_event_idandtimestamp.Error Responses
Status Meaning 400Missing stationsor an unknown station code (the body listsvalid_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 streamPython: 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
Parameter Required Description station_codeYes Station 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,KTTNExample Request
GET /api/v2/precipitation.php?station_code=KAUSExample 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
Field Type Description station_codestring Station identifier station_namestring Human-readable station name timezonestring PHP timezone identifier timezone_offset_hoursinteger Fixed UTC offset for Local Standard Time (e.g., -6 for CST) today_local_datestring Current date in station's Local Standard Time (YYYY-MM-DD) monthinteger Current month (1-12) yearinteger Current year official_mtddecimal Month-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_finalisfalse.official_is_finalboolean|null truewhenofficial_mtdis entirely final Climate Report data.falsein the window after a new day begins but before yesterday's final report is issued; during that windowofficial_mtdincludespending_precipand can still change slightly when the final arrives.nullwhen the value came from the legacy climate pipeline, which does not record the distinction.pending_precipdecimal The part of official_mtdcounted 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 whenofficial_is_finalistrue.today_precipdecimal Today's precipitation (local standard day) from the Daily Rain engine, including the open period since the last hourly report total_mtddecimal Combined total: official_mtd + today_precippotential_precipdecimal|null Rain 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_daysarray One entry per day counted from observations: date,precip,source(engineorcli_prelim),todayhas_traceboolean Whether trace precipitation was reported today with no measurable amount in that hour last_trace_timestring|null Time of last trace report (Local Standard Time) cli_datestring|null Date of the most recent CLI report (preliminary or final) before today cli_issued_atstring|null Timestamp when that CLI report was issued today_hourly_maxobject Today'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_mtddecimal Month-to-date from final Climate Reports only, through final_cli_datefinal_cli_datestring|null Date of the newest final Climate Report this month methodstring Calculation method identifier, currently cli_final_plus_period_enginetimestampstring API response timestamp (UTC, ISO 8601) unitsstring Always inchesUnderstanding the Data
- Official (CLI): The
official_mtdvalue 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_precipandpending_precipcome 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_traceis true, precipitation was detected but was too small to measure (<0.01"). Trace amounts are not included in the totals. - Hourly: The
today_hourly_maxobject 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']}")
ForecastsForecasts API REST
GET/api/v2/forecasts.phpRetrieves 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
Parameter Required Description location_nameYes Location identifier (e.g., KMDW)start_valid_timeConditional Start of forecast range (ISO 8601). Required unless a runfilter is specified.end_valid_timeConditional End of forecast range (ISO 8601). Required unless a runfilter is specified.modelConditional 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, seeprecipitation_probability),NBS-MOS,RAP,RRFS,UKMO.NAM,NAM-MOSandNAM4KMwere retired by NOAA on November 3, 2026: they return rows for dates through that day only and are no longer part ofrun=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 (seeinclude).runNo Filter results to a single model run. Accepts: latest: resolves to the most recent run for the specifiedmodel+location_name. Without amodel, 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).
runfilter is specified, thestart_valid_time/end_valid_timewindow 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).includeNEWNo Set to ensemblesto add the REFS ensemble series to a request that has nomodel(all models). Not needed when you ask formodel=REFSor a single REFS series directly. See Ensembles (REFS).modeNo Set to dailyto 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_modeNo 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=HRRRLatest Run Mode
Passing
run=latestreturns every forecast hour of the most recent run for a givenmodelandlocation_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:
modelis 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, sorun_timediffers 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_timeandend_valid_timeare 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-Timeheader containing the resolved run's initialization time (UTC), so clients can confirm which cycle they received without parsing rows. All-model andmodel=REFSresponses omit it, since each row carries its ownrun_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), sorun=latestresolves to the most recent of those: up to ~6 hours older than the latestHRRRrun. Check theX-Run-Timeheader when comparing the two series.
Example Request: Latest HRRR Run (All Forecast Hours)
GET /api/v2/forecasts.php?location_name=KAUS&model=HRRR&run=latestExample Request: Latest Run of Every Model
GET /api/v2/forecasts.php?location_name=KAUS&run=latestExample 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:00ZEnsembles (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 behindREFS-MEAN(both cycles, as listed above).REFS-MEANalways 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_degandweather_codearenull(a minimum or maximum direction is not meaningful). These rows are computed by Wethr.net rather than stored, soidandinserted_atarenull. A value needs at least two forecasts and is otherwisenull.
Behavior:
- Runs at 00, 06, 12 and 18z, hourly out to 60 hours.
model=REFSreturns all eight series (mean, five members, and the range). Withrun=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
modeldoes not return them unless you addinclude=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-MAXfor the true range. REFS-MIN/REFS-MAXcome only with the whole group (model=REFSorinclude=ensembles), in raw mode. They are not returned for a single series such asmodel=REFS-MEAN, and are not part ofmode=daily.
Example Request: Latest REFS (mean + members, one cycle)
GET /api/v2/forecasts.php?location_name=KATL&model=REFS&run=latestExample Request: Latest Run of Every Model, Including Ensembles
GET /api/v2/forecasts.php?location_name=KATL&run=latest&include=ensemblesResponse Size Limit
A single response returns at most 20,000 rows, ordered by
valid_time. If a response reaches that limit, it carries the headerX-Wethr-Truncated: trueand the latest valid times are missing. Narrow the window, request onemodel, or userun=latest, which returns one run per model and stays well under the limit.Daily Summary Mode
Passing
mode=dailycollapses 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, orstandard). - 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
modelis 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 viarun(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: addmodel=REFSorinclude=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; thepoints_usedfield reports how many forecast points contributed to each day so you can account for sampling resolution. Among gridded models,HRRR-EXTis 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-Signatureheader 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=dailyExample Request: Single Model, Standard-Time Days
GET /api/v2/forecasts.php?location_name=KMDW&mode=daily&model=GFS&tz_mode=standardDaily Summary Fields
Field Type Description modelstring Forecast model name datestring Local calendar day ( YYYY-MM-DD) in the station's timetimezonestring IANA timezone used for bucketing (e.g., America/Chicago)tz_modestring Day-boundary convention applied: civilorstandardrun_timedatetime Model run the summary was derived from (UTC) points_usedinteger Number of forecast points that contributed to this day's high/low high_fdecimal Day's maximum temperature (Fahrenheit) low_fdecimal Day's minimum temperature (Fahrenheit) high_cdecimal Day's maximum temperature (Celsius) low_cdecimal Day'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
runand read the returneddatevalues against that run'srun_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
Field Type Description idinteger Unique record identifier modelstring Forecast model name location_namestring Location identifier latitudedecimal Latitude longitudedecimal Longitude run_timedatetime Model run time (UTC) valid_timedatetime Forecast valid time (UTC) forecast_hourinteger Lead time in hours temperature_kdecimal Temperature (Kelvin) temperature_fdecimal Temperature (Fahrenheit) temperature_cdecimal Temperature (Celsius) relative_humiditydecimal Relative humidity (%) dew_point_fdecimal Dew point (Fahrenheit) dew_point_cdecimal Dew point (Celsius) apparent_temp_fdecimal Apparent ("feels like") temperature (Fahrenheit) apparent_temp_cdecimal Apparent ("feels like") temperature (Celsius) wind_speed_mphdecimal Wind speed (mph) wind_speed_kmhdecimal Wind speed (km/h) wind_direction_deginteger Wind direction (degrees, 0–360) wind_gusts_mphdecimal Wind gusts (mph) wind_gusts_kmhdecimal Wind gusts (km/h) cloud_coverdecimal Total cloud cover (%). For HRRR's 15-minute rows, cloud cover is hourly-resolution data and is populated only on top-of-hour timestamps ( nullon :15/:30/:45 rows).precipitation_mmdecimal Precipitation (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 (nullon :15/:30/:45 rows, and on FH00; nothing has accumulated at analysis time). Exception:RRFSreports 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_indecimal Precipitation (inches): same per-model semantics as precipitation_mmprecipitation_probabilityinteger Chance (%) of at least 0.01 in of precipitation in the 6 hours ending at valid_time. Filled only onNBM-PoProws;nullfor every other model.weather_codeinteger WMO weather interpretation code pressure_msl_hpadecimal Mean sea-level pressure (hPa) surface_pressure_hpadecimal Surface pressure (hPa) inserted_atdatetime Timestamp 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
nullfor 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:
HRRRis sub-hourly: a new run every hour withvalid_timerows every 15 minutes (FH00–18). All extended fields ride the 15-minute rows exceptcloud_coverandprecipitation_mm/precipitation_in, which are hourly-resolution and appear only on top-of-the-hour rows.HRRR-EXT(hourly rows, FH00–48, synoptic cycles) andRRFS(hourly rows, 3-hourly cycles) populate the full extended set including cloud cover and precipitation.NBM-PoProws: 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 onlyprecipitation_probability; temperature, wind, humidity, cloud, precipitation amount and pressure arenull(useNBMorNBS-MOSfor 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_timefield represents the model initialization cycle (e.g.,18:00:00for an 18z run). Combined withinserted_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
Parameter Required Description station_codeYes Station identifier dateNo 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. modeNo 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=historyExample 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
Field Type Description station_codestring Station identifier station_namestring Human-readable station name timezonestring PHP timezone identifier timezone_offset_hoursinteger Fixed UTC offset for Local Standard Time forecast_datestring Forecast date (YYYY-MM-DD) in Local Standard Time versioninteger Forecast version number (latest mode only) hourly_tempsarray Array of 25 temperatures (indices 0-24, where 24 = midnight next day). Values are nullfor hours that had already passed when the forecast was issued.highinteger|null Forecasted high temperature, calculated as the maximum of all non-null values in hourly_tempslowinteger|null Forecasted low temperature, calculated as the minimum of all non-null values in hourly_tempshourly_dataobject|null Additional NWS forecast details as 25-slot arrays parallel to hourly_temps(same index = same hour,nullfor 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).nullfor forecast versions captured before this data was collected.hourly_data_fieldsobject|null Legend describing each key in hourly_datapublished_atstring|null UTC 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|null Unix epoch equivalent of published_attotal_versionsinteger Number of forecast versions available (history mode only) forecastsarray Array of all forecast versions (history mode only) unitsstring Always fahrenheittime_conventionstring Always local_standard_timeUnderstanding the Time Convention
The
hourly_tempsarray 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
nullvalues. For example, if a forecast is fetched at 2:00 PM, indices 0-13 will typically benullwhile 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 a403 Access Deniedresponse.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
extremeparameter.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 thebiasfield (read this before integrating):The
biasfield returned by this endpoint is computed asactual − 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
Parameter Required Description station_codeYes ICAO station identifier (e.g., KORD,EGLC)extremeNo Which daily extreme to query. Values: high(default),low. Determines whether the response describes daily high or daily low temperature accuracy.windowNo Time window for accuracy metrics. Values: 7d(default),14d,30d,90dmodelNo Comma-separated model filter (case-sensitive). Example: GFS,HRRR,ECMWF-IFS. Omit for all models.run_timeNo Comma-separated run time filter. Example: 00z,12z. Omit for all run times.lead_timeNo 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.includeNo 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-MOSandNAM4KMwere 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_detailExample 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-IFSfiltered response. Without the model filter, all 24 tracked models would be returned.Response Fields
Top-Level Fields
Field Type Description stationstring ICAO station code citystring Human-readable city name extreme_typestring Which extreme this response describes: highorlowcomputed_atstring ISO 8601 timestamp of when the accuracy data was last computed windowstring Time window requested ( 7d,14d,30d,90d)modelsarray List of model names included in this response (affected by modelfilter)days_availableinteger Number of days with valid data in this window ensemble
Aggregate accuracy metrics across all models for the requested window.
Field Type Description maedecimal Mean Absolute Error (°F): average distance between forecast and actual, ignoring direction biasdecimal Mean 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.rmsedecimal Root Mean Square Error: like MAE but penalizes large misses more heavily ninteger Number of valid forecast-observation pairs per_model
Object keyed by model name. Each value contains the same
mae,bias,rmse,nfields 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 containsmae,bias,rmse,nfor 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 have13z,16z,18zwhile GFS has06z,12z,18z. Unlikeper_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,nfor that specific model + lead-time combination. Likeper_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 theincludeparameter to add heavier data sections. All optional includes respect themodelfilter: 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 thebiasfield (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_highwhenextreme=high,actual_lowwhenextreme=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):
Request Size 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 a403 Forbiddenresponse.⚠️ 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-readablepace_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, a26°Creading becomes25.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 & themodeparameter:Pacing is always measured within a single contract day. The
modeparameter 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+1hduring DST so it continues to align with NWS climate-day boundaries (this shift is surfaced asnws_dst_shiftin the response).wundergroundfollows local clock time year-round. Thedate, when omitted, resolves to "today" in the station's own timezone.Endpoint & Parameters
Parameter Required Description station_codeYes Target station identifier. Must exist in the station catalog with a valid timezone. Examples: KTPA,KMDW,EGLC.dateNo Contract day in YYYY-MM-DDformat, interpreted in the station's local time. Defaults to the current day in the station's timezone.modeNo Contract-day window convention: nws(default, Standard Time year-round with a+1hDST shift) orwunderground(local clock time year-round). See the note above.modelsNo Comma-separated list of model names to restrict the response to (max 40). Omitted = all available models. Example: GFS,HRRR,ECMWF-IFS. IncludeNWSin the list to keep the NWS row when filtering.include_nwsNo If true(default), anNWSpacing row is added, computed from the latest NWS hourly forecast. Set tofalseto 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 syntheticNWSrow.NAM,NAM-MOSandNAM4KMwere 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_observationisnull, every model's pace fields arenull, and a top-levelnoteexplains 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
NWSrow 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=falseExample 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
modelsmap contains one entry per available model (here,count: 20). Every model row has the identical shape shown forGFSabove; only theNWSrow differs, carrying aversionfield and anullrun_time_utc.Response Fields
station
Catalog metadata for the requested station.
Field Type Description station_codestring Station identifier. station_namestring Full station name. city,state,countrystring|null Location descriptors. elevation_mdecimal|null Elevation in meters. site_typestring|null Site classification, when available. timezonestring IANA timezone used to resolve the contract day. latitude,longitudedecimal|null Coordinates. contract_day
The window the pacing was computed over.
Field Type Description datestring Contract day ( YYYY-MM-DD), in the station's local time.modestring Window convention applied: nwsorwunderground.unitstring Temperature unit for this response: ForC.is_metricboolean Whether the station reports in metric (Celsius). window_start_utcdatetime Inclusive start of the contract-day window (UTC). window_end_utcdatetime Exclusive end of the contract-day window (UTC). nws_dst_shiftboolean Whether the +1hNWS DST shift was applied to the window.reference_observation
The most recent actual observation that pacing is measured against.
nullwhen no observation is available in the window yet (seenote).Field Type Description observation_time_utcdatetime Observation timestamp (UTC). observation_time_localdatetime Observation timestamp in the station's local time. local_hourdecimal Fractional local hour of the observation (e.g., 16.4= 16:24). This is the moment each model forecast is interpolated to.temperaturedecimal Observed temperature in the station's native unit. lowest_possibleinteger Lowest possible true temperature implied by the reading's precision. Lower bound of the pace range. highest_possibleinteger Highest possible true temperature implied by the reading's precision. Upper bound of the pace range. precision_levelinteger|null Precision indicator for the reading. 1denotes an exact-precision value (lowest_possible == highest_possible);nulldenotes a whole-degree reading resolved to a range.unitstring Unit of the observation: ForC.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_tempand all pace fields arenull(therun_time_utcis still listed).Field Type Description run_time_utcdatetime|null Model run the forecast came from (UTC). Always nullfor theNWSrow.versioninteger NWS row only. Version of the NWS hourly forecast used. model_tempdecimal|null Model forecast temperature interpolated to the observation's local_hour, in the station's native unit.pace_lowdecimal|null lowest_possible − model_temp.pace_highdecimal|null highest_possible − model_temp.pacedecimal|null Midpoint of pace_lowandpace_high.pace_stringstring|null Human-readable pace, signed (e.g., "+0.3 to +1.3", or a single value when low and high coincide).filters & count
Field Type Description filters.requested_modelsarray|null The normalized model filter applied. nullwhen all models were returned.filters.include_nwsboolean Whether the NWS row was requested. countinteger Number of model rows in models.notestring Present 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)` ); });
MarketsHourly 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.
GEThttps://wethr.net:3445/v1/...🔒 Developer & Enterprise Only: These endpoints require a Developer or Enterprise tier API key. Professional and Testing tier keys receive a403.⚠️ Read this first: the estimate is ours, and you use it at your own risk.The
estimatevalues 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, nevervalue_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,
Zsuffix). Temperatures in °F carry two decimals, matching Kalshi’s index precision. The base URL ishttps://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), usehttps://wethr.net/windex-apias the base URL instead (for examplehttps://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
citykey below. Kalshi publishes index feeds for more cities than it currently lists markets for;has_markettells you which have a live series today. The live list, with each city’s current feed status, is always available from/v1/cities.city Label Timezone Kalshi series Market Members chicagoChicago America/ChicagoKXTEMPCHIHSYes 5 dfwDallas-Fort Worth America/Chicagonone yet No 5 greater-bostonBoston America/New_Yorknone yet No 5 houstonHouston America/Chicagonone yet No 5 kansas-cityKansas City America/Chicagonone yet No 5 la-coastalLos Angeles America/Los_AngelesKXTEMPLAXHSYes 5 miamiMiami America/New_YorkKXTEMPMIAHYes 5 nycNew York America/New_YorkKXTEMPNYCHSYes 8 puget-soundSeattle America/Los_Angelesnone yet No 5 sf-baySF Bay Area America/Los_Angelesnone yet No 7 Timing & Cadence
- Minute t is the index minute. Kalshi publishes its canonical value for t at roughly t + 5 minutes (
official_expected_aton every estimate). - Our estimate for t first appears seconds after t ends and is re-emitted whenever it changes as station receipts land.
age_stells 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
settlementwhen 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>, anX-Api-Keyheader, 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 carryX-RateLimit-Remaining-MinuteandX-RateLimit-Remaining-Day; a429carriesRetry-Afterin seconds. Stream allowances and what happens at the limit are described in Streaming Basics.Streaming (SSE) & Events
GEThttps://wethr.net:3445/v1/streamParameter Required Description citiesYes Comma-separated city keys ( nyc,chicago) orALL. Unknown keys return400with the known list.last_event_idNo Resume after a disconnect: replays every stored event with an id greater than this value for the requested cities, in id order, then sends replay_completewith the count. Also accepted as the standardLast-Event-IDheader. The replay store holds the most recent 720 events per city for 24 hours.snapshotNo On a fresh connection with no replay, the server first sends the current estimateandstatusfor each requested city, tagged"snapshot": truewithid"0", so a new client is usable immediately. Passsnapshot=0to 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.Event When it is sent Whose 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,unavailableandstale.Wethr.net calibrationKalshi’s weekly calibration record changed. Kalshi replay_completeOnce, after a replay finishes: {"replayed": N}.n/a Event:
estimateevent: 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" }Field Type Description idstring Global event id (integer as a string). "0"on connect snapshots.citystring City key (see directory). minute_utcstring The index minute this estimate is for. estimate_f/estimate_cnumber | null Our value for the minute, °F to 2 dp and °C to 3 dp. nullwhenstatusisunavailable.statusstring normal(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/membersinteger Stations included in this estimate / stations on the roster. age_sinteger Seconds since minute_utcbegan at the time of emission.official_expected_atstring minute_utc+ 5 minutes: when Kalshi is expected to publish this minute.stationsobject Per roster member: stateisincluded(withinput=primary1-minute orfallbackhourly METAR),pending(not received yet),missing,excluded(we predict Kalshi will not count it;reason=kalshi_receipt_history) orrejected(failed a quality check;reasongiven). Never contains temperatures.accuracy_24hobject Trailing 24-hour score of our final estimate for each minute against the value Kalshi published: nminutes compared,exact_pctmatched to the penny,within_0_2f_pctwithin 0.2°F,mae_fmean absolute error.basisstring Constant disclaimer text, present on every estimate. snapshotboolean Present and trueonly on the connect snapshot.timestampstring When the event was emitted. Event:
officialevent: 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_fis Kalshi’s published value for the minute (nullwhen Kalshi published the minute asunavailable).statusis Kalshi’s:normal,degradedorunavailable.contributorsis the number of stations Kalshi blended.config_versionnames the calibration record in force.Event:
settlementevent: 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" }Field Type Description hour_utcstring The hour being settled (its end, on the hour). settle_fnumber | null Kalshi’s settlement value: the value of the selected minute. statusstring Status of the selected minute ( normal/degraded), orunavailableif no canonical minute qualified.selected_minute_utcstring | null The canonical minute Kalshi selected (last at or before the hour, max 60 min back). event_ticker/series_tickerstring | null Kalshi event and series tickers, when the city has a market. estimate_f/estimate_diff_fnumber | null Our final estimate for the selected minute and its difference from settle_f(estimate minus settle). This is your running, per-hour accuracy check.marketsarray Market results Kalshi recorded for the event: ticker,subtitle,floor_strike,cap_strike,result(yes/no). Empty until results are available.Event:
statusevent: 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" }statusMeaning What 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 stationson 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.previousis the prior state (nullon a connect snapshot) andreasonis a short plain-language explanation.Event:
calibrationevent: 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_care Kalshi’s per-station calibration offsets in °C andb_cis 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 return400with the known list for an unknowncity.Cities
GEThttps://wethr.net:3445/v1/citiesEvery 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" }statusis the live feed state (see thestatusevent).has_marketistruewhen a Kalshi series is listed for the city.Now
GEThttps://wethr.net:3445/v1/now?city=nycA complete snapshot for one city: the current estimate (identical in shape to the
estimateevent), 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" }Field Description 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_utcof the coming settlement andwould_settle_as: the canonical minute and value that would settle it if nothing newer publishes, per the selection rule stated inrule.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)
GEThttps://wethr.net:3445/v1/history?city=nyc&hours=6Parameter Required Description cityYes City key. hoursNo Look-back window, 1–168 (default 6). Official minutes only.
kindis 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, orincompletefor minutes Kalshi has not yet published),contributorsandconfig_version.Hours (settlements)
GEThttps://wethr.net:3445/v1/hours?city=nyc&days=2Parameter Required Description cityYes City key. daysNo Look-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
settlementevent, plusdetermined_utc, the time Kalshi’s selection became known.estimate_f/estimate_diff_fcompare our final estimate for the selected minute with the settle value.Accuracy
GEThttps://wethr.net:3445/v1/accuracy?city=nycHow 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" }Field Description estimate_vs_officialFor the trailing 24 h, 7 d and 30 d: nminutes compared,exact_pctmatched to the penny,within_0_2f_pctwithin 0.2°F,mae_fmean absolute error,max_abs_diff_flargest 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
GEThttps://wethr.net:3445/v1/calibration?city=nycThe 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
GEThttps://wethr.net:3445/healthNo authentication. Returns
status,uptime_seconds,stream_clients,last_event_idand, per city, the live feedstatusandpayload_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 everyestimateevent, and on everysettlement. 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
stationsforexcludedandpendingstates. - 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
unavailableon 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_swithpendingstations means a value that may still move. - Our own pipeline. A
statusofstalemeans we have not refreshed in over 150 seconds and the estimate you hold is no longer live. Treatdegradedas lower confidence thannormal. 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 includesknown, 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(andOPTIONS) are accepted - 429 Too Many Requests: rate limit exceeded;
Retry-Afterheader 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();
StationsNearby 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 a403 Access Deniedresponse.⚠️ 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_minutescutoff, sorted by ascending distance. - Explicit list mode: given a comma-separated list of station codes in the
neighborsparameter, returns the latest observation for each (still filtered bymax_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 defaultmax_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: 0even at busy locations. This is correct behavior, not a failure. If you want broader coverage, raise the cutoff (e.g.,max_age_minutes=30for typical use;60or higher for sparse rural areas). The maximum allowed is1440(24 hours), matching the rolling data retention window.Endpoint & Parameters
Parameter Required Description station_codeYes Target station identifier. Must exist in the station catalog with valid coordinates. Examples: KORD,EGLC,KMDW.radius_kmNo Search radius in kilometers. Default 10. Maximum32.2(≈ 20 mi). Ignored whenneighborsis provided.radius_miNo Search radius in miles. Alternative to radius_km. Internally converted (1 mi ≈ 1.60934 km). Maximum20(equivalent to the 32.2 km cap). Ignored whenneighborsis provided.neighborsNo 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_minutesNo Maximum age in minutes for a station's most recent observation to be eligible. Default 10. Range5–1440. See the note above.limitNo Maximum number of neighbors to return (sorted nearest-first). Default 25. Range1–100. Ignored whenneighborsis provided.include_targetNo If true, the target station's own most recent observation is embedded undertarget.observation. Defaultfalse.include_bearingNo If true(default), each neighbor includesbearing_deg(0–359, true north) andbearing_compass(16-point label). Set tofalseto 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_kmanddistance_miare always returned. Neighbors are always sorted by ascendingdistance_kmregardless 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=60Example 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
Field Type Description targetobject Catalog metadata for the target station. Includes observationsub-object only wheninclude_target=true.filtersobject Echo of how the request was resolved (defaults filled in). Useful for confirming what the server actually used. countinteger Number of neighbors returned (zero is valid). neighborsarray Stations 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).
Field Type Description station_codestring Echoed station identifier. station_namestring|null Full station name from catalog. citystring|null City. May be null for mesonet/CWOP stations. statestring|null State/region. countrystring|null ISO country (e.g., US).elevation_mdecimal|null Elevation in meters. site_typestring|null e.g. airport,mesonet,cwop.timezonestring|null IANA time zone (e.g., America/Chicago).latitudedecimal Decimal degrees. longitudedecimal Decimal degrees. age_secondsinteger|null Only present when include_target=true. Seconds since the target's most recent observation.observationobject|null Only present when include_target=true. Same shape as a neighbor'sobservation(see below).neighbors[]
Each entry includes catalog metadata, distance/bearing information, and the latest observation.
Field Type Description station_codestring Station identifier. station_namestring|null Full station name. city,state,countrystring|null Catalog location metadata. Mesonet/CWOP stations may have nulls. elevation_mdecimal|null Elevation in meters. site_typestring|null Catalog site type. timezonestring|null IANA time zone. latitude,longitudedecimal Decimal degrees. distance_kmdecimal Great-circle distance to the target, kilometers. distance_midecimal Great-circle distance to the target, miles. bearing_deginteger Compass bearing from target to neighbor, 0–359 degrees from true north. Only present when include_bearing=true(default).bearing_compassstring 16-point compass label ( N,NNE,NE, …). Only present wheninclude_bearing=true.age_secondsinteger Seconds since this neighbor's most recent observation. observationobject The 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.
Field Type Description observation_timestring UTC timestamp of the observation, YYYY-MM-DD HH:MM:SS.temperature_cdecimal|null Air temperature in Celsius. nullif missing, out of sane range (-60 to 60 °C), or sentinel.temperature_fdecimal|null Air temperature in Fahrenheit. dew_point_cdecimal|null Dew point in Celsius. Nulled if greater than temperature (physically impossible) plus tolerance. dew_point_fdecimal|null Dew point in Fahrenheit. previous_temperature_cdecimal|null The prior observed temperature for this station, Celsius. Useful for delta calculations. previous_temperature_fdecimal|null Same in Fahrenheit. wind_directionstring|null Wind 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".nullwhen no wind direction was reported.wind_speed_ktdecimal|null Wind speed in knots. wind_speed_mphdecimal|null Wind speed in miles per hour. wind_speed_mpsdecimal|null Wind speed in meters per second. wind_speed_kmhdecimal|null Wind speed in kilometers per hour. wind_gust_ktdecimal|null Peak gust in knots. Nulled if less than steady wind speed (data error). wind_gust_mphdecimal|null Peak gust in miles per hour. wind_gust_mpsdecimal|null Peak gust in meters per second. wind_gust_kmhdecimal|null Peak gust in kilometers per hour. relative_humiditydecimal|null Computed 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
nullwhen not applicable (e.g.,radius_kmis null in explicit-list mode).Field Type Description modestring Either radiusorexplicit_list.radius_km,radius_midecimal|null Effective radius (both units). Null in explicit-list mode. max_age_minutesinteger Freshness cutoff applied. limitinteger|null Result cap applied. Null in explicit-list mode. include_targetboolean Whether the target's own observation was embedded. include_bearingboolean Whether bearing fields were included on neighbors. requested_neighborsarray|null The 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` ); });
- Every timestamp is UTC unless its field or description says local time (for example
-
⚠️ 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
Tier Requests/Minute Requests/Day Professional 60 5,000 Developer 300 50,000 Enterprise 300 50,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.phpMode: Latest Observation
Returns the most recent observation.
GET /api/v1/observations.php?station_code=KMDW&mode=latestExample 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_highExample 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
Field Type Description station_codestring Station identifier observation_timedatetime UTC timestamp temperaturedecimal Temperature (Celsius) temperature_fdecimal Temperature (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_finteger Min probable temp (°F) highest_probable_finteger Max probable temp (°F) dew_pointdecimal Dew point (Celsius) relative_humiditydecimal Relative humidity (%) cli_high/cli_high_fdecimal/int CLI report high dsm_high/dsm_high_fdecimal/int DSM report high six_hour_highdecimal 6-hour high (Celsius) wind_speeddecimal Wind speed (knots) visibilitydecimal Visibility (miles)
Forecasts API Deprecated
GET/api/v1/forecasts.phpParameters
Parameter Required Description location_nameYes Location identifier start_valid_timeYes Start of range (ISO 8601) end_valid_timeYes End of range (ISO 8601) modelNo Model 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-MOSandNAM4KMwere 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=HRRRForecast Data Model
Field Type Description modelstring Model name location_namestring Location run_timedatetime Model run time valid_timedatetime Forecast valid time forecast_hourinteger Lead time (hours) temperature_kdecimal Temp (Kelvin) temperature_fdecimal Temp (Fahrenheit) temperature_cdecimal Temp (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"