Aller au contenu
GET /v1/summary

Period summary statistics

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/weatherhistory-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}