# httpay.xyz US Weather (NWS) API Gateway

> httpay.xyz US Weather (NWS) API Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Proxies requests to the US National Weather Service (NWS) API via a pay-per-call gateway, returning weather data for US locations.

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/weather/%7B*path%7D/*
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-a1a38b53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lgLWO2PVQJig-LNExP4PJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-xyz-a1a38b53 -d '<json body>'
```

Example prompt: What's the current weather forecast for Chicago, Illinois — pull it from the National Weather Service API and show me the next 7 days including high/low temperatures and conditions.

## When to prefer this

Use this endpoint when you need access to the official US National Weather Service (NWS) API without managing your own NWS API key or infrastructure, and want a simple pay-per-call model. Prefer this over OpenWeatherMap or other commercial APIs when official US government weather data is required.

## Known failure modes

- Invalid or unsupported NWS API path returns 404
- US-only: non-US locations are not covered by NWS
- Payment not received or insufficient USDC results in 402 error
- NWS API rate limiting or downtime propagates as 5xx error
- Malformed path parameters result in NWS error response

## How this service works

API Gateway: US Weather (NWS) API

## Output

Returns the raw NWS API JSON response for the requested path, including forecast data, weather alerts, gridpoint data, or station observations depending on the path supplied.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-a1a38b53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
