# FX Reference Rates (ECB)

> FX Reference Rates (ECB) is a paid API for AI agents from fx-reference-rates.mick8511.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Converts currency amounts between up to 30 ISO 4217 currencies using official European Central Bank euro reference rates, for today or any date in the last 90 days.

## Facts

- Endpoint: GET https://fx-reference-rates.mick8511.workers.dev/rate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-reference-rates-ecb-b95127d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DAFp68LELrzuBNrAraktg

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 fx-reference-rates-ecb-b95127d7
```

Example prompt: Using the ECB's official reference rates, convert 2500 USD to GBP, EUR, and JPY — use today's date and show me the converted amounts for each currency.

## When to prefer this

Choose this endpoint when you need official, authoritative exchange rates sourced directly from the European Central Bank — ideal for financial reporting, compliance, auditing, or any use case requiring a trusted institutional rate rather than a commercial or real-time mid-market rate. It supports batch conversion to up to 30 currencies in a single call and historical lookups up to 90 days back, making it efficient for multi-currency invoicing or budgeting. Prefer alternatives if you need real-time tick data, rates older than 90 days, or currencies not published by the ECB.

## Known failure modes

- Requested date is more than 90 days ago — endpoint returns an error or no data
- Requested date falls on a weekend or ECB non-publication day — falls back to most recent prior ECB publication date
- Invalid ISO 4217 currency code supplied — likely returns an error or omits the rate
- More than 30 target currencies requested — rejected by schema validation
- Currency not covered by ECB reference rates (e.g. exotic or unofficial currencies) — rate absent from response

## How this service works

Currency exchange rates from the European Central Bank's official euro reference rates: convert an amount from one ISO 4217 currency to up to 30 others, today or on any date in the last 90 days. Cross rates computed via EUR.

## Output

A JSON object containing the source currency, target currency list, the ECB reference date used, per-currency exchange rates, the converted amounts for the specified amount, a note about ECB publication schedule, and a disclaimer clarifying that cross rates are computed via EUR and are not directly published by the ECB.

## 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"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target currency or comma-separated list (max 30), e.g. GBP,JPY"
      },
      "date": {
       "type": "string",
       "description": "Optional YYYY-MM-DD within the last 90 days; non-publication days use the most recent prior ECB date"
      },
      "from": {
       "type": "string",
       "description": "Source currency, ISO 4217 code, e.g. USD"
      },
      "amount": {
       "type": "string",
       "description": "Optional amount to convert (default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": [
   "GBP",
   "JPY"
  ],
  "date": "2026-10-14",
  "from": "USD",
  "note": "Latest available ECB reference rates (2026-10-14). ECB reference rates are published around 16:00 CET on TARGET working days. Cross rates are calculated via EUR.",
  "rates": {
   "GBP": 0.79324238,
   "JPY": 149.82144
  },
  "amount": 100,
  "source": "European Central Bank euro foreign exchange reference rates",
  "converted": {
   "GBP": 79.324238,
   "JPY": 14982.144492
  },
  "disclaimer": "These reference rates are for information purposes only and are published free of charge by the ECB at https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html. Cross rates are calculated from ECB euro rates and are not official ECB rates.",
  "source_url": "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-reference-rates-ecb-b95127d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fx-reference-rates.mick8511.workers.dev](https://www.zero.xyz/host/fx-reference-rates.mick8511.workers.dev/llms.txt)
