Aller au contenu
GET /v1/climatology

Long-term monthly solar & climate normals

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/solar-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/solar-api/v1/climatology" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solar-api/v1/climatology", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solar-api/v1/climatology");
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/solar-api/v1/climatology",
    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": {
        "type": "climatology",
        "location": {
            "lat": 52.52,
            "lon": 13.41
        },
        "parameters": {
            "T2M": {
                "name": "Temperature at 2 m",
                "units": "C",
                "monthly": {
                    "ANN": 9.68,
                    "APR": 9.13,
                    "AUG": 19.92,
                    "DEC": 0.86,
                    "FEB": 0.4,
                    "JAN": -0.73,
                    "JUL": 20.47,
                    "JUN": 18.26,
                    "MAR": 3.74,
                    "MAY": 14.05,
                    "NOV": 4.56,
                    "OCT": 9.66,
                    "SEP": 15.28
                }
            },
            "RH2M": {
                "name": "Relative humidity 2 m",
                "units": "%",
                "monthly": {
                    "ANN": 79.79,
                    "APR": 77.46,
                    "AUG": 66.18,
                    "DEC": 94.15,
                    "FEB": 90.48,
                    "JAN": 93.7,
                    "JUL": 65,
                    "JUN": 65.98,
                    "MAR": 85.08,
                    "MAY": 72.78,
                    "NOV": 92.16,
                    "OCT": 83.25,
                    "SEP": 71.83
                }
            },
            "WS10M": {
                "name": "Wind speed at 10 m",
                "units": "m/s",
                "monthly": {
                    "ANN": 4.51,
                    "APR": 4.32,
                    "AUG": 3.91,
                    "DEC": 5.1,
                    "FEB": 5.03,
                    "JAN": 5.24,
                    "JUL": 4.09,
                    "JUN": 4.19,
                    "MAR": 4.85,
                    "MAY": 4.21,
                    "NOV": 4.6,
                    "OCT": 4.44,
                    "SEP": 4.14
                }
            },
            "PRECTOTCORR": {
                "name": "Precipitation (corrected)",
                "units": "mm/day",
                "monthly": {
                    "ANN": 1.65,
                    "APR": 0.95,
                    "AUG": 1.87,
                    "DEC": 1.55,
                    "FEB": 1.36,
                    "JAN": 1.75,
                    "JUL": 2.6,
                    "JUN": 1.89,
                    "MAR": 1.3,
                    "MAY": 1.71,
                    "NOV": 1.62,
                    "OCT": 1.57,
                    "SEP": 1.62
                }
            },
            "ALLSKY_SFC_SW_DWN": {
                "name": "Global horizontal irradiance (GHI)",
                "units": "kW-hr/m^2/day",
                "monthly": {
                    "ANN": 2.8318,
                    "APR": 4.0358,
                    "AUG": 4.2439,
                    "DEC": 0.4817,
                    "FEB": 1.3474,
                    "JAN": 0.6442,
                    "JUL": 4.9445,
                    "JUN": 5.2846,
           
…