Skip to content
Fourohtwo

api.macaroonnetwork.com/execute/us-weather-forecast-alerts-v1

Live multi-day forecast and currently active weather alerts (severe thunderstorm, flood, winter storm, etc.) for a single latitude/longitude point, from the U.S. National Weather Service's own public API (api.weather.gov). Coverage is limited to the United States, its territories, and adjacent coastal/marine zones -- api.weather.gov has no data for points outside that area.

BaseAnswering
POSThttps://api.macaroonnetwork.com/execute/us-weather-forecast-alerts-v1

Uptime100% of 1 check in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.macaroonnetwork.com/execute/us-weather-forecast-alerts-v1", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":{"filters":{"periods_limit":5},"latitude":38.8894,"longitude":-77.0352},"predicate":{"conditions":[{"field":"$.forecast","type":"count_gte","value":1}],"type":"all"}}),
});
console.log(await res.json());

Example input

{
  "input": {
    "filters": {
      "periods_limit": 5
    },
    "latitude": 38.8894,
    "longitude": -77.0352
  },
  "predicate": {
    "conditions": [
      {
        "field": "$.forecast",
        "type": "count_gte",
        "value": 1
      }
    ],
    "type": "all"
  }
}

More from Macaroon NetworkProvider status