Cumulative population exposure for a risk-zone product.
Changed onReturns the total population inside all risk-band polygons at or above a threshold level for a risk-zone product's latest issuance — the data behind headlines like "~57M under major heat risk".
Generic across every product that publishes risk-band polygons with a population per band (NWS HeatRisk, WPC excessive rainfall, WPC winter storm severity, SPC outlooks). Each band's population is the people in its exclusive ring: the band less every band of a higher level. So the >= min_level total is the population of the union of those bands, whether the source draws them side by side or layered (a higher level inside a lower), never counted twice. A significance overlay (SPC's hatched significant-severe area) is not a level and is never summed.
The issuance is the one in force, the same one /v1/outlooks answers for the SPC and WPC outlooks: an issuance that drew no areas is a true 0 dated by that issuance, and one whose period has ended is never current.
Withheld totals
A total that would be wrong is withheld, never approximated: population is null and unavailable says why. no_current_issuance: no issuance is in force (the last one has ended or aged out). no_population: a band at or above min_level carries no population, so the sum would undercount. population_not_exclusive: a band was counted whole (an issuance written before ring counting), so overlapping bands would count people twice; the product's next issuance clears it. For the last two, unavailable.detail names the get_data read that answers it (a block-group population sum over the dissolved bands). An issuance in force with no band at or above min_level is a true 0.
A product that is not a risk-zone product with a population per band (see GET /v1/catalog), or a valid_time that names no issuance, is a 404. A valid_time naming an issuance that drew no areas is a 0.
Parameters
min_level is the inclusive cumulative threshold on the ordinal risk_level (e.g. HeatRisk 3 = Major and above). When omitted the upstream default (1, any elevated risk) applies. valid_time selects a specific issuance (RFC3339); omit it for the latest.
Caching
Successful responses carry Cache-Control: public, max-age=60, stale-while-revalidate=60. Edge cache key includes the query string so each min_level / valid_time variant gets its own TTL.
Auth
Standard sw-api Bearer auth applies.
Request
- Base URLhttps://api.smarterweather.com
- AuthHTTP bearer
Path parameters
Risk-zone product identifier (lowercase, digits, underscores), e.g. heatrisk_day1_conus.
Query parameters
Inclusive cumulative threshold on the ordinal risk_level.
RFC3339 issuance (valid_time) to summarize. Defaults to the latest.
Response
Cumulative population-exposure summary.
Total population under risk_level >= min_level. null when the sum would be wrong; unavailable says why.
Number of risk-band polygons at or above min_level.
Issuance the summary was computed for (null if no features).
Present only when population is null.
Example response
{
"product_id": "heatrisk_day1_conus",
"min_level": 3,
"population": 57000000,
"feature_count": 2,
"valid_time": "2026-06-30T22:00:00Z",
"unavailable": {
"detail": "2 of the 2 ero_day1 bands at 2026-11-09T15:59:00Z carry no population, so the sum would undercount. Read it as get_data {select: [\"census_block_groups:population\"], area: {product: \"ero_day1\", filter: [\"risk_level >= 1\"]}, stats: [\"sum\"]}."
}
}Changes
- info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status
6 more changes in this revision
- info