# FX Rates ECB – Historical Rate Lookup

> FX Rates ECB – Historical Rate Lookup is a paid API for AI agents from fx-ecb.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns the ECB reference exchange rate for a currency pair on a specific past date (since 1999), plus the percentage change from that date to today.

## Facts

- Endpoint: GET https://fx-ecb.x402tookit.com/fx-historical?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-rates-ecb-historical-rate-lookup-bc70609e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z-CXUR8vFmS8U-_9K9uF-

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-rates-ecb-historical-rate-lookup-bc70609e
```

Example prompt: What was the ECB reference rate for EUR to USD on March 15, 2022, and how much has the rate changed since then?

## When to prefer this

Choose this endpoint when you need the official ECB reference rate for a specific past date — ideal for accounting, invoice reconciliation, tax reporting, or measuring how much a currency pair has moved since a historical event. It covers all 30 ECB-published currencies dating back to 1999 and returns both the point-in-time rate and the percentage change to the present, which no generic spot-rate endpoint provides.

## Known failure modes

- Unsupported currency pair (only 30 ECB-published currencies available) — returns error or null rate
- Date before 1999 ECB data start — no data available
- Weekend or holiday date — automatically adjusted to prior working day, fixingDate will differ from requestedDate
- Malformed date format (non YYYY-MM-DD) — validation error
- Rate temporarily unavailable due to ECB data feed issues — degraded flag set to true

## How this service works

ECB reference exchange rate on a past date (since 1999) and the change since then; weekends use the prior working day.

## Output

Returns a JSON object with the exact ECB reference exchange rate for the requested currency pair on or before the requested date (adjusted to prior working day for weekends/holidays), the fixing date used, the latest available rate, the percentage change between the historical rate and today's rate, source URL, attribution, and any degraded-mode warnings.

## 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": [
      "base",
      "quote",
      "date"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base currency"
      },
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "quote": {
       "type": "string",
       "description": "Quote currency"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "base": {
       "type": [
        "null",
        "string"
       ]
      },
      "rate": {
       "type": [
        "null",
        "number"
       ]
      },
      "quote": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "fixingDate": {
       "type": [
        "null",
        "string"
       ]
      },
      "latestRate": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "attribution": {
       "type": [
        "null",
        "string"
       ]
      },
      "requestedDate": {
       "type": [
        "null",
       
… (truncated)
```

## More

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