81trust / 100

Us Alerts

by Eckari in Weather & location

x402 APIPassing, checked 5 h ago

Active National Weather Service watches, warnings and advisories for a US coordinate or a two-letter state or marine area code - event, severity, certainty, urgency, headline, affected areas and zone codes, and effective/onset/expiry times in UTC. Read at request time, so an empty list means nothing is active. The 5 newest come back by default; detail=full adds the NWS narrative. Use when: Decide whether an active US weather warning affects a location before dispatching or travelling.

GET https://api.eckari.com/v1/weather/us/alerts

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
41 ms typical, 41 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.eckari.com/v1/weather/us/alerts?lat=38.8977&lon=-77.0365"
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.eckari.com%2Fv1%2Fweather%2Fus%2Falerts
const res = await pay("https://api.eckari.com/v1/weather/us/alerts?lat=38.8977&lon=-77.0365");
console.log(await res.json());

Example input

{
  "lat": 38.8977,
  "lon": -77.0365
}

Example output

{
  "data": {
    "items": [],
    "page": {
      "has_more": false,
      "limit": 5,
      "next_offset": null,
      "offset": 0,
      "returned": 0,
      "total": 0
    },
    "query": {
      "detail": "compact",
      "lat": 38.8977,
      "lon": -77.0365,
      "state": null
    }
  },
  "meta": {
    "capability": "weather.us.alerts",
    "freshness": "live",
    "source": "nws",
    "version": "4.0.0"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40241 ms$0.003