Skip to content
Fourohtwo

Fetch independent U.S

agent-evidence-extractor.defcronyke.workers.dev/v1/weather-batch

Fetch independent U.S. National Weather Service hourly or 12-hour forecasts and optional active alerts for 2 to 5 U.S. locations in one paid request. Useful for comparing weather along a trip or across several sites. Costs $0.01 per batch; no model calls.

BaseUnchecked
POSThttps://agent-evidence-extractor.defcronyke.workers.dev/v1/weather-batch

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-evidence-extractor.defcronyke.workers.dev/v1/weather-batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"periods":3,"locations":[{"latitude":39.7456,"longitude":-97.0892},{"latitude":38.627,"longitude":-90.1994}],"forecast_type":"hourly","include_alerts":false}),
});
console.log(await res.json());

Example input

{
  "periods": 3,
  "locations": [
    {
      "latitude": 39.7456,
      "longitude": -97.0892
    },
    {
      "latitude": 38.627,
      "longitude": -90.1994
    }
  ],
  "forecast_type": "hourly",
  "include_alerts": false
}