/v1/summary
Period summary statistics
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/weatherhistory-api/v1/summary" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weatherhistory-api/v1/summary", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weatherhistory-api/v1/summary");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/weatherhistory-api/v1/summary",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"end": "2023-03-31",
"days": 90,
"start": "2023-01-01",
"latitude": 52.54833,
"timezone": "Europe/Berlin",
"longitude": 13.407822,
"temperature_c": {
"mean": 4.2,
"lowest": {
"date": "2023-02-07",
"value": -7.8
},
"highest": {
"date": "2023-03-18",
"value": 17.2
}
},
"precipitation_mm": {
"total": 201,
"wet_days": 45,
"daily_avg": 2.2
}
},
"meta": {
"timestamp": "2026-05-30T18:16:58.602Z",
"request_id": "bb038359-f29c-4330-903d-8b9149e3eda4"
},
"status": "ok",
"message": "Summary retrieved",
"success": true
}