docsadvancedhit-rate

Hit Rate

GET/api/v1/accuracy/hit-rate

How often the NWS daily high or low forecast matches the observed value (rounded to nearest degree), per metric=high (default) or metric=low. Also returns ±1°F and ±2°F accuracy rates. Omit station_id for all stations.

Parameters

NameTypeRequiredDescription
station_idstringoptionalICAO station (omit for all stations)
citystringoptionalCity name (resolves to station)
daysintegeroptionalRolling window Default: 90
metricstringoptionalhigh (default) or low Default: high

Response Fields

FieldTypeDescription
station_idstringICAO station identifier
city_namestringCity display name
total_daysintegerTotal days with forecast-actual pairs
exact_hitsintegerDays where ROUND(forecast) = ROUND(actual)
within_1integerDays where |error| <= 1°F
within_2integerDays where |error| <= 2°F
exact_ratefloatexact_hits / total_days (0–1)
within_1_ratefloatwithin_1 / total_days (0–1)
within_2_ratefloatwithin_2 / total_days (0–1)
cURL
curl -s -H "Authorization: Bearer $API_KEY" "https://api.deltadaemon.com/api/v1/accuracy/hit-rate?days=90"
JSON
{
"success": true,
"data": [
{
"station_id": "KLAX",
"city_name": "Los Angeles",
"total_days": 87,
"exact_hits": 19,
"within_1": 52,
"within_2": 71,
"exact_rate": 0.2184,
"within_1_rate": 0.5977,
"within_2_rate": 0.8161
}
],
"metadata": {
"generated_at": "2026-03-01T12:00:00Z",
"days_analyzed": 90,
"total_records": 20,
"query_time_ms": 5,
"verification_coverage": {
"verified_days": 85,
"preliminary_days": 5,
"verified_pct": 0.9444
}
}
}