# ECB Currency Rates

> ECB Currency Rates is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-29).

Returns European Central Bank daily reference exchange rates for ~30 major currencies from any base currency, for the latest date or a specified past date.

## Facts

- Endpoint: GET https://onchaincheck.dev/fx/rates?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-currency-rates-00f32333
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rbY1-Vs4k-1y2fkYB-H7b

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-currency-rates-00f32333
```

Example prompt: What are today's ECB reference rates for EUR, GBP, and JPY using USD as the base currency?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB daily reference rates rather than real-time mid-market or broker rates. Ideal for financial reporting, compliance, invoice reconciliation, or any use case requiring a single official daily rate. Not suitable for intraday trading or real-time tick data needs.

## Known failure modes

- Invalid base currency code (not a 3-letter ISO 4217 code) returns an error
- Requested date falls on a weekend or ECB holiday with no rate available
- Requested date is in the future (no rates published yet)
- Requested target currency not covered by ECB (~30 major currencies only)
- Date format does not match YYYY-MM-DD pattern

## How this service works

European Central Bank daily reference exchange rates for about 30 major currencies, from any base currency, latest or for a past date. Rates update once per working day; the response states which day.

## Output

A JSON object containing the base currency code, the effective date of the rates, and a map of target currency codes to their exchange rate values relative to the base, plus a source attribution string confirming ECB reference rates.

## 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": {
      "base": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$",
       "description": "ISO 4217 base currency, default USD"
      },
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Past date YYYY-MM-DD; latest if omitted"
      },
      "symbols": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
       "description": "Comma-separated target currencies; all if omitted"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-22",
  "rates": {
   "CAD": 1.4034,
   "EUR": 0.89246,
   "GBP": 0.74761
  },
  "source": "European Central Bank reference rates via frankfurter.dev"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-currency-rates-00f32333/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
