# x402 Data Hub v2 - Currency Conversion

> x402 Data Hub v2 - Currency Conversion 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).

Converts a specified amount from one currency to another using live exchange rates

## Facts

- Endpoint: POST https://data-hub-v5.vercel.app/api/exchange/convert
- 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-currency-conversion-6be6b750
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2tHYn_TpTH_BUgZlLpqlz

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-currency-conversion-6be6b750 -d '<json body>'
```

Example prompt: Convert 500 USD to EUR and tell me how much I'd get at the current exchange rate.

## When to prefer this

Choose this endpoint when you need to convert between fiat and/or crypto currencies with a simple amount-in, amount-out call. It supports both crypto and traditional currency pairs, making it suitable for mixed fiat/crypto workflows. At $0.05 USDC per call it suits low-to-medium frequency conversion lookups rather than high-frequency trading.

## Known failure modes

- Unsupported currency code returns an error
- Invalid or non-positive amount may return validation error
- Missing required fields (from, to, amount) returns 400 Bad Request
- Payment not received or insufficient USDC results in 402 Payment Required
- Exchange rate data temporarily unavailable returns 503

## How this service works

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

## Output

Returns the converted amount in the target currency based on the provided source currency, target currency, and input amount, using live or near-real-time exchange rates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "amount": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-hub-v2-currency-conversion-6be6b750/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)
