docsadvancedhit-rate
Hit Rate
GET
/api/v1/accuracy/hit-rateHow 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
| Name | Type | Required | Description |
|---|---|---|---|
station_id | string | optional | ICAO station (omit for all stations) |
city | string | optional | City name (resolves to station) |
days | integer | optional | Rolling window Default: 90 |
metric | string | optional | high (default) or low Default: high |
Response Fields
| Field | Type | Description |
|---|---|---|
station_id | string | ICAO station identifier |
city_name | string | City display name |
total_days | integer | Total days with forecast-actual pairs |
exact_hits | integer | Days where ROUND(forecast) = ROUND(actual) |
within_1 | integer | Days where |error| <= 1°F |
within_2 | integer | Days where |error| <= 2°F |
exact_rate | float | exact_hits / total_days (0–1) |
within_1_rate | float | within_1 / total_days (0–1) |
within_2_rate | float | within_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}}}