← All 28 APIs · Home · Swagger / OpenAPI · x402 Manifest
$0.005 USDC / callData/UtilityBase & Polygon x402 v2

GPU-x402 Global Live Weather & 7-Day Forecast

Sub-second Open-Meteo live weather & 7-day forecast by city or lat/lon: temperature, humidity, wind, UV index & rain probability ($0.005 USDC).

Endpoint & Settlement Specs

x402 Endpoint: POST https://agentx402.fyi/x402/weather/forecast
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)

Quickstart (cURL — Returns x402 v2 Invoice + Bazaar Schema)

curl -i -X POST https://agentx402.fyi/x402/weather/forecast \
  -H 'Content-Type: application/json' \
  -d '{"city": "New York", "days": 5, "unit": "celsius"}'

TypeScript Autonomous Agent (@x402/fetch)

import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/weather/forecast", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"city": "New York", "days": 5, "unit": "celsius"})
});
console.log(await res.json());

Example JSON Input

{
  "city": "New York",
  "days": 5,
  "unit": "celsius"
}

Example JSON Output

{
  "location": {
    "name": "New York",
    "country": "United States",
    "latitude": 40.71,
    "longitude": -74.01,
    "timezone": "America/New_York"
  },
  "current": {
    "temperature": 12.4,
    "humidity_pct": 61,
    "condition": "Partly cloudy",
    "wind_speed": 14.2
  },
  "daily": [
    {
      "date": "2026-12-01",
      "temp_max": 14.1,
      "temp_min": 6.8,
      "precipitation_prob_max_pct": 20,
      "condition": "Partly cloudy"
    }
  ]
}