82trust / 100
Weather Forecast
by NWS Weather for Agents in Weather & location
x402 APIPassing, checked 8 min ago
US weather forecast API for agents: return a normalized National Weather Service (NOAA/NWS) multi-period forecast for $0.001 USDC from latitude/longitude only—US coverage, attributed periods, no arbitrary URL proxy and no global weather claim.
POST https://api.delx.ai/api/v1/x402/weather-forecast
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 28 ms typical, 28 ms slowest 5%
- Last check
- 8 min ago
- Next check
- in 24 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.delx.ai/api/v1/x402/weather-forecast" \
-H "content-type: application/json" \
-d '{"latitude":38.9072,"longitude":-77.0369,"periods":2}'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.delx.ai%2Fapi%2Fv1%2Fx402%2Fweather-forecast
const res = await pay("https://api.delx.ai/api/v1/x402/weather-forecast", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"latitude":38.9072,"longitude":-77.0369,"periods":2}),
});
console.log(await res.json());Example input
{
"latitude": 38.9072,
"longitude": -77.0369,
"periods": 2
}Example output
{
"result": {
"attribution": "Forecast data supplied by the National Weather Service; see provider_url for source and coverage.",
"cache": "miss",
"coordinates": {
"latitude": 38.9072,
"longitude": -77.0369
},
"coverage": "US",
"forecast_url": "https://api.weather.gov/gridpoints/LWX/96,70/forecast",
"periods": [
{
"endTime": "2026-08-01T18:00:00-04:00",
"isDaytime": true,
"name": "Today",
"number": 1,
"shortForecast": "Mostly Sunny",
"startTime": "2026-08-01T12:00:00-04:00",
"temperature": 87,
"temperatureUnit": "F"
},
{
"endTime": "2026-08-02T06:00:00-04:00",
"isDaytime": false,
"name": "Tonight",
"number": 2,
"shortForecast": "Mostly Clear",
"startTime": "2026-08-01T18:00:00-04:00",
"temperature": 70,
"temperatureUnit": "F"
}
],
"periods_requested": 2,
"periods_returned": 2,
"provider": "National Weather Service (NOAA)",
"provider_url": "https://www.weather.gov/",
"schema": "delx/weather-forecast/v1"
},
"tool_name": "get_weather_forecast_nws"
}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 |
|---|---|---|---|---|
| 8 min ago | Passed | 402 | 28 ms | $0.001 |
| 3 h ago | Passed | 402 | 25 ms | $0.001 |
| 9 h ago | Passed | 402 | 84 ms | $0.001 |