Sub-second Open-Meteo live weather & 7-day forecast by city or lat/lon: temperature, humidity, wind, UV index & rain probability ($0.005 USDC).
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)
curl -i -X POST https://agentx402.fyi/x402/weather/forecast \
-H 'Content-Type: application/json' \
-d '{"city": "New York", "days": 5, "unit": "celsius"}'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());{
"city": "New York",
"days": 5,
"unit": "celsius"
}{
"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"
}
]
}