# x402.onchainexpat.com Fiat Currency Converter

> x402.onchainexpat.com Fiat Currency Converter is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts fiat currency amounts between world currencies (USD, EUR, GBP, etc.) using current exchange rates

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/currency/convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-onchainexpat-com-75759b1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l1h7XnWjszrZ3sPUxKCcG

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-onchainexpat-com-75759b1c -d '<json body>'
```

Example prompt: Convert 250 US dollars to euros and tell me the current exchange rate.

## When to prefer this

Use this endpoint when you need fiat-to-fiat currency conversion (e.g., USD to EUR, GBP to JPY). Do NOT use this for cryptocurrency price lookups — the sibling /crypto/price endpoint handles crypto. Prefer this over generic FX APIs when you are already operating in a Web3/x402 payment context.

## Known failure modes

- Unsupported currency code returns an error
- Invalid or negative amount causes a validation error
- Missing required fields (source, target, amount) returns a 400 error
- Payment failure or insufficient USDC balance blocks the request
- Exchange rate data unavailable for exotic currency pairs

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns the converted amount in the target currency along with the exchange rate used, given a source currency, target currency, and input amount.

## Example request

```json
{
 "input": {
  "body": {
   "to": "EUR",
   "from": "USD",
   "amount": 100
  },
  "type": "http",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency code (default 'EUR'). Aliases: 'to_currency', 'toCurrency', 'target'"
  },
  "from": {
   "type": "string",
   "description": "Source currency code (default 'USD'). Aliases: 'from_currency', 'fromCurrency', 'source'"
  },
  "amount": {
   "type": "number",
   "description": "Amount to convert (default 1). Aliases: 'fromAmount', 'value'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "rate": {
   "type": "number"
  },
  "amount": {
   "type": "number"
  },
  "cached": {
   "type": "boolean"
  },
  "result": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-onchainexpat-com-75759b1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
