Skip to content

Wind power forecast

$0.004 per callUSDC via x402GET /api/wind-power-forecast

Wind power forecast for any place for the next 1-16 days...

Category: Live public dataTags: weather wind wind-power energy forecast turbine

Try in playground →

Details

Wind power forecast for any place for the next 1-16 days: hub-height wind at 80, 120 or 180 m and the energy and capacity factor of a generic turbine power curve you can tune (cut-in, rated and cut-out speeds), by day and in total, with the hours above cut-out. By coordinates or place name. Cached for up to 5 minutes. ?place=Amarillo&days=7&hubHeight=120&capacityKw=3000. Weather data by Open-Meteo.com (CC BY 4.0).

Parameters

NameTypeRequiredDescription
latnumbernoLatitude, -90 to 90 (with lon; wins over place) The example sends 35.222.
lonnumbernoLongitude, -180 to 180 (with lat) The example sends -101.8313.
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.
daysnumbernoForecast days, 1-16 (default 7) The example sends 7.
hubHeightnumber (one of: 80, 120, 180)noHub height in meters: 80, 120 (default) or 180 One of 80, 120, 180.
capacityKwnumbernoRated power in kW, 0.001-10000000 (default 1000) The example sends 3000.
cutInnumbernoCut-in wind speed, m/s (default 3)
ratednumbernoRated wind speed, m/s (default 12)
cutOutnumbernoCut-out wind speed, m/s (default 25)

Example request

curl -i "https://agent402.tools/api/wind-power-forecast?lat=35.222&lon=-101.8313&days=7&hubHeight=120&capacityKw=3000"

Watch a call get paid

RequestGET /api/wind-power-forecast
402$0.004 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "lat": 35.222,
  "lon": -101.8313,
  "timezone": "America/Chicago",
  "turbine": {
    "hubHeight": 120,
    "capacityKw": 3000,
    "cutIn": 3,
    "rated": 12,
    "cutOut": 25
  },
  "totals": {
    "energyKwh": 201600,
    "capacityFactor": 0.4,
    "hours": 168,
    "hoursAboveCutOut": 0
  },
  "days": [
    {
      "date": "2026-12-01",
      "meanWindMs": 9.2,
      "maxWindMs": 14.1,
      "energyKwh": 34200,
      "capacityFactor": 0.475,
      "hoursAboveCutOut": 0
    }
  ],
  "method": "A generic power curve, not a named turbine's: no output below cutIn or above cutOut, full output from rated to cutOut, and output rising with the cube of wind speed between cutIn and rated. Hourly wind at hub height from the forecast; no wake, availability or loss factors.",
  "source": "api.open-meteo.com (CC BY 4.0)",
  "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
latnumberyes35.222
lonnumberyes-101.8313
timezonestringyesAmerica/Chicago
turbineobjectyes5 fields: hubHeight, capacityKw, cutIn, rated, cutOut
totalsobjectyes4 fields: energyKwh, capacityFactor, hours and 1 more
daysarray of objectsyes1 item in the example
methodstringyesA generic power curve, not a named turbine's: no output below cutIn or above ...
sourcestringyesapi.open-meteo.com (CC BY 4.0)
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": "wind-power-forecast",
  "params": {
    "lat": 35.222,
    "lon": -101.8313,
    "days": 7,
    "hubHeight": 120,
    "capacityKw": 3000
  }
}

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.004" }); // 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/wind-power-forecast?lat=35.222&lon=-101.8313&days=7&hubHeight=120&capacityKw=3000");

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/wind-power-forecast?lat=35.222&lon=-101.8313&days=7&hubHeight=120&capacityKw=3000", 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