# Fiat & Crypto Currency Converter

> Fiat & Crypto Currency Converter is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Converts an amount from one currency to another across ~60 fiat currencies and major cryptocurrencies using ECB and National Bank of Ukraine rates

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/fx?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fiat-crypto-currency-converter-68883d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uzrq82tnt2zpdYJ2Ehjd5

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 fiat-crypto-currency-converter-68883d07
```

Example prompt: How much is 500 USD in EUR and UAH right now?

## When to prefer this

Choose this endpoint when you need fast, lightweight fiat-to-fiat, fiat-to-crypto, or crypto-to-fiat currency conversion — especially when Ukrainian hryvnia (UAH) coverage is needed alongside ECB rates. Prefer it over general finance APIs when you want a simple rate+amount response without historical data, charts, or complex authentication.

## Known failure modes

- Unsupported currency code returns an error or empty result
- Missing required 'from', 'to', or 'amount' query parameters causes a 400 error
- Network or rate-feed outage may return stale or unavailable rates
- Invalid amount type (non-numeric) causes a validation error

## How this service works

Convert an amount between ~60 fiat currencies (ECB and National Bank of Ukraine rates, UAH included) and major crypto (BTC, ETH, SOL, USDT...).

## Output

Returns a JSON object with the source currency, the original amount, and for each requested target currency: the exchange rate and the converted amount. Rates are sourced from ECB and the National Bank of Ukraine.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "amount": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": {
   "EUR": {
    "rate": 0.92,
    "amount": 92
   },
   "UAH": {
    "rate": 41.5,
    "amount": 4150
   }
  },
  "from": "USD",
  "amount": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fiat-crypto-currency-converter-68883d07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
