80trust / 100
Weather
by Weather Forecast & Alerts in Weather & location
x402 APIPassing, checked 18 min ago
Weather forecast and alerts: give a latitude and longitude in the US, get the 7-day forecast (temperature, rain chance, wind) and any active weather alerts from the National Weather Service.
POST https://data.tollkit.dev/weather
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 415 ms typical, 416 ms slowest 5%
- Last check
- 18 min ago
- Next check
- in 11 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://data.tollkit.dev/weather" \
-H "content-type: application/json" \
-d '{"lat":38.9784,"lon":-76.4922}'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%2Fdata.tollkit.dev%2Fweather
const res = await pay("https://data.tollkit.dev/weather", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"lat":38.9784,"lon":-76.4922}),
});
console.log(await res.json());Example input
{
"lat": 38.9784,
"lon": -76.4922
}Example output
{
"alerts": [],
"forecast": [
{
"detail": "A chance of rain showers. Cloudy, with a low around 61. Northeast wind around 7 mph. Chance of precipitation is 40%. New rainfall amounts less than a tenth of an inch possible.",
"end": "2026-10-04T06:00:00-04:00",
"is_daytime": false,
"name": "Overnight",
"precipitation_chance": 35,
"start": "2026-10-04T03:00:00-04:00",
"summary": "Chance Rain Showers",
"temperature": 61,
"temperature_unit": "F",
"wind": "7 mph",
"wind_direction": "NE"
},
{
"detail": "Rain showers likely before 5pm. Cloudy, with a high near 67. Northeast wind around 9 mph. Chance of precipitation is 70%. New rainfall amounts less than a tenth of an inch possible.",
"end": "2026-10-04T18:00:00-04:00",
"is_daytime": true,
"name": "Sunday",
"precipitation_chance": 68,
"start": "2026-10-04T06:00:00-04:00",
"summary": "Rain Showers Likely",
"temperature": 67,
"temperature_unit": "F",
"wind": "9 mph",
"wind_direction": "NE"
}
],
"forecast_updated": "2026-10-04T06:22:51+00:00",
"location": {
"city": "Annapolis",
"lat": 38.9784,
"lon": -76.4922,
"office": "LWX",
"state": "MD",
"time_zone": "America/New_York"
},
"source": "U.S. National Weather Service (api.weather.gov). Not endorsed by 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 |
|---|---|---|---|---|
| 18 min ago | Passed | 402 | 415 ms | $0.002 |
| 3 h ago | Passed | 402 | 591 ms | $0.002 |
| 6 h ago | Passed | 402 | 292 ms | $0.002 |
| 11 h ago | Passed | 402 | 416 ms | $0.002 |