# x402 Data Hub – Exchange Rates

> x402 Data Hub – Exchange Rates is a paid API for AI agents from x402-data-hub.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Returns current foreign exchange rates and currency conversion data, payable with USDC on Base via the x402 protocol.

## Facts

- Endpoint: POST https://x402-data-hub.vercel.app/api/exchange/rates
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-hub-exchange-rates-2c9afa23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ob2tIMuatswHm4vDMJbBM

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-data-hub-exchange-rates-2c9afa23 -d '<json body>'
```

Example prompt: Can you fetch the current exchange rate from USD to EUR using the x402 Data Hub exchange rates endpoint?

## When to prefer this

Choose this endpoint when you need live exchange rate data and are already operating within the x402 micropayment ecosystem on Base, especially when you want to pay per-call at $0.005 USDC rather than maintaining a subscription to a traditional forex API.

## Known failure modes

- Invalid or unsupported currency pair returns an error
- Payment not processed or insufficient USDC balance causes 402 response
- Network or Vercel deployment downtime causes 503
- Malformed POST body returns 400 bad request
- Rate data source temporarily unavailable

## How this service works

Social media intel (Twitter, Instagram, YouTube) + crypto data + exchange rates. Pay with USDC on Base.

## Output

A JSON response containing current exchange rates for the requested currency pair(s), including rate values and likely a timestamp, returned after a micropayment of $0.005 USDC on Base is processed via x402.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-hub-exchange-rates-2c9afa23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-hub.vercel.app](https://www.zero.xyz/host/x402-data-hub.vercel.app/llms.txt)
