# x402 Data Hub v2 – Exchange Rates

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

Returns current foreign exchange and/or crypto exchange rates for specified currency pairs

## Facts

- Endpoint: POST https://data-hub-v5.vercel.app/api/exchange/rates
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-hub-v2-exchange-rates-5433f59b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MnYjAqvJI-IWjHNMQGe5k

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-v2-exchange-rates-5433f59b -d '<json body>'
```

Example prompt: Can you get me the current exchange rate for BTC to USD and ETH to USD right now?

## When to prefer this

Choose this endpoint when you need quick, pay-per-use exchange rate data for crypto or fiat pairs without a subscription, especially in agent workflows that use x402 micropayment protocol on Base/Ethereum. Suitable for low-frequency lookups where a $0.05/call cost is acceptable versus a subscription API.

## Known failure modes

- Invalid or unsupported currency pair returns an error response
- Network or Vercel cold-start timeout causes delayed or failed response
- Payment of $0.05 USDC not provided or rejected causes HTTP 402 Payment Required
- Malformed POST body returns 400 Bad Request
- Rate data may be stale if upstream data source is delayed

## How this service works

16 paid endpoints - Crypto, Exchange, Yield, Governance, Sentiment

## Output

A JSON response containing current exchange rate data for the requested currency pair(s), including the rate value, base and quote currencies, and a timestamp indicating when the rate was last updated.

## More

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