78trust / 100
Execute Us Weather Forecast Alerts V1
by Macaroon Network in Weather & location
x402 APIPassing, checked 2 h ago
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.
POST https://api.macaroonnetwork.com/execute/us-weather-forecast-alerts-v1
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 217 ms typical, 317 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.macaroonnetwork.com/execute/us-weather-forecast-alerts-v1" \
-H "content-type: application/json" \
-d '{"input":{"filters":{"periods_limit":5},"latitude":38.8894,"longitude":-77.0352},"predicate":{"conditions":[{"field":"$.forecast","type":"count_gte","value":1}],"type":"all"}}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.macaroonnetwork.com%2Fexecute%2Fus-weather-forecast-alerts-v1
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"
}
}Example output
{
"payload": {
"alerts": [],
"content_hash": "",
"forecast": [],
"forecast_updated": "",
"latitude": 0,
"longitude": 0,
"notices": [],
"provenance": {
"fetched_at": "",
"licence": "",
"source": "",
"source_url": ""
}
},
"predicate_passed": true,
"settled": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 107 ms | $0.002 |
| 5 h ago | Passed | 402 | 217 ms | $0.002 |
| 9 h ago | Passed | 402 | 95 ms | $0.002 |
| 12 h ago | Passed | 402 | 225 ms | $0.002 |
| 16 h ago | Passed | 402 | 214 ms | $0.002 |
| 19 h ago | Passed | 402 | 146 ms | $0.002 |
| 24 h ago | Passed | 402 | 258 ms | $0.002 |
| 27 h ago | Passed | 402 | 218 ms | $0.002 |
| 30 h ago | Passed | 402 | 157 ms | $0.002 |
| 35 h ago | Passed | 402 | 317 ms | $0.002 |
| 37 h ago | Passed | 402 | 261 ms | $0.002 |
| 43 h ago | Passed | 402 | 399 ms | $0.002 |