# ECB Reference Exchange Rates

> ECB Reference Exchange Rates is a paid API for AI agents from api.cra-agent.tech, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns European Central Bank daily reference exchange rates for a given base currency, either the latest or for a specific past date.

## Facts

- Endpoint: GET https://api.cra-agent.tech/v1/paid/currency/rates?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-reference-exchange-rates-a58beffd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u_OG1yjbH4K-G0tmQg5FB

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-reference-exchange-rates-a58beffd
```

Example prompt: What are the latest ECB reference rates for EUR, GBP, and JPY against USD? If you need a specific date, use 2024-03-15.

## When to prefer this

Choose this endpoint when you need the official ECB daily reference rate for informational, reporting, accounting, or compliance purposes — not for executing trades. It is ideal when you need historical rates on a specific past date or a snapshot of multiple currency pairs at once. Prefer this over live FX execution endpoints when an official reference benchmark (rather than a market bid/ask) is required.

## Known failure modes

- Invalid currency code for base or symbols returns an error or empty rates
- Future dates or weekends/holidays where ECB does not publish rates may return no data or an error
- Malformed date format (not YYYY-MM-DD) results in a validation error
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- Symbols filter with unsupported currency codes may silently omit those pairs

## How this service works

European Central Bank reference rates against a base currency, latest or on a past date. A daily reference, not an executed price: for that see /v1/paid/fx/execution.

## Output

Returns a JSON object containing ECB daily reference exchange rates for the requested base currency (defaulting to USD), including each currency code and its rate. The response reflects the official ECB published rate for the latest available date or a specified past date, not a live traded price.

## 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",
     "required": [],
     "properties": {
      "base": {
       "type": "string",
       "example": "USD",
       "description": "Three-letter currency code. Defaults to USD."
      },
      "date": {
       "type": "string",
       "description": "A past date as YYYY-MM-DD. Defaults to the latest rates."
      },
      "symbols": {
       "type": "string",
       "example": "EUR,GBP,JPY",
       "description": "Only these currencies, comma-separated."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-reference-exchange-rates-a58beffd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cra-agent.tech](https://www.zero.xyz/host/api.cra-agent.tech/llms.txt)
