Skip to content

Heat index and wind chill calculator

FREE with proof-of-workor $0.001 in USDCGET /api/heat-index-calc

Heat index, wind chill, humidex, dew point and wet-bulb temperature from the temperature, humidity and wind you supply. Send GET /api/heat-index-calc with the required fields temperature and humidity and pay $0.001 per call over x402 or MPP, or call it free by solving a proof-of-work challenge. It returns a JSON object with temperature, humidity, windSpeed, unit, windUnit and 8 more.

Heat index and wind chill follow the US National Weather Service formulas, with the heat index chart's published band; humidex follows Environment Canada; wet bulb is the Stull approximation. Each value says when its formula does not apply. Celsius or Fahrenheit.

Category: Live public dataTags: weather heat-index wind-chill humidex dew-point wet-bulb calculator

Try in playground →

Parameters

NameTypeRequiredDescription
temperaturenumberyesAir temperature, in units
humiditynumberyesRelative humidity, 1-100 percent
windSpeednumbernoWind speed for wind chill: km/h, or mph with units=fahrenheit (optional)
unitsstringnocelsius (default; wind in km/h) or fahrenheit (wind in mph)

Example request

curl -i "https://agent402.tools/api/heat-index-calc?temperature=35&humidity=60&windSpeed=10"

Without payment this returns HTTP 402 Payment Required with the exact price for heat-index-calc; any x402 v2 or MPP client pays it and retries.

Example response

{
  "temperature": 35,
  "humidity": 60,
  "windSpeed": 10,
  "unit": "°C",
  "windUnit": "km/h",
  "heatIndex": 45.1,
  "heatIndexBand": "Danger",
  "humidex": 48.5,
  "dewPoint": 26.1,
  "wetBulb": 28.5,
  "windChill": null,
  "windChillNote": "Wind chill is defined for 10 °C (50 °F) or colder with wind above 4.8 km/h (3 mph).",
  "methods": {
    "heatIndex": "US National Weather Service (Rothfusz regression with adjustments)",
    "windChill": "US National Weather Service (2001)",
    "humidex": "Environment Canada",
    "dewPoint": "Magnus formula",
    "wetBulb": "Stull (2011)"
  }
}
FieldTypeAlways presentIn the example
temperaturenumberyes35
humiditynumberyes60
windSpeednumberyes10
unitstringyes°C
windUnitstringyeskm/h
heatIndexnumberyes45.1
heatIndexBandstringyesDanger
humidexnumberyes48.5
dewPointnumberyes26.1
wetBulbnumberyes28.5
windChillnullnonull
windChillNotestringyesWind chill is defined for 10 °C (50 °F) or colder with wind above 4.8 km/h (3...
methodsobjectyes5 fields: heatIndex, windChill, humidex, dewPoint, wetBulb

From an MCP client

catalog.call {
  "slug": "heat-index-calc",
  "params": {
    "temperature": 35,
    "humidity": 60,
    "windSpeed": 10
  }
}

On the hosted connector at https://agent402.tools/mcp, catalog.call runs heat-index-calc free (rate-limited, no wallet). Local install: npx -y agent402-mcp@0.13.32.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.001" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/heat-index-calc?temperature=35&humidity=60&windSpeed=10");

No wallet? Pay with compute

Fetch a challenge, solve the sha256 puzzle (16 leading zero bits, a fraction of a second of CPU), and resend with the X-Pow-Solution header:

import { createHash } from "node:crypto";
const lz = (b) => { let t = 0; for (const x of b) { if (!x) { t += 8; continue; } t += Math.clz32(x) - 24; break; } return t; };
const c = await (await fetch("https://agent402.tools/api/pow/challenge?slug=heat-index-calc")).json();
let n = 0;
while (lz(createHash("sha256").update(c.challenge + ":" + n).digest()) < c.difficulty) n++;
await fetch("https://agent402.tools/api/heat-index-calc?temperature=35&humidity=60&windSpeed=10", { method: "GET", headers: { "X-Pow-Solution": c.token + ":" + n } });

Related tools

AQI calculator (US EPA)

FREE w/ computeor $0.001GET /api/aqi-calc

US EPA Air Quality Index from the pollutant concentrations you supply: PM2.5 and PM10 (µg/m³, 24-hour), ozone (ppb.

Degree days calculator

FREE w/ computeor $0.001POST /api/degree-days-calc

Heating, cooling and growing degree days from a daily temperature series you supply: daily means, or min/max pairs (the.

Air quality (global)

$0.002GET /api/weather-air-quality

Air quality index and current pollutant concentrations for any location: US AQI, PM2.5, PM10, ozone, NO2, SO2, CO.

US weather alerts

$0.002GET /api/weather-alerts

Active National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas.

Current weather (global)

$0.002GET /api/weather-current

Current weather conditions for any location on Earth: temperature, feels-like, humidity, wind speed/direction/gusts.

Daily forecast (global)

$0.002GET /api/weather-daily

7-day daily weather forecast for any location: high/low temp, precipitation sum and probability, max wind, UV index.