# FX Rate - ECB Currency Exchange Rate

> FX Rate - ECB Currency Exchange Rate is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns the official European Central Bank (ECB) reference exchange rate between two currencies for a given date.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/fx-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-rate-ecb-currency-exchange-rate-cdbc93b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cJZK_b83f2ql2h4qM4WV6

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-rate-ecb-currency-exchange-rate-cdbc93b0
```

Example prompt: What's the official ECB reference exchange rate from USD to EUR today?

## When to prefer this

Choose this endpoint when you need an authoritative, official exchange rate backed by the European Central Bank — ideal for compliance, accounting, invoicing, or any scenario requiring a benchmark rather than a live market price. Prefer this over crypto price feeds or live interbank rates when regulatory or audit-grade FX data is needed.

## Known failure modes

- Unsupported currency pair returns an error — ECB only covers major currencies
- Weekend or holiday dates may return the most recent available rate rather than exact date
- Missing or malformed currency code parameters result in a 400 bad request
- Network latency from Cloudflare Workers edge may vary; ECB data updates once per business day

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object containing the base currency, quote currency, exchange rate (as a decimal), the date of the rate, and the data source (frankfurter-ecb). Example: {base: 'USD', quote: 'EUR', rate: 0.89509, date: '2026-10-30', source: 'frankfurter-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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string"
      },
      "quote": {
       "type": "string"
      }
     }
    }
   },
   "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-30",
  "rate": 0.89509,
  "quote": "EUR",
  "source": "frankfurter-ecb"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-rate-ecb-currency-exchange-rate-cdbc93b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
