Global weather forecast for latitude and longitude
wallet-services-poc-clean.3hz-services.workers.dev/weather
Global weather forecast for latitude and longitude. Returns the forecast valid now, all available hourly forecast points, and the extended forecast in native 6-hour periods without inventing hourly precision. Data source: MET Norway Locationforecast 2.0.
GET
https://wallet-services-poc-clean.3hz-services.workers.dev/weatherUptime100% of 3 checks in 30 days
30 days agoToday
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://wallet-services-poc-clean.3hz-services.workers.dev/weather?lat=0&lon=0");
console.log(await res.json());Example input
{
"lat": 0,
"lon": 0
}