Skip to content

Seasonal outlook (weekly and monthly)

$0.005 per callUSDC via x402GET /api/seasonal-outlook

Seasonal outlook for any place: weekly for about 6 weeks or monthly for about 6 months...

Category: Live public dataTags: weather seasonal outlook long-range anomaly agriculture energy

Try in playground →

Details

Seasonal outlook for any place: weekly for about 6 weeks or monthly for about 6 months, each period's mean temperature and precipitation and their anomaly against the model's own climate for that time of year, from the ECMWF extended-range and seasonal ensembles. By coordinates or place name. Cached for up to 60 minutes. ?place=Des Moines&period=monthly. Weather data by Open-Meteo.com (CC BY 4.0). Based on ECMWF data (www.ecmwf.int).

Parameters

NameTypeRequiredDescription
latnumbernoLatitude, -90 to 90 (with lon; wins over place) The example sends 41.5868.
lonnumbernoLongitude, -180 to 180 (with lat) The example sends -93.625.
placestringnoA city, town or region name instead of lat/lon, for example "Paris" or "Austin, TX" (not a street address); the answer echoes the place it resolved to Up to 100 characters.
periodstring (one of: weekly, monthly)noweekly (default; about 6 weeks) or monthly (about 6 months) One of weekly, monthly.
unitsstringnocelsius (default) or fahrenheit; precipitation in mm per period

Example request

curl -i "https://agent402.tools/api/seasonal-outlook?lat=41.5868&lon=-93.625&period=monthly"

Watch a call get paid

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

Example response

{
  "lat": 41.5868,
  "lon": -93.625,
  "period": "monthly",
  "units": "°C",
  "periods": [
    {
      "start": "2026-12-01",
      "tempMean": -3.9,
      "tempAnomaly": 1.2,
      "precipitation": 31.4,
      "precipitationAnomaly": 4.1
    }
  ],
  "method": "Each anomaly is the ensemble mean against the model's own climate for the same weeks or months of the year. Raw model output at the grid point.",
  "source": "seasonal-api.open-meteo.com (ECMWF, CC BY 4.0)",
  "credit": "This service is based on data and products of the European Centre for Medium-Range Weather Forecasts (ECMWF). Source www.ecmwf.int. ECMWF does not accept any liability whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their use.",
  "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.5868
lonnumberyes-93.625
periodstringyesmonthly
unitsstringyes°C
periodsarray of objectsyes1 item in the example
methodstringyesEach anomaly is the ensemble mean against the model's own climate for the sam...
sourcestringyesseasonal-api.open-meteo.com (ECMWF, CC BY 4.0)
creditstringyesThis service is based on data and products of the European Centre for Medium-...
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": "seasonal-outlook",
  "params": {
    "lat": 41.5868,
    "lon": -93.625,
    "period": "monthly"
  }
}

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/seasonal-outlook?lat=41.5868&lon=-93.625&period=monthly");

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/seasonal-outlook?lat=41.5868&lon=-93.625&period=monthly", 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

Part of these workflows

Guides that use this tool

Related tools