# x402 Bazaar Weather (Demo)

> x402 Bazaar Weather (Demo) is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status down (last checked 2026-10-14).

Returns deterministic synthetic weather data for a given city name, used for testing x402 wire-format payment flows with USDC on Base.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/weather?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-weather-demo-3780d058
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ecZS_uoYwBXi5gOJQYVuT

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 x402-bazaar-weather-demo-3780d058 -d '<json body>'
```

Example prompt: Run a test x402 weather lookup for 'San Francisco' using the x402 Bazaar demo endpoint — pay with USDC on Base and show me the synthetic weather response we get back.

## When to prefer this

Use this endpoint when you need to test or demonstrate the x402 HTTP payment protocol wire format, specifically the 402-then-retry flow with USDC micropayments on Base. Not for real weather data — output is fully synthetic and deterministic. Ideal for developers building x402-compatible clients or validating payment header formats.

## Known failure modes

- HTTP 402 returned on first call — expected; must complete x402 payment and retry
- Invalid or missing city name may return an error or empty response
- Payment to wrong address or wrong chain (must be eip155:8453) will fail verification
- Insufficient USDC balance on Base will block payment completion
- Network issues with Base RPC may delay payment confirmation

## How this service works

DEMO/synthetic endpoint mirroring the canonical x402 `/weather` example for wire-format testing. Output is deterministic from the city name — NOT real weather. Paid via x402: $0.001 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A deterministic (non-real) weather response for the submitted city name, returned after completing an x402 micropayment of $0.001 USDC on Base (eip155:8453). Initially returns HTTP 402 with payment requirements; after payment, retries and returns the synthetic weather payload.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-weather-demo-3780d058/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
