# x402 Bazaar Market Snapshot (Demo)

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

Returns deterministic pseudo-prices for top crypto assets to test the x402 payment wire format — synthetic demo data, not live market prices.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/market-snapshot
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-market-snapshot-demo-f4c7557f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1aa632S3kWMTpqphJVN6x

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-market-snapshot-demo-f4c7557f -d '<json body>'
```

Example prompt: Hit the x402 Bazaar market snapshot demo endpoint and walk me through the 402-pay-and-retry flow — I want to confirm my x402 USDC payment on Base goes through and get back the deterministic pseudo-prices it returns.

## When to prefer this

Use this endpoint when you need to test or demonstrate the x402 micropayment wire format end-to-end without relying on live market data. Ideal for integration testing of x402 client libraries, payment middleware, or agent payment flows at minimal cost ($0.001 USDC). Do NOT use for real asset prices — use token-price or token-momentum endpoints instead.

## Known failure modes

- 402 returned before payment — expected behavior; client must attach payment header and retry
- Insufficient USDC balance on Base — payment rejected, 402 persists
- Wrong chain (not eip155:8453 / Base) — payment not recognized
- Malformed x402 payment header — endpoint rejects with 402 or 400
- Network unavailability on api.relai.fi — connection timeout or 5xx

## How this service works

DEMO/synthetic endpoint: returns deterministic pseudo-prices for top assets to test the x402 wire format. NOT live market data — use token-price / token-momentum for real prices. Paid via x402: $0.001 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A deterministic set of pseudo-prices for top crypto assets (e.g. BTC, ETH). Data is synthetic and fixed — not live market data. The response confirms the x402 payment wire format is working. Preceded by a 402 response containing payment requirements (0.001 USDC on Base to the specified address); after payment, retrying yields the snapshot payload.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-market-snapshot-demo-f4c7557f/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)
