# ECB Official Currency Converter

> ECB Official Currency Converter is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts an amount between two currencies using the European Central Bank's official daily reference rates, optionally for a past date within 90 days.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/fx/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-official-currency-converter-b10bd845
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qnr9RhhkYus24VkaPk3N_

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-official-currency-converter-b10bd845 -d '<json body>'
```

Example prompt: Convert 2500 USD to EUR using the official ECB reference rate for today, and tell me the exact rate and publication date used.

## When to prefer this

Choose this endpoint when you need the official, auditable ECB reference rate — for accounting reconciliation, VAT filings, customs declarations, or any compliance context where reproducibility and official sourcing matter. Prefer this over live market rate APIs when the requirement is an officially published, once-daily rate rather than real-time bid/ask spreads. Ideal for historical lookups within the past 90 days at the same official rate.

## Known failure modes

- Unsupported currency code — ECB only covers ~30 currencies, obscure or exotic pairs will fail
- Date out of range — dates older than 90 days or in the future are not supported
- ECB rate not yet published for today — the daily rate is published at approximately 16:00 CET and may not be available earlier in the day
- Invalid ISO 4217 format — malformed currency codes return an error
- Same source and target currency may return a trivial rate of 1

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

Returns a JSON object with the converted amount, the exchange rate used, the ECB publication date, the source and target currency codes, whether the rate was crossed through EUR (viaEur boolean), the requested date, and the data source identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to",
  "from"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency, ISO 4217, e.g. EUR."
  },
  "date": {
   "type": "string",
   "description": "Optional publication date, YYYY-MM-DD, within the last 90 days. Defaults to the latest publication."
  },
  "from": {
   "type": "string",
   "description": "Source currency, ISO 4217, e.g. USD."
  },
  "amount": {
   "type": "number",
   "description": "Amount to convert. Defaults to 1."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "date": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "rate": {
   "type": "number"
  },
  "amount": {
   "type": "number"
  },
  "source": {
   "type": "string"
  },
  "viaEur": {
   "type": "boolean"
  },
  "converted": {
   "type": "number"
  },
  "dateRequested": {
   "type": [
    "string",
    "null"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-official-currency-converter-b10bd845/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
