Zum Inhalt springen
GET /v1/summary

Period summary statistics

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/weatherhistory-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}