Community. Driven. Weather. Data.Always Ad-FreeDeveloper FriendlyChecking statusDiscord
Become a supporter
Sign in

Forecast API

Every field the models publish for a point, NBM to about eleven days and the HRRR nowcast, with optional severe weather parameters and upper air.


Base URL: https://api.wxalerts.org

The full forecast for a point: the National Blend of Models hour by hour, and the HRRR nowcast beside it, with the model run behind every number. GET /weather is the same data reduced for a screen; this is the unreduced version. Why the two models are kept apart is in The two forecast models.

No key needed. Browsers block calls from other websites (CORS allows only wxalerts.org), so call it from a server, script or app. The public rate limit applies. The data changes hourly and responses carry Cache-Control: max-age=300, so cache.

The two series

resolution horizon updated carries
hourly, daily NBM, about 10 km about 11 days hourly the forecast: temperature, wind, sky, precipitation and its probabilities
nowcast, current HRRR, about 6 km 18 hours hourly the near term: radar reflectivity, pressure, and on request the severe and upper air fields below

Both series start at the hour in progress. hourly is one step an hour for about the first two days, then every 3 hours, then every 6 hours past about day 8. current is the nowcast step nearest to now, not simply the first.

Fields in each series

The hourly, nowcast and daily steps carry these fields. The units block of the response names the unit and meaning of each one in hourly and nowcast.

series fields
nowcast temperature, dewpoint, wind_speed, wind_direction, precip_amount, reflectivity, cape, pressure, surface_pressure
hourly temperature, dewpoint, relative_humidity, wind_speed, wind_gust, wind_direction, cloud_cover, visibility, ceiling, precip_amount, the probabilities below, cape, sky, precip_type, icon, is_day
daily date, hours, temperature_min, temperature_max, dewpoint_min, dewpoint_max, relative_humidity_min, relative_humidity_max, wind_speed_max, wind_gust_max, wind_direction_prevailing, wind_direction_cardinal, cloud_cover_mean, visibility_min, ceiling_min, precip_amount_total, each probability as _max, cape_max, sky, precip_type, icon
  • Every step carries valid_time (UTC), local_time and utc_offset_seconds for the point’s zone, forecast_hour, wind_direction_cardinal (16 point), and visibility_unrestricted: true when visibility is at the top of the model’s range (16 km, about 10 mi), so you can write “10+ mi”; null on the nowcast, which has no visibility. forecast_hour counts from the run that produced that step. Most steps come from the newest run, but where it skipped an hour an earlier run’s step stays, so order by valid_time, never by forecast_hour.
  • hourly and daily also carry sky, precip_type and icon, decided on the server exactly as on /weather; hourly steps add is_day. A day’s icon is always the daytime one.
  • daily rolls hourly into local calendar days. Each field becomes _min/_max (temperature, dewpoint, humidity), _max (wind, gust, probabilities, cape), _min (visibility, ceiling), _mean (cloud cover), _total (precipitation) or _prevailing (wind direction, a vector mean). hours is how many steps the day was built from: today and the last day are partial, and days past the hourly range have fewer steps by design.
  • Nulls. ceiling: null means no ceiling (unlimited). reflectivity of -10 dBZ is the model’s floor and means clear air; null there only means no value is stored for that hour.
  • location and cell. Given q or location_id, location is that place and its coordinates, with distance_km: null.

Coverage

coverage says what you got:

coverage where what is filled
full the lower 48 and its surroundings everything
nbm_only Alaska, Hawaii, Puerto Rico, Guam hourly and daily; nowcast is empty, current and models.hrrr are null
outside_domain anywhere else every series empty, cell.cell_id is -1

A field a domain does not publish is left out of its steps and of the units block entirely, rather than sent as null. Hawaii, for example, has no precipitation type or severe_probability.

Units

units is si (exactly what the model published: K, m/s, Pa, kg/m²), metric, us, uk, or auto (the default) from your country. Every response carries a units block naming the unit, a display label and a description of every field in hourly and nowcast. Read it rather than assuming. units.source is explicit when you named a system, geo when it came from your country, or default.

auto varies by caller, so it is sent Cache-Control: private with Vary: CF-IPCountry. Pass a system explicitly for a response a CDN can cache (public, max-age=300).

Probabilities (NBM, hourly)

field meaning
precip_probability chance of more than 0.01 in (0.254 mm) in the hour
thunder_probability chance of a thunderstorm. Not published for Guam
rain_probability, snow_probability, freezing_rain_probability, ice_pellet_probability chance the precipitation is each type. Four independent numbers, not a split of 100. CONUS and Alaska only.
severe_probability chance the Craven-Wiedenfeld severe parameter exceeds 65, a significant severe signal. CONUS only.

All are percentages, each the highest value anywhere in the 10 km cell. How to read them is in The two forecast models.

include=severe

Added to each nowcast step (and so to current). From the HRRR at native resolution, averaged to the 6 km cell; helicity and updraft helicity keep the cell’s peak instead. Surface based cape is in every nowcast step already.

field unit (si) meaning
cin J/kg surface based convective inhibition. Zero or negative; more negative is a stronger cap
mlcape, mlcin J/kg mixed layer, the lowest 90 hPa
mucape, mucin J/kg most unstable parcel in the lowest 255 hPa
cape_0_3km J/kg low-level CAPE
lcl_height m above ground lifted condensation level of a surface parcel
lifted_index K negative is unstable
precipitable_water kg/m² (mm)
srh_0_1km, srh_0_3km m²/s² storm-relative helicity, Bunkers right mover
storm_motion_speed, storm_motion_direction m/s, degrees HRRR’s Bunkers right mover, direction FROM
bulk_shear_0_1km, bulk_shear_0_6km, bulk_shear_0_6km_direction m/s, degrees bulk wind difference
updraft_helicity m²/s² hourly maximum 2 to 5 km; 0 at the analysis hour

CAPE, CIN and helicity stay in J/kg and m²/s² in every system.

include=upper_air

Temperature, dewpoint and wind at 925, 850, 700 and 500 hPa, heights at 850 to 500 hPa, the 250 hPa jet, the 80 m wind and the boundary layer height: temperature_850mb, dewpoint_850mb, height_850mb, wind_speed_850mb, wind_direction_850mb and so on, plus wind_speed_250mb, wind_direction_250mb, wind_speed_80m, wind_direction_80m and boundary_layer_height (above ground).

A level below the ground at that point (850 hPa over Denver, say) comes back null: the model extrapolates under terrain and that number describes no air.

Winds aloft, the 80 m wind, shear and storm motion are in knots in every system but si, because that is how soundings and hodographs read. Heights of pressure levels stay in metres in every system.

All directions are degrees from true north, reported as the direction a wind blows FROM. HRRR publishes its vectors relative to its own grid; they are turned to true north before they are stored.

Narrative and explain

narrative is written by rules from the numbers in the same response, so it never states anything the series do not. Outside every model domain it is null, unless an alert covers the point, in which case only the alert is said. When an active alert covers the point it leads, and that block’s hazard is true: style the lead paragraph as a warning on that flag, not by matching words.

explain=true fills facts with the derived values the sentences were chosen from (high today, precipitation onset, pressure trend and so on). Its keys can change without notice.

GET /forecast

Forecast for a point, a saved location, or a place name.

Access. Anonymous, or an API key holding weather:read. Also served at /v1/forecast, where a key (or the app or website sign-in) is required. Anonymous requests share the per-address limit, and a request with a key is charged to the key. See Rate limits.

The full forecast for a point: every field the models publish, unreduced.

Give lat and lon, or location_id, or q. hourly and daily come from the National Blend of Models (about 10 km, to about 11 days). nowcast and current come from the HRRR (about 6 km, 18 hours) and carry radar reflectivity and pressure, plus severe weather and upper air fields on request with include. The two models are never blended, and models names each run, its age and how far it reaches. units names the unit of every field in both series.

coverage says what was filled: full in the lower 48 and its surroundings, nbm_only in Alaska, Hawaii, Puerto Rico and Guam (no nowcast), outside_domain anywhere else (every series empty, not an error). Each step carries valid_time, local time and offset, and forecast_hour; order by valid_time. narrative is the forecast in sentences, written by rules from the same numbers, and any active alert leads it. Responses carry Cache-Control: max-age=300.

Parameters

Name In Type Required Default Bounds Description
lat query number or null no none -90 to 90 Latitude of the point, in degrees north
lon query number or null no none -180 to 180 Longitude of the point, in degrees east
q query string or null no none at least 1 character, at most 120 characters Place name, ZIP or state, used instead of lat and lon and resolved through /locations/search. The best match is used. No match is a 404
location_id query integer or null no none none Place id from a /locations/search result, used instead of lat and lon. An unknown id is a 404
units query “si” | “metric” | “us” | “uk” | “auto” no "auto" none Unit system for every measurement in the response. si is exactly what the model published (K, m/s, Pa, kg/m2, m). metric is degrees C, km/h, hPa, mm, km. us is degrees F, mph, inHg, in, mi. uk is degrees C, mm and hPa, but mph and miles. auto (the default) picks one from the caller’s country, and a caller who cannot be placed gets us. The response’s units block names the unit of every field. An auto response varies by caller and is sent Cache-Control: private; pass a system explicitly for a response a shared cache can hold
include query string or null no none at most 40 characters Extra HRRR fields on the nowcast, comma separated: severe (CAPE/CIN variants, helicity, shear, storm motion, updraft helicity) and upper_air (925, 850, 700, 500 and 250 mb). CONUS only, like the nowcast itself. Any other value is a 422
explain query boolean no false none When true, also return facts, the derived facts the narrative was written from, for seeing why a sentence appeared. Not a stable interface. Default false

Response

Returns object.

Field Type Description
server_time string (date-time) When the response was built, in UTC.
location object Where this forecast is for, and how it was named.
location.name string or null Place name. Null when no place was close enough to name.
location.display_name string or null Place name with its state, e.g. ‘Norman, OK’. Same rule as name.
location.state string or null State or region of the named place.
location.lat number Latitude the forecast is for, degrees north.
location.lon number Longitude the forecast is for, degrees east.
location.timezone string IANA zone the local times are in
location.approximate boolean True when the name is the nearest place to the point rather than the point itself, so a display should qualify it: ‘near Zurich, KS’. False both when the caller named the place and when the point falls inside the named one.
location.distance_km number or null Kilometres from this point to the named place’s centre. Null when the caller named the place, and when no place was close enough to name at all - in which case name, display_name and state are null too and only the coordinates are available.
cell object The NBM grid cell the point fell in.
cell.cell_id integer The NBM grid cell the point fell in. -1 outside every domain.
cell.domain string NBM domain: co | ak | hi | pr | gu
cell.lat number Cell centroid latitude, not the requested point
cell.lon number Cell centroid longitude, not the requested point
cell.resolution_km number NBM grid spacing, kilometers.
models object The run behind each series: its cycle, age and how far it reaches.
models.nbm object The National Blend of Models run behind hourly and daily.
models.nbm.resolution_km number Grid spacing for THIS model. NBM and HRRR differ, and a nowcast labeled with the forecast’s resolution is a false claim.
models.nbm.cycle string (date-time) or null When the model run started, in UTC.
models.nbm.age_seconds integer or null How long ago the model ran. Staleness lives here.
models.nbm.steps integer Number of forecast steps this model has for the point.
models.nbm.first_valid string (date-time) or null Valid time of the first step, in UTC.
models.nbm.last_valid string (date-time) or null Valid time of the last step, in UTC.
models.nbm.horizon_hours number or null Hours from now to the last valid time
models.hrrr object or null Absent outside CONUS; HRRR has no other domain
models.hrrr.resolution_km number Grid spacing for THIS model. NBM and HRRR differ, and a nowcast labeled with the forecast’s resolution is a false claim.
models.hrrr.cycle string (date-time) or null When the model run started, in UTC.
models.hrrr.age_seconds integer or null How long ago the model ran. Staleness lives here.
models.hrrr.steps integer Number of forecast steps this model has for the point.
models.hrrr.first_valid string (date-time) or null Valid time of the first step, in UTC.
models.hrrr.last_valid string (date-time) or null Valid time of the last step, in UTC.
models.hrrr.horizon_hours number or null Hours from now to the last valid time
units object The unit system and the unit of every field in hourly and nowcast.
units.system string si | metric | us | uk
units.source string How the system was chosen. ‘explicit’: you asked for it. ‘geo’: derived from the caller’s country, which means this response varies by caller and is not shared-cacheable. ‘default’.
units.country string or null Country the system was derived from, when it was
units.hourly object The unit of every field in hourly and daily, keyed by field name.
units.nowcast object The unit of every field in nowcast and current, keyed by field name.
coverage string ‘full’: both models. ‘nbm_only’: outside CONUS, so no nowcast. ‘outside_domain’: no forecast here at all; every series is empty.
current object or null The nowcast step nearest to now, or null if outside CONUS
nowcast array of object HRRR hourly, ~6 km, out to 18 hours
hourly array of object NBM, ~10 km. Hourly to forecast hour 47, then 3-hourly.
daily array of object NBM rolled into local calendar days
narrative object or null The forecast in sentences. Null where there is no forecast to describe. Any active alert leads it, ahead of the weather.
narrative.now object The conditions now and the next few hours.
narrative.now.headline string or null One line summing up the period. Null when there is none.
narrative.now.body array of string Paragraphs, already assembled. Empty where the facts supported nothing worth saying, which is a real answer and not an error.
narrative.now.hazard boolean True when body[0] is a statement about an active alert rather than about the forecast. Clients that give the lead paragraph warning styling should read this instead of matching on words.
narrative.next_36h object The next day and a half.
narrative.next_36h.headline string or null One line summing up the period. Null when there is none.
narrative.next_36h.body array of string Paragraphs, already assembled. Empty where the facts supported nothing worth saying, which is a real answer and not an error.
narrative.next_36h.hazard boolean True when body[0] is a statement about an active alert rather than about the forecast. Clients that give the lead paragraph warning styling should read this instead of matching on words.
narrative.week object The rest of the week.
narrative.week.headline string or null One line summing up the period. Null when there is none.
narrative.week.body array of string Paragraphs, already assembled. Empty where the facts supported nothing worth saying, which is a real answer and not an error.
narrative.week.hazard boolean True when body[0] is a statement about an active alert rather than about the forecast. Clients that give the lead paragraph warning styling should read this instead of matching on words.
facts object or null The derived facts the narrative was built from, returned only with ?explain=true. For tuning the wording and for seeing why a sentence appeared; not a stable interface.
{
  "cell": {
    "cell_id": 81168,
    "domain": "co",
    "lat": 35.196527,
    "lon": -97.378552,
    "resolution_km": 10.2
  },
  "coverage": "full",
  "current": {
    "pressure": 102000,
    "temperature": 293.9,
    "valid_time": "2026-11-09T19:00:00Z"
  },
  "daily": [
    {
      "cloud_cover_mean": 41.6,
      "date": "2026-11-09",
      "hours": 11,
      "icon": "partly-cloudy-day",
      "precip_amount_total": 0,
      "precip_probability_max": 1,
      "sky": "Partly cloudy",
      "temperature_max": 294.1,
      "temperature_min": 285.8,
      "wind_direction_cardinal": "SSW",
      "wind_direction_prevailing": 198,
      "wind_speed_max": 3.931
    }
  ],
  "hourly": [
    {
      "cape": 0,
      "cloud_cover": 2.9,
      "dewpoint": 285.1,
      "forecast_hour": 2,
      "icon": "clear-day",
      "is_day": true,
      "local_time": "2026-11-09T13:00:00-06:00",
      "precip_amount": 0,
      "precip_probability": 0,
      "relative_humidity": 59.6,
      "sky": "Clear",
      "temperature": 293.2,
      "thunder_probability": 0,
      "utc_offset_seconds": -21600,
      "valid_time": "2026-11-09T19:00:00Z",
      "visibility": 16210,
      "visibility_unrestricted": true,
      "wind_direction": 206,
      "wind_direction_cardinal": "SSW",
      "wind_gust": 6.9,
      "wind_speed": 3.931
    }
  ],
  "location": {
    "approximate": false,
    "display_name": "Norman, OK",
    "distance_km": 6.7,
    "lat": 35.2,
    "lon": -97.4,
    "name": "Norman",
    "state": "OK",
    "timezone": "America/Chicago"
  },
  "models": {
    "hrrr": {
      "age_seconds": 4040,
      "cycle": "2026-11-09T18:00:00Z",
      "first_valid": "2026-11-09T19:00:00Z",
      "horizon_hours": 15.9,
      "last_valid": "2026-11-10T11:00:00Z",
      "resolution_km": 6,
      "steps": 17
    },
    "nbm": {
      "age_seconds": 4040,
      "cycle": "2026-11-09T18:00:00Z",
      "first_valid": "2026-11-09T19:00:00Z",
      "horizon_hours": 256.9,
      "last_valid": "2026-11-20T12:00:00Z",
      "resolution_km": 10.2,
      "steps": 104
    }
  },
  "narrative": {
    "next_36h": {
      "body": [
        "No precipitation is expected."
      ],
      "hazard": false,
      "headline": "Quiet through the next day and a half"
    },
    "now": {
      "body": [
        "Clear and mild, with a light south wind."
      ],
      "hazard": false,
      "headline": "A comfortable afternoon, clear"
    },
    "week": {
      "body": [],
      "hazard": false
    }
  },
  "nowcast": [
    {
      "cape": 0,
      "dewpoint": 283.7,
      "forecast_hour": 1,
      "local_time": "2026-11-09T13:00:00-06:00",
      "precip_amount": 0,
      "pressure": 102000,
      "reflectivity": -10,
      "surface_pressure": 97920,
      "temperature": 293.9,
      "utc_offset_seconds": -21600,
      "valid_time": "2026-11-09T19:00:00Z",
      "wind_direction": 218,
      "wind_direction_cardinal": "SW",
      "wind_speed": 4.783
    }
  ],
  "server_time": "2026-11-09T19:07:20Z",
  "units": {
    "hourly": {
      "temperature": {
        "description": "2 m air temperature.",
        "label": "K",
        "unit": "K"
      }
    },
    "nowcast": {
      "pressure": {
        "description": "Mean sea level pressure.",
        "label": "Pa",
        "unit": "Pa"
      }
    },
    "source": "explicit",
    "system": "si"
  }
}

Errors

Status Meaning
404 {"detail": "No place matched 'xyz'"} for a q with no match, or {"detail": "Unknown location id"} for a location_id that matches nothing.
422 {"detail": "Give lat and lon, or location_id, or q."} when none of the three ways to name the point is given. A bad value in any parameter returns the list form.
422 {"detail": "Unknown include x; choose from severe, upper_air."} for an include value that is not severe or upper_air.

Plus the common errors every route can return (400 key_in_query, 401, 403, 429, 500).

Caching and limits

Cache-Control: public, max-age=300. When units is auto and your country is known from the request, the answer depends on the caller, so it is sent private, max-age=300 with Vary: CF-IPCountry; pass units explicitly for a response a shared cache can hold. Under /v1 the header is always private. There is no ETag, so no 304; cache for the max-age and ask again after it.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.