# ECB FX Rates

> ECB FX Rates is a paid API for AI agents from api.facts402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Converts an amount between ~30 currencies using official European Central Bank reference rates, for today or any date in the last 90 days.

## Facts

- Endpoint: POST https://api.facts402.com/fx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-fx-rates-e5f31aac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BF37E-8li6pAvrokoLqkg

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-rates-e5f31aac -d '<json body>'
```

Example prompt: Convert 750 US dollars to euros using the official ECB reference rate from last Friday, December 13th.

## When to prefer this

Choose this endpoint when you need official, auditable ECB reference rates suitable for EU invoicing, financial reporting, or accounting compliance — not for live mid-market or interbank rates. Prefer this over general FX APIs when the ECB publication date matters for legal or tax purposes, or when you need historical rates up to 90 days back at official ECB precision.

## Known failure modes

- Unsupported currency code — ECB only covers ~30 major currencies; exotic or minor currencies will fail
- Date out of range — only dates within the last 90 days are supported; older historical dates return an error
- Invalid ISO 4217 code — malformed 3-letter codes are rejected
- No ECB rate published for requested date — weekends and ECB non-publishing days may have no rate; API may return closest available date or an error
- Amount of zero or negative — excluded by schema validation

## How this service works

Use when an agent needs currency conversion at official European Central Bank reference rates for pricing, invoicing, travel budgets or accounting: ~30 currencies, latest or any day in the last 90 days, with the publication date used and exact decimal results. $0.01 USDC on Base; charged only on 2xx, never for invalid input.

## Output

Returns the exact converted amount in the target currency, the ECB reference rate applied, and the precise ECB publication date used for the conversion. Results are given as exact decimals suitable for accounting and invoicing use.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^[A-Za-z]{3}$",
   "description": "ISO 4217 code, e.g. EUR"
  },
  "date": {
   "type": "string",
   "format": "date",
   "description": "Optional YYYY-MM-DD within the last 90 days"
  },
  "from": {
   "type": "string",
   "pattern": "^[A-Za-z]{3}$",
   "description": "ISO 4217 code, e.g. USD"
  },
  "amount": {
   "type": "number",
   "description": "Amount in the source currency",
   "exclusiveMinimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-fx-rates-e5f31aac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.facts402.com](https://www.zero.xyz/host/api.facts402.com/llms.txt)
