# ALFRED x402 Weather Service

> ALFRED x402 Weather Service is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.021/call, status unknown (last checked 2026-10-11).

Returns current weather data for a given location, paid per-call via Lightning/x402 micropayment protocol

## Facts

- Endpoint: GET https://x402.wallace.us/x402/weather?utm_source=zero.xyz
- Price: $0.021/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-weather-service-8fe550ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ncDdiCqPr8FuxQ7yraImp

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 alfred-x402-weather-service-8fe550ce
```

Example prompt: What's the current weather in Austin, Texas? Use the ALFRED weather service and pay the micropayment to fetch it.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call weather lookup via Lightning micropayments (x402/L402 protocol) without a subscription or API key signup. Ideal for autonomous agents that handle their own micropayments and need weather data on demand. Prefer alternatives if you need bulk queries, free tiers, or more structured forecast schemas.

## Known failure modes

- HTTP 402 returned if no valid payment hash is provided — must pay Lightning invoice first then retry with X-Payment-Hash header
- Invalid or unrecognized location string may return an error or empty result
- Payment hash mismatch or reuse issues may cause authentication failure
- Service may be unavailable if the self-hosted server is offline
- Ambiguous location names (e.g. 'Springfield') may return unexpected results

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

A JSON object containing current weather data for the requested location, including temperature, conditions, and other meteorological details. Results are cached per payment hash so retrying after a successful payment does not incur an additional charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "loc": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-weather-service-8fe550ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
