Weather (National Weather Service + MET Norway, live, worldwide)
weather[PAID — 0.004 USDC on Base via x402] Current conditions + short forecast, worldwide. U.S. coordinates (all 50 states, D.C., U.S. territories) read live from the National Weather Service's own public API (api.weather.gov) — U.S. government data — plus active alerts. Every other location reads live from MET Norway's global Locationforecast model (api.met.no), CC BY 4.0/NLOD-licensed public data — current + forecast only, no alerts (MET Norway's public feed has no alerts product). Neither is a resold vendor feed. Body { lat, lon } (or lat/lng) for anywhere in the world, or { location } / { city } for a full U.S. street address (resolved via the Census Geocoder — U.S. only; a bare "City, State" may not resolve; non-U.S. place names are never resolved this way — pass lat/lon for any non-U.S. location). Optional { forecast_days: 1-7, alerts: true|false (U.S./NWS only) }. Response includes provider (nws|met_norway) and the required attribution string. Cached 10 minutes per query. $0.004 USDC on Base, paid via x402 by the calling agent's own wallet. Call with no payment_header first to receive the payment requirements; your own wallet pays, never this server's.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude (-90..90), anywhere in the world. Alias: latitude. Mutually exclusive with location/city. | |
| lon | No | Longitude (-180..180), anywhere in the world. Aliases: lng, long, longitude. Mutually exclusive with location/city. | |
| alerts | No | Include active NWS alerts, default true. U.S./NWS locations only. | |
| location | No | Full U.S. street address (best results) or city/state, e.g. '1600 Pennsylvania Ave NW, Washington, DC'. U.S. ONLY. Alias: city. Resolved via the Census Geocoder -- a bare 'City, State' may not resolve; pass lat/lon for guaranteed resolution or for any non-U.S. location. | |
| forecast_days | No | 1-7, default 3. | |
| payment_header | No | Optional. Omit on your first call to receive the x402 payment challenge for free. After your own wallet/x402 client signs against that challenge, call this same tool again with the SAME business arguments plus this field set to the header your x402 client produced (typically { name: "PAYMENT-SIGNATURE", value: "<base64 payload>" }). This server never holds a wallet and never pays on your behalf. |