Aller au contenu
GET /v1/annual

Per-year temperature & precipitation trend

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/climateprojections-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/climateprojections-api/v1/annual" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/climateprojections-api/v1/annual", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/climateprojections-api/v1/annual");
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/climateprojections-api/v1/annual",
    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": {
        "model": "EC_Earth3P_HR",
        "years": [
            {
                "year": 2025,
                "mean_temperature_c": 10.8,
                "total_precipitation_mm": 888
            },
            {
                "year": 2026,
                "mean_temperature_c": 11.4,
                "total_precipitation_mm": 529
            },
            {
                "year": 2027,
                "mean_temperature_c": 10.5,
                "total_precipitation_mm": 801
            },
            {
                "year": 2028,
                "mean_temperature_c": 11,
                "total_precipitation_mm": 630
            },
            {
                "year": 2029,
                "mean_temperature_c": 10.3,
                "total_precipitation_mm": 636
            },
            {
                "year": 2030,
                "mean_temperature_c": 12.4,
                "total_precipitation_mm": 538
            },
            {
                "year": 2031,
                "mean_temperature_c": 11.6,
                "total_precipitation_mm": 570
            },
            {
                "year": 2032,
                "mean_temperature_c": 11,
                "total_precipitation_mm": 635
            },
            {
                "year": 2033,
                "mean_temperature_c": 10.9,
                "total_precipitation_mm": 552
            },
            {
                "year": 2034,
                "mean_temperature_c": 10.9,
                "total_precipitation_mm": 651
            },
            {
                "year": 2035,
                "mean_temperature_c": 10.7,
                "total_precipitation_mm": 615
            },
            {
                "year": 2036,
                "mean_temperature_c": 10.8,
                "total_precipitation_mm": 655
            },
            {
                "year": 2037,
                "mean_temperature_c": 10.5,
                "total_precipitation_mm": 549
            },
            {
                "year": 2038,
                "mean_temperature_c": 10,
                "total_precipitation_mm": 649
            },
            {
                "year": 2039,
                "mean_temperature_c": 10.8,
                "total_precipitation_mm": 884
            },
            {
                "year": 2040,
                "mean_temperature_c": 11.6,
                "total_precipitation_mm": 647
            },
            {
                "year": 2041,
                "mean_temperature_c": 10.8,
                "total_precipitation_mm": 607
            },
            {
                "year": 2042,
                "mean_temperature_c": 11.1,
                "total_precipitation_mm": 680
            },
            {
                "year": 2043,
                "mean_temperature_c": 11.2,
                "total_precipitation_mm": 600
            },
            {
                "year": 2044,
                "mean_temperature_c": 11.5,
                "t
…