Skip to content

Climate projection by year, 1950-2050

$0.005 per callUSDC via x402GET /api/climate-projection

Climate model projection for any point on land, 1950 to 2050: for each year, the median and range across seven CMIP6 high-resolution models of one measure...

Category: Live public dataTags: climate projection cmip6 climate-risk temperature precipitation weather

Try in playground →

Details

Climate model projection for any point on land, 1950 to 2050: for each year, the median and range across seven CMIP6 high-resolution models of one measure (mean, high or low temperature with hot or frost days, or precipitation with heavy-rain days and the longest dry spell), plus each model's mean over the period. Up to 10 years a call, by coordinates, read at the 0.25 degree cell. Model output on a high-emissions pathway, not a forecast or advice. ?lat=41.88&lon=-87.63&startYear=2041&endYear=2050&variable=temperature_max. Weather data by Open-Meteo.com (CC BY 4.0). Climate model data from the CMIP6 program (CC BY 4.0).

Parameters

NameTypeRequiredDescription
latnumberyesLatitude, -90 to 90 Also accepted as latitude. The example sends 41.8781.
lonnumberyesLongitude, -180 to 180 Also accepted as lng, long, longitude. The example sends -87.6298.
startYearintegernoFirst year, 1950 to 2050 (default: 9 years before endYear) The example sends 2041.
endYearintegernoLast year, 1950 to 2050 (default 2050); at most 10 years in all The example sends 2050.
variablestring (one of: temperature_mean, temperature_max, temperature_min, precipitation)noThe measure: temperature_mean (default), temperature_max (with hot days), temperature_min (with frost days) or precipitation (with heavy-rain days and the longest dry spell) One of temperature_mean, temperature_max, temperature_min, precipitation.
unitsstringnocelsius (default) or fahrenheit for temperatures; precipitation in mm

Example request

curl -i "https://agent402.tools/api/climate-projection?lat=41.8781&lon=-87.6298&startYear=2041&endYear=2050&variable=temperature_max"

Watch a call get paid

RequestGET /api/climate-projection
402$0.005 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "lat": 41.8781,
  "lon": -87.6298,
  "cell": {
    "lat": 42,
    "lon": -87.75
  },
  "variable": "temperature_max",
  "startYear": 2041,
  "endYear": 2050,
  "units": "°C",
  "metrics": {
    "mean": "annual mean of the daily high",
    "hotDays": "days with a high of 30 °C (86 °F) or more"
  },
  "summary": {
    "models": 6,
    "mean": {
      "median": 15.6,
      "min": 15.3,
      "max": 16
    },
    "hotDays": {
      "median": 44.4,
      "min": 37.1,
      "max": 48.2
    }
  },
  "years": [
    {
      "year": 2041,
      "models": 7,
      "mean": {
        "median": 15.3,
        "min": 15,
        "max": 16.7
      },
      "hotDays": {
        "median": 43,
        "min": 31,
        "max": 61
      }
    }
  ],
  "models": [
    {
      "model": "CMCC-CM2-VHR4",
      "institution": "Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici (Italy)",
      "years": 10,
      "mean": 16,
      "hotDays": 41.7
    }
  ],
  "coverage": {
    "returned": 69,
    "matched": 70,
    "complete": false,
    "truncated": true,
    "missing": [
      {
        "model": "EC-Earth3P-HR",
        "years": [
          2050
        ]
      }
    ]
  },
  "kind": "climate model output",
  "note": "Climate model output, not a forecast, a measurement or advice: seven CMIP6 HighResMIP model runs on a high-emissions pathway (close to RCP8.5), downscaled and bias-corrected by Open-Meteo. A single year is one model's weather, not a prediction for that year; compare multi-year periods and read the range across models.",
  "source": "climate-api.open-meteo.com (CC BY 4.0)",
  "credit": "Climate model data from the CMIP6 program of the World Climate Research Programme (HighResMIP runs by the modeling groups named in this answer, CC BY 4.0), downscaled by Open-Meteo and aggregated by year for this answer. The modeling groups and data providers make no warranty, express or implied.",
  "attributionText": "Weather data by Open-Meteo.com (CC BY 4.0).",
  "sourceUrl": "https://open-meteo.com/",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
}
FieldTypeAlways presentIn the example
latnumberyes41.8781
lonnumberyes-87.6298
cellobjectyes2 fields: lat, lon
variablestringyestemperature_max
startYearnumberyes2041
endYearnumberyes2050
unitsstringyes°C
metricsobjectyes2 fields: mean, hotDays
summaryobjectyes3 fields: models, mean, hotDays
yearsarray of objectsyes1 item in the example
modelsarray of objectsyes1 item in the example
coverageobjectyes5 fields: returned, matched, complete, truncated, missing
kindstringyesclimate model output
notestringyesClimate model output, not a forecast, a measurement or advice: seven CMIP6 Hi...
sourcestringyesclimate-api.open-meteo.com (CC BY 4.0)
creditstringyesClimate model data from the CMIP6 program of the World Climate Research Progr...
attributionTextstringyesWeather data by Open-Meteo.com (CC BY 4.0).
sourceUrlstringyeshttps://open-meteo.com/
licenseUrlstringyeshttps://creativecommons.org/licenses/by/4.0/

From an MCP client

catalog.call {
  "slug": "climate-projection",
  "params": {
    "lat": 41.8781,
    "lon": -87.6298,
    "startYear": 2041,
    "endYear": 2050,
    "variable": "temperature_max"
  }
}

Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.19.2): pays from a wallet or AGENT402_CREDITS_KEY.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.005" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/climate-projection?lat=41.8781&lon=-87.6298&startYear=2041&endYear=2050&variable=temperature_max");

Get a wallet or run npx -y agent402-mcp@0.19.2 wallet new.

The quote (Python)

import base64, json, urllib.error, urllib.request

req = urllib.request.Request("https://agent402.tools/api/climate-projection?lat=41.8781&lon=-87.6298&startYear=2041&endYear=2050&variable=temperature_max", method="GET", headers={})
try:
    urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
    quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
    print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]])  # the price, per chain, in base units

Guides that use this tool

Related tools