docsendpointsaccuracy-by-city
Accuracy By City
GET
/api/v1/accuracy/by-cityAccuracy stats aggregated by city. Filter by date range, station, or city name. Supports minimum sample size filtering and sorting by mae, count, mean_error, city, or rmse. CSV export available.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
days | integer | optional | Rolling window Default: 90 |
date_from | YYYY-MM-DD | optional | Window start |
date_to | YYYY-MM-DD | optional | Window end |
station_id | string | optional | Filter to one station |
city | string | optional | Filter by city name |
min_samples | integer | optional | Exclude cities with fewer samples Default: 0 |
sort_by | string | optional | mae, count, mean_error, city, or rmse |
format | string | optional | json or csv Default: json |
metric | string | optional | high (default) or low — daily high vs daily low verification Default: high |
Response Fields
| Field | Type | Description |
|---|---|---|
station_id | string | ICAO station identifier |
city_name | string | City display name |
sample_size | integer | Total verification pairs |
stats | object | { verification_pairs, unique_days, mean_error, std_dev, mae, rmse } |
cURL
curl -s -H "Authorization: Bearer $API_KEY" "https://api.deltadaemon.com/api/v1/accuracy/by-city?days=30&min_samples=20&sort_by=mae"
JSON
{"success": true,"data": [{"station_id": "KSFO","city_name": "San Francisco","stats": {"verification_pairs": 32,"unique_days": 4,"mean_error": -1.34,"std_dev": 1.49,"mae": 1.47,"rmse": 1.99,"abs_error_p50": 1,"abs_error_p90": 3,"abs_error_p95": 4},"sample_size": 32}],"metadata": {"generated_at": "2026-02-22T07:54:59.92025321Z","days_analyzed": 30,"period_start": "2026-01-23","period_end": "2026-02-22","total_records": 872,"query_time_ms": 4}}