Naar de inhoud
GET /v1/summary

Period summary statistics

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/weatherhistory-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}