# FX Rates ECB – Latest Exchange Rate

> FX Rates ECB – Latest Exchange Rate 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 latest ECB reference exchange rate for a currency pair, including the inverse rate and the fixing date.

## Facts

- Endpoint: GET https://fx-ecb.x402tookit.com/fx-rate?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-latest-exchange-rate-3b119917
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a1aaY078NJ5GCO6soJv1r

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-latest-exchange-rate-3b119917
```

Example prompt: What's the latest ECB reference exchange rate for USD to EUR — include the inverse rate and the date it was fixed?

## When to prefer this

Use this endpoint when you need the authoritative, official ECB daily reference exchange rate for a currency pair — ideal for compliance, financial reporting, invoicing, or any use case requiring a trusted central bank source rather than a live market rate. Prefer this over commercial FX APIs when regulatory or official sourcing matters. Note it covers only the 30 ECB-published currencies.

## Known failure modes

- Unsupported currency code — ECB only publishes rates for 30 currencies; requests for others will return an error or null
- Weekend/holiday dates — ECB does not publish rates on weekends or holidays; the API may return the most recent available rate
- Invalid base or quote parameter — missing or malformed currency codes result in validation errors
- Rate temporarily unavailable — if the ECB has not yet published the daily fixing, the response may be degraded or null

## How this service works

Latest ECB reference exchange rate for a currency pair, with the inverse and the fixing date.

## Output

Returns a JSON object with the exchange rate (rate), inverse rate (inverse), base and quote currency codes, the ECB fixing date (fixingDate), source URL, attribution, and optionally a summary, disclaimer, and degraded flag if data quality is reduced.

## 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"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base currency, e.g. USD"
      },
      "quote": {
       "type": "string",
       "description": "Quote currency, e.g. EUR"
      }
     }
    }
   },
   "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"
       ]
      },
      "inverse": {
       "type": [
        "null",
        "number"
       ]
      },
      "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"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "attribution": {
       "type": [
        "null",
        "string"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-rates-ecb-latest-exchange-rate-3b119917/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)
