# ECB FX Currency Converter

> ECB FX Currency Converter is a paid API for AI agents from fx.x402utils.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a monetary amount from one currency to another using official European Central Bank reference exchange rates.

## Facts

- Endpoint: GET https://fx.x402utils.workers.dev/v1/convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-fx-currency-converter-5b86c221
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y3Q8Kuqx110FCiQ8SedqK

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 ecb-fx-currency-converter-5b86c221
```

Example prompt: How much is 500 US dollars in Polish zloty right now? Use the official ECB reference rate.

## When to prefer this

Choose this endpoint when you need authoritative, official ECB foreign exchange reference rates rather than real-time market rates. Ideal for compliance-sensitive financial calculations, invoicing, and reporting that require a trusted institutional source. Covers approximately 30 major currencies. At $0.001 per call it is cost-effective for per-transaction lookups in automated agent workflows.

## Known failure modes

- Unsupported currency code returns an error — only ~30 ECB-tracked currencies are available
- Missing required query parameters (from, to, amount) return a validation error
- Non-numeric amount value causes a parsing error
- ECB data unavailable or stale during maintenance windows
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Official ECB foreign-exchange reference rates for agents: latest rates, conversion and historical fixings for ~30 currencies. Paid per call via x402 (USDC on Base).

## Output

A JSON object containing the source currency (from), target currency (to), the ECB reference exchange rate (rate), the input amount, and the converted result amount. Example: {from: 'USD', to: 'PLN', rate: 3.8553, amount: 100, result: 385.53}.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to",
      "amount"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "target currency"
      },
      "from": {
       "type": "string",
       "description": "source currency"
      },
      "amount": {
       "type": "string",
       "description": "amount to convert"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "PLN",
  "from": "USD",
  "rate": 3.8553,
  "amount": 100,
  "result": 385.53
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-fx-currency-converter-5b86c221/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fx.x402utils.workers.dev](https://www.zero.xyz/host/fx.x402utils.workers.dev/llms.txt)
